diff options
author | Glenn Morris <rgm@gnu.org> | 2007-04-11 03:57:11 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2007-04-11 03:57:11 +0000 |
commit | e1a7fee98a1c84da2e5a47baf61f29bac9572993 (patch) | |
tree | 620b4e0d7be0510efdef02f1bb60b83b9f4c506e /lisp/emacs-lisp | |
parent | 7920fa85dbbbd559b4e18d8437d48ebbec49bda2 (diff) | |
download | emacs-e1a7fee98a1c84da2e5a47baf61f29bac9572993.tar.gz |
Markus Triska <markus.triska at gmx.at>:
(byte-optimize-backward-char, byte-optimize-backward-word): Remove -
move to bytecomp.el.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/byte-opt.el | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lisp/emacs-lisp/byte-opt.el b/lisp/emacs-lisp/byte-opt.el index a6e4d8a91e0..a9dedae398c 100644 --- a/lisp/emacs-lisp/byte-opt.el +++ b/lisp/emacs-lisp/byte-opt.el @@ -1117,26 +1117,6 @@ (byte-optimize-predicate form)) form)) -;; Avoid having to write forward-... with a negative arg for speed. -;; Fixme: don't be limited to constant args. -(put 'backward-char 'byte-optimizer 'byte-optimize-backward-char) -(defun byte-optimize-backward-char (form) - (cond ((and (= 2 (safe-length form)) - (numberp (nth 1 form))) - (list 'forward-char (eval (- (nth 1 form))))) - ((= 1 (safe-length form)) - '(forward-char -1)) - (t form))) - -(put 'backward-word 'byte-optimizer 'byte-optimize-backward-word) -(defun byte-optimize-backward-word (form) - (cond ((and (= 2 (safe-length form)) - (numberp (nth 1 form))) - (list 'forward-word (eval (- (nth 1 form))))) - ((= 1 (safe-length form)) - '(forward-word -1)) - (t form))) - ;; Fixme: delete-char -> delete-region (byte-coded) ;; optimize string-as-unibyte, string-as-multibyte, string-make-unibyte, ;; string-make-multibyte for constant args. |