GNU bug report logs -
#6892
Please add a way to jump to advices
Previous Next
Reported by: Ken Hori <fplemma <at> gmail.com>
Date: Sat, 21 Aug 2010 18:17:01 UTC
Severity: wishlist
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
> But it should work if you do
>
> (advice-add 'bar :before #'bar--skip-line)
> (defun bar--skip-line () (forward-line 1))
Ah, yes, and then we get a nice link, so that's fine.
>> I'm sure this has come up before -- does advice add no pointers (to
>> load-history, I guess?) that the help system could pick up?
>
> `define-advice` could, but `advice-add` is definitely not limited to
> uses at top-level, so it shouldn't mess with `load-history`.
And it seems like define-advice already does everything right here. With:
(defun bar ()
(interactive)
(forward-line 1))
(define-advice bar (:around (oldfun &rest args) test)
(apply oldfun args))
load-history gets:
("/tmp/ad.el"
(defun . bar)
(defun . bar <at> test))
[Message part 2 (image/png, inline)]
[Message part 3 (text/plain, inline)]
And everything is buttonified as requested in the bug report, so I guess
everything here has been fixed in the years since this was reported, and
I'm therefore closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 14 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.