GNU bug report logs - #16959
24.3.50; defadvice docstring out of date

Previous Next

Package: emacs;

Reported by: Florian Beck <fb <at> miszellen.de>

Date: Fri, 7 Mar 2014 15:19:01 UTC

Severity: minor

Found in version 24.3.50

Done: Stefan <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Florian Beck <fb <at> miszellen.de>
Cc: 16959 <at> debbugs.gnu.org
Subject: bug#16959: bug#16981: 24.3.50; electric-pair-delete-adjacent-pairs broken in c-mode, python-mode, maybe-others
Date: Tue, 25 Mar 2014 20:34:36 -0400
> The result is that the advice SEEMS to work (the user put it in her
> .emacs and presses C-x C-e), but on restarting emacs it depends on the
> order advice defintions.

That's why the doc says:

   [..]
   should stay as the outermost advice.  When two advices specify the
   same depth, the most recently added advice will be outermost.
   [..]

> Of course, from a user's point of view, macros usually are already expanded.
> How would a user go about advising, say, byte-compile-log in her .emacs?

She can't do it and hope for it to affect already compiled code, indeed.

But we use advice-add in cl.el on the `declare', `dolist', and `dotimes'
macros and it works very well.  Obviously code that uses those needs to
have a (require 'cl) somewhere to make sure the advice is installed
before macro-expansion.


        Stefan




This bug report was last modified 11 years and 56 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.