aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/emacs-lisp/bytecomp.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 31d21fd8720..de749e1d0c8 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -3148,6 +3148,7 @@ That command is designed for interactive use only" fn))
3148 3148
3149;; more complicated compiler macros 3149;; more complicated compiler macros
3150 3150
3151(byte-defop-compiler char-before)
3151(byte-defop-compiler list) 3152(byte-defop-compiler list)
3152(byte-defop-compiler concat) 3153(byte-defop-compiler concat)
3153(byte-defop-compiler fset) 3154(byte-defop-compiler fset)
@@ -3159,6 +3160,13 @@ That command is designed for interactive use only" fn))
3159(byte-defop-compiler19 (/ byte-quo) byte-compile-quo) 3160(byte-defop-compiler19 (/ byte-quo) byte-compile-quo)
3160(byte-defop-compiler19 nconc) 3161(byte-defop-compiler19 nconc)
3161 3162
3163(defun byte-compile-char-before (form)
3164 (cond ((= 2 (length form))
3165 (byte-compile-form `(char-after (1- ,(nth 1 form)))))
3166 ((= 1 (length form))
3167 (byte-compile-form '(char-after (1- (point)))))
3168 (t (byte-compile-subr-wrong-args form "0-1"))))
3169
3162(defun byte-compile-list (form) 3170(defun byte-compile-list (form)
3163 (let ((count (length (cdr form)))) 3171 (let ((count (length (cdr form))))
3164 (cond ((= count 0) 3172 (cond ((= count 0)