Remove spurious %S from 'define-error' messages

; The MESSAGE arg of 'define-error' does not support format specifiers
; (unlike the 'error' function). The signal data is automatically
; appended to the error message.

* lisp/emacs/lisp/cl-generic.el (cl--generic-cyclic-definition):
Remove spurious %S from error message.
* lisp/emacs-lisp/gv.el (gv-invalid-place): Remove spurious %S from
error message (and rephrase) (bug#51718).

Copyright-paperwork-exempt: yes
This commit is contained in:
Tom Levy 2021-11-09 12:25:24 +00:00 committed by Lars Ingebrigtsen
parent 315d550bf7
commit a28647a6b6
2 changed files with 2 additions and 2 deletions

View file

@ -687,7 +687,7 @@ This is particularly useful when many different tags select the same set
of methods, since this table then allows us to share a single combined-method
for all those different tags in the method-cache.")
(define-error 'cl--generic-cyclic-definition "Cyclic definition: %S")
(define-error 'cl--generic-cyclic-definition "Cyclic definition")
(defun cl--generic-build-combined-method (generic methods)
(if (null methods)

View file

@ -74,7 +74,7 @@
;; (defvar gv--macro-environment nil
;; "Macro expanders for generalized variables.")
(define-error 'gv-invalid-place "%S is not a valid place expression")
(define-error 'gv-invalid-place "Invalid place expression")
;;;###autoload
(defun gv-get (place do)