Package: develock-el Version: 0.39-2 Severity: normal Dear Maintainer,
I had error on some of my code because I was calling (indent-region beg end) and the develock mode was on: the advice failed. The attached patch fix this.
>From 5961a805b5128e93fb4889347142139ead142c23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Vanicat?= <vani...@debian.org> Date: Sun, 30 Oct 2016 19:05:45 +0100 Subject: [PATCH] advising indent-region with correct prototype --- develock.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/develock.el b/develock.el index d7a107f..890cba4 100644 --- a/develock.el +++ b/develock.el @@ -1791,7 +1791,7 @@ IGNORE-POINT-POS are ignored." (let (current-load-list) (defadvice indent-region (around remove-useless-whitespace - (start end column) activate) + (start end &optional column) activate) "Advised by Develock. If Develock is on, remove useless leading and trailing whitespace in Lisp modes, C modes and Java mode. You can turn off this advice -- 2.10.2
-- System Information: Debian Release: stretch/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.7.0-1-amd64 (SMP w/8 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages develock-el depends on: ii emacs 46.1 ii emacs24 [emacsen] 24.5+1-7 ii emacs25 [emacsen] 25.1+1-2 develock-el recommends no packages. develock-el suggests no packages. -- no debconf information -- RĂ©mi Vanicat