Skip to content

Commit

Permalink
; Substitute quotes in obsoletion notice in 'C-h f'
Browse files Browse the repository at this point in the history
* lisp/help-fns.el (help-fns--obsolete): Substitute quotes in string
arguments to 'obsolete' declarations.

* lisp/emacs-lisp/advice.el (defadvice): Markup symbols in 'obsolete'
declaration.  (Bug#66240)
  • Loading branch information
eshelyaron authored and skangas committed Sep 28, 2023
1 parent cf4778a commit 8a635ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lisp/emacs-lisp/advice.el
Original file line number Diff line number Diff line change
Expand Up @@ -3131,7 +3131,7 @@ usage: (defadvice FUNCTION (CLASS NAME [POSITION] [ARGLIST] FLAG...)
[DOCSTRING] [INTERACTIVE-FORM]
BODY...)"
(declare (doc-string 3) (indent 2)
(obsolete "use advice-add or define-advice" "30.1")
(obsolete "use `advice-add' or `define-advice'" "30.1")
(debug (&define name ;; thing being advised.
(name ;; class is [&or "before" "around" "after"
;; "activation" "deactivation"]
Expand Down
2 changes: 1 addition & 1 deletion lisp/help-fns.el
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ the C sources, too."
" is obsolete")
(when (nth 2 obsolete)
(insert (format " since %s" (nth 2 obsolete))))
(insert (cond ((stringp use) (concat "; " use))
(insert (cond ((stringp use) (concat "; " (substitute-quotes use)))
(use (format-message "; use `%s' instead." use))
(t "."))
"\n")
Expand Down

0 comments on commit 8a635ac

Please sign in to comment.