aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2022-06-17 19:10:44 +0200
committerLars Ingebrigtsen2022-06-17 19:11:24 +0200
commitf515d658e5e5382bfbcf835dee4a32099c9815e6 (patch)
treef2370c39179d34b85215fa55e434eb3aa9afdacf
parent8ce96f0d4d3b8c80a8b6165b69a67310afdf6a3a (diff)
downloademacs-f515d658e5e5382bfbcf835dee4a32099c9815e6.tar.gz
emacs-f515d658e5e5382bfbcf835dee4a32099c9815e6.zip
Don't quote numbers in byte-run--set-*
* lisp/emacs-lisp/byte-run.el (byte-run--set-doc-string) (byte-run--set-indent): Don't quote numbers (bug#48145).
-rw-r--r--lisp/emacs-lisp/byte-run.el8
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el
index 498435c58d0..dd90bcf4d82 100644
--- a/lisp/emacs-lisp/byte-run.el
+++ b/lisp/emacs-lisp/byte-run.el
@@ -210,12 +210,16 @@ The return value of this function is not used."
210(defalias 'byte-run--set-doc-string 210(defalias 'byte-run--set-doc-string
211 #'(lambda (f _args pos) 211 #'(lambda (f _args pos)
212 (list 'function-put (list 'quote f) 212 (list 'function-put (list 'quote f)
213 ''doc-string-elt (list 'quote pos)))) 213 ''doc-string-elt (if (numberp pos)
214 pos
215 (list 'quote pos)))))
214 216
215(defalias 'byte-run--set-indent 217(defalias 'byte-run--set-indent
216 #'(lambda (f _args val) 218 #'(lambda (f _args val)
217 (list 'function-put (list 'quote f) 219 (list 'function-put (list 'quote f)
218 ''lisp-indent-function (list 'quote val)))) 220 ''lisp-indent-function (if (numberp val)
221 val
222 (list 'quote val)))))
219 223
220(defalias 'byte-run--set-speed 224(defalias 'byte-run--set-speed
221 #'(lambda (f _args val) 225 #'(lambda (f _args val)