1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-26 07:11:34 -08:00

(byte-optimize-plus): Fix 1-arg case.

This commit is contained in:
Richard M. Stallman 1999-05-17 01:37:04 +00:00
parent b1ae662fa6
commit ea9d637111

View file

@ -700,6 +700,10 @@
;;; (actually, it would be safe if we know the sole arg
;;; is not a marker).
;; ((null (cdr (cdr form))) (nth 1 form))
((null (cddr form))
(if (numberp (nth 1 form))
(nth 1 form)
form))
((and (null (nthcdr 3 form))
(or (memq (nth 1 form) '(1 -1))
(memq (nth 2 form) '(1 -1))))