+2001-08-29 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * WL-MK: Byte-optimize the function `char-after' for old Emacsen.
+
2001-08-28 TAKAHASHI Kaoru <kaoru@kaisei.org>
* Makefile (check): New rule
(` (defvar (, symbol) (, value) (, doc))))))
(load "bytecomp" nil t)
+
(unless (fboundp 'byte-compile-file-form-custom-declare-variable)
;; Bind defcustom'ed variables.
(put 'custom-declare-variable 'byte-hunk-handler
(cons (nth 1 (nth 1 form)) byte-compile-bound-variables)))
form))
+(condition-case nil
+ (char-after)
+ (wrong-number-of-arguments
+ ;; Optimize byte code for `char-after'.
+ (put 'char-after 'byte-optimizer 'byte-optimize-char-after)
+ (defun byte-optimize-char-after (form)
+ (if (null (cdr form))
+ '(char-after (point))
+ form))))
+
(setq byte-compile-warnings '(free-vars unresolved callargs redefine))
;; v18, v19