GNU bug report logs -
#12740
24.2.50; ERC fix broke modules after require
Previous Next
Reported by: Antoine Levitt <antoine.levitt <at> gmail.com>
Date: Fri, 26 Oct 2012 15:01:01 UTC
Severity: normal
Found in version 24.2.50
Done: Stefan Monnier <monnier <at> iro.umontreal.ca>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12740 in the body.
You can then email your comments to 12740 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12740
; Package
emacs
.
(Fri, 26 Oct 2012 15:01:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Antoine Levitt <antoine.levitt <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 26 Oct 2012 15:01:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
The following code stopped working (ie truncate stopped being activated)
after a series of commits by Stefan Monnier
emacs -Q
(require 'erc)
(setq erc-modules '(truncate))
(erc-update-modules)
(erc :server "irc.freenode.net")
This worked fine before
Author: Stefan Monnier <monnier <at> iro.umontreal.ca>
Date: Mon Oct 15 12:49:57 2012 -0400
* lisp/erc/erc.el (erc-log): Make it into a defsubst.
(erc-with-server-buffer, define-erc-module, erc-with-buffer)
(erc-with-all-buffers-of-server): Use `declare'.
* lisp/erc/erc-backend.el (erc-log): Adjust autoload accordingly.
After this, erc was broken until
Author: Stefan Monnier <monnier <at> iro.umontreal.ca>
Date: Thu Oct 18 11:51:28 2012 -0400
* lisp/erc/erc-backend.el: Require `erc' instead of autoloading its macros.
And after this commit, the sample code above stopped working.
Antoine
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12740
; Package
emacs
.
(Fri, 26 Oct 2012 15:24:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 12740 <at> debbugs.gnu.org (full text, mbox):
> emacs -Q
> (require 'erc)
> (setq erc-modules '(truncate))
> (erc-update-modules)
> (erc :server "irc.freenode.net")
> This worked fine before
I don't know what "worked" means precisely, but I tried your above
recipe and "it worked" in the sense that it did something which didn't
look like an error.
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12740
; Package
emacs
.
(Fri, 26 Oct 2012 15:55:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 12740 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
10/26/2012 17:21, Stefan Monnier
>> emacs -Q
>> (require 'erc)
>> (setq erc-modules '(truncate))
>> (erc-update-modules)
>> (erc :server "irc.freenode.net")
>> This worked fine before
>
> I don't know what "worked" means precisely, but I tried your above
> recipe and "it worked" in the sense that it did something which didn't
> look like an error.
Sorry if this bug report is confused. I've tried to reduce the original
bug (which has weird effects on my configuration) to a simple test
case. The bug, which I had not described and you could not guess, was
that lines were filled. My bad. Please discard my original bug report
and consider the following:
(require 'erc)
(setq erc-modules '())
(erc-update-modules)
used to disable buffer filling (try it on a large window). It did so
before your commits, not after.
You might argue that this is the intended behaviour, because
erc-update-modules says that it only enables modules, not disable them
(in which case, to disable modules, is one supposed to set erc-modules
before requiring erc ? I liked the old way better).
I also attach a more involved example of a bug that appeared with your
commits, and has nothing to do with erc-modules (I think). I was hoping
the fix for the simpler issue would also fix the more involved one,
which is why I didn't report it in the first place, but here it is
anywyay. The code is supposed to colour the nicks of people (here, all
in yellow). The bug results from an interaction with
erc-hide-timestamps, which didn't occur before your commits.
Sorry again.
[test.el (application/emacs-lisp, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12740
; Package
emacs
.
(Fri, 26 Oct 2012 18:33:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 12740 <at> debbugs.gnu.org (full text, mbox):
A shot in the dark: does the patch below fix your problems?
Stefan
=== modified file 'lisp/erc/erc-backend.el'
--- lisp/erc/erc-backend.el 2012-10-18 15:51:28 +0000
+++ lisp/erc/erc-backend.el 2012-10-26 18:28:14 +0000
@@ -102,8 +102,7 @@
;; There's a fairly strong mutual dependency between erc.el and erc-backend.el.
;; Luckily, erc.el does not need erc-backend.el for macroexpansion whereas the
;; reverse is true:
-(provide 'erc-backend)
-(require 'erc)
+(eval-when-compile (provide 'erc-backend) (require 'erc))
;;;; Variables and options
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12740
; Package
emacs
.
(Fri, 26 Oct 2012 18:50:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 12740 <at> debbugs.gnu.org (full text, mbox):
10/26/2012 20:30, Stefan Monnier
> A shot in the dark: does the patch below fix your problems?
It does.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12740
; Package
emacs
.
(Sun, 28 Oct 2012 15:38:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 12740 <at> debbugs.gnu.org (full text, mbox):
>> A shot in the dark: does the patch below fix your problems?
> It does.
Thanks, installed,
Stefan
bug closed, send any further explanations to
12740 <at> debbugs.gnu.org and Antoine Levitt <antoine.levitt <at> gmail.com>
Request was from
Stefan Monnier <monnier <at> iro.umontreal.ca>
to
control <at> debbugs.gnu.org
.
(Sun, 28 Oct 2012 15:38:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#12740
; Package
emacs
.
(Sun, 28 Oct 2012 15:44:02 GMT)
Full text and
rfc822 format available.
Message #25 received at 12740 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Nice, thanks!
On Oct 28, 2012 4:35 PM, "Stefan Monnier" <monnier <at> iro.umontreal.ca> wrote:
> >> A shot in the dark: does the patch below fix your problems?
> > It does.
>
> Thanks, installed,
>
>
> Stefan
>
[Message part 2 (text/html, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 26 Nov 2012 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 204 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.