]> git.eshelyaron.com Git - emacs.git/commit
Set the 'name' prop in 'define-advice'
authorSteven Allen <steven@stebalien.com>
Sat, 6 Jan 2024 17:19:12 +0000 (09:19 -0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 13 Jan 2024 18:24:39 +0000 (19:24 +0100)
commit44a35f2539d3bac4546f1b768f102a00435e1d16
tree5cae788785a58a526683cbc68dea2c5968159f3f
parentb8f8ecd59359eff917e3eb95f2b52196f2629853
Set the 'name' prop in 'define-advice'

In addition to naming the advice function `symbol@name', set
the 'name' property to NAME.
* lisp/emacs-lisp/nadvice.el (define-advice): set the 'name'
property to NAME (requested in Bug#68114).  Fixes Bug#68294.

* doc/lispref/functions.texi (Advising Named Functions): Document
that 'define-advice' installs the advice with the specified name.

(cherry picked from commit 9b8b352ebc09de3259f655fa4d491507109044b3)
doc/lispref/functions.texi
etc/NEWS
lisp/emacs-lisp/nadvice.el