diff options
| author | Glenn Morris | 2009-11-04 03:17:15 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-11-04 03:17:15 +0000 |
| commit | eef899a997311fb9d0809e01e794cde24126dc6b (patch) | |
| tree | 5aa0c78e9d29062950ae7daf4a5d5644c30628cf | |
| parent | b3429475871bdf0237278e396e14adf2a0b66ce7 (diff) | |
| download | emacs-eef899a997311fb9d0809e01e794cde24126dc6b.tar.gz emacs-eef899a997311fb9d0809e01e794cde24126dc6b.zip | |
(byte-defop-compiler19): Remove.
Without byte-compile-compatibility, the 'emacs19-opcode property is not
used by anything. Replace all calls with byte-defop-compiler.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/emacs-lisp/bytecomp.el | 93 |
2 files changed, 43 insertions, 53 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 43f0af1a4d2..3feaa4002f9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -9,6 +9,9 @@ | |||
| 9 | (byte-compile-list, byte-compile-concat, byte-compile-function-form) | 9 | (byte-compile-list, byte-compile-concat, byte-compile-function-form) |
| 10 | (byte-compile-insert, byte-compile-defun): | 10 | (byte-compile-insert, byte-compile-defun): |
| 11 | Remove support for byte-compile-compatibility and Emacs 18. (Bug#4571) | 11 | Remove support for byte-compile-compatibility and Emacs 18. (Bug#4571) |
| 12 | (byte-defop-compiler19): Remove. | ||
| 13 | Without byte-compile-compatibility, the 'emacs19-opcode property is not | ||
| 14 | used by anything. Replace all calls with byte-defop-compiler. | ||
| 12 | 15 | ||
| 13 | 2009-11-04 Juri Linkov <juri@jurta.org> | 16 | 2009-11-04 Juri Linkov <juri@jurta.org> |
| 14 | 17 | ||
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el index 19459be305b..3f330703d51 100644 --- a/lisp/emacs-lisp/bytecomp.el +++ b/lisp/emacs-lisp/bytecomp.el | |||
| @@ -3074,19 +3074,6 @@ If it is nil, then the handler is \"byte-compile-SYMBOL.\"" | |||
| 3074 | ''byte-opcode-invert (list 'quote function))) | 3074 | ''byte-opcode-invert (list 'quote function))) |
| 3075 | fnform)))) | 3075 | fnform)))) |
| 3076 | 3076 | ||
| 3077 | (defmacro byte-defop-compiler19 (function &optional compile-handler) | ||
| 3078 | ;; Just like byte-defop-compiler, but used to define an opcode to only | ||
| 3079 | ;; be used when byte-compile-compatibility was false. | ||
| 3080 | (list 'progn | ||
| 3081 | (list 'put | ||
| 3082 | (list 'quote | ||
| 3083 | (or (car (cdr-safe function)) | ||
| 3084 | (intern (concat "byte-" | ||
| 3085 | (symbol-name (or (car-safe function) | ||
| 3086 | function)))))) | ||
| 3087 | ''emacs19-opcode t) | ||
| 3088 | (list 'byte-defop-compiler function compile-handler))) | ||
| 3089 | |||
| 3090 | (defmacro byte-defop-compiler-1 (function &optional compile-handler) | 3077 | (defmacro byte-defop-compiler-1 (function &optional compile-handler) |
| 3091 | (list 'byte-defop-compiler (list function nil) compile-handler)) | 3078 | (list 'byte-defop-compiler (list function nil) compile-handler)) |
| 3092 | 3079 | ||
| @@ -3117,10 +3104,10 @@ If it is nil, then the handler is \"byte-compile-SYMBOL.\"" | |||
| 3117 | (byte-defop-compiler current-buffer 0) | 3104 | (byte-defop-compiler current-buffer 0) |
| 3118 | ;;(byte-defop-compiler read-char 0) ;; obsolete | 3105 | ;;(byte-defop-compiler read-char 0) ;; obsolete |
| 3119 | (byte-defop-compiler interactive-p 0) | 3106 | (byte-defop-compiler interactive-p 0) |
| 3120 | (byte-defop-compiler19 widen 0) | 3107 | (byte-defop-compiler widen 0) |
| 3121 | (byte-defop-compiler19 end-of-line 0-1) | 3108 | (byte-defop-compiler end-of-line 0-1) |
| 3122 | (byte-defop-compiler19 forward-char 0-1) | 3109 | (byte-defop-compiler forward-char 0-1) |
| 3123 | (byte-defop-compiler19 forward-line 0-1) | 3110 | (byte-defop-compiler forward-line 0-1) |
| 3124 | (byte-defop-compiler symbolp 1) | 3111 | (byte-defop-compiler symbolp 1) |
| 3125 | (byte-defop-compiler consp 1) | 3112 | (byte-defop-compiler consp 1) |
| 3126 | (byte-defop-compiler stringp 1) | 3113 | (byte-defop-compiler stringp 1) |
| @@ -3138,15 +3125,15 @@ If it is nil, then the handler is \"byte-compile-SYMBOL.\"" | |||
| 3138 | (byte-defop-compiler char-after 0-1) | 3125 | (byte-defop-compiler char-after 0-1) |
| 3139 | (byte-defop-compiler set-buffer 1) | 3126 | (byte-defop-compiler set-buffer 1) |
| 3140 | ;;(byte-defop-compiler set-mark 1) ;; obsolete | 3127 | ;;(byte-defop-compiler set-mark 1) ;; obsolete |
| 3141 | (byte-defop-compiler19 forward-word 0-1) | 3128 | (byte-defop-compiler forward-word 0-1) |
| 3142 | (byte-defop-compiler19 char-syntax 1) | 3129 | (byte-defop-compiler char-syntax 1) |
| 3143 | (byte-defop-compiler19 nreverse 1) | 3130 | (byte-defop-compiler nreverse 1) |
| 3144 | (byte-defop-compiler19 car-safe 1) | 3131 | (byte-defop-compiler car-safe 1) |
| 3145 | (byte-defop-compiler19 cdr-safe 1) | 3132 | (byte-defop-compiler cdr-safe 1) |
| 3146 | (byte-defop-compiler19 numberp 1) | 3133 | (byte-defop-compiler numberp 1) |
| 3147 | (byte-defop-compiler19 integerp 1) | 3134 | (byte-defop-compiler integerp 1) |
| 3148 | (byte-defop-compiler19 skip-chars-forward 1-2) | 3135 | (byte-defop-compiler skip-chars-forward 1-2) |
| 3149 | (byte-defop-compiler19 skip-chars-backward 1-2) | 3136 | (byte-defop-compiler skip-chars-backward 1-2) |
| 3150 | (byte-defop-compiler eq 2) | 3137 | (byte-defop-compiler eq 2) |
| 3151 | (byte-defop-compiler memq 2) | 3138 | (byte-defop-compiler memq 2) |
| 3152 | (byte-defop-compiler cons 2) | 3139 | (byte-defop-compiler cons 2) |
| @@ -3160,37 +3147,37 @@ If it is nil, then the handler is \"byte-compile-SYMBOL.\"" | |||
| 3160 | (byte-defop-compiler get 2) | 3147 | (byte-defop-compiler get 2) |
| 3161 | (byte-defop-compiler nth 2) | 3148 | (byte-defop-compiler nth 2) |
| 3162 | (byte-defop-compiler substring 2-3) | 3149 | (byte-defop-compiler substring 2-3) |
| 3163 | (byte-defop-compiler19 (move-marker byte-set-marker) 2-3) | 3150 | (byte-defop-compiler (move-marker byte-set-marker) 2-3) |
| 3164 | (byte-defop-compiler19 set-marker 2-3) | 3151 | (byte-defop-compiler set-marker 2-3) |
| 3165 | (byte-defop-compiler19 match-beginning 1) | 3152 | (byte-defop-compiler match-beginning 1) |
| 3166 | (byte-defop-compiler19 match-end 1) | 3153 | (byte-defop-compiler match-end 1) |
| 3167 | (byte-defop-compiler19 upcase 1) | 3154 | (byte-defop-compiler upcase 1) |
| 3168 | (byte-defop-compiler19 downcase 1) | 3155 | (byte-defop-compiler downcase 1) |
| 3169 | (byte-defop-compiler19 string= 2) | 3156 | (byte-defop-compiler string= 2) |
| 3170 | (byte-defop-compiler19 string< 2) | 3157 | (byte-defop-compiler string< 2) |
| 3171 | (byte-defop-compiler19 (string-equal byte-string=) 2) | 3158 | (byte-defop-compiler (string-equal byte-string=) 2) |
| 3172 | (byte-defop-compiler19 (string-lessp byte-string<) 2) | 3159 | (byte-defop-compiler (string-lessp byte-string<) 2) |
| 3173 | (byte-defop-compiler19 equal 2) | 3160 | (byte-defop-compiler equal 2) |
| 3174 | (byte-defop-compiler19 nthcdr 2) | 3161 | (byte-defop-compiler nthcdr 2) |
| 3175 | (byte-defop-compiler19 elt 2) | 3162 | (byte-defop-compiler elt 2) |
| 3176 | (byte-defop-compiler19 member 2) | 3163 | (byte-defop-compiler member 2) |
| 3177 | (byte-defop-compiler19 assq 2) | 3164 | (byte-defop-compiler assq 2) |
| 3178 | (byte-defop-compiler19 (rplaca byte-setcar) 2) | 3165 | (byte-defop-compiler (rplaca byte-setcar) 2) |
| 3179 | (byte-defop-compiler19 (rplacd byte-setcdr) 2) | 3166 | (byte-defop-compiler (rplacd byte-setcdr) 2) |
| 3180 | (byte-defop-compiler19 setcar 2) | 3167 | (byte-defop-compiler setcar 2) |
| 3181 | (byte-defop-compiler19 setcdr 2) | 3168 | (byte-defop-compiler setcdr 2) |
| 3182 | (byte-defop-compiler19 buffer-substring 2) | 3169 | (byte-defop-compiler buffer-substring 2) |
| 3183 | (byte-defop-compiler19 delete-region 2) | 3170 | (byte-defop-compiler delete-region 2) |
| 3184 | (byte-defop-compiler19 narrow-to-region 2) | 3171 | (byte-defop-compiler narrow-to-region 2) |
| 3185 | (byte-defop-compiler19 (% byte-rem) 2) | 3172 | (byte-defop-compiler (% byte-rem) 2) |
| 3186 | (byte-defop-compiler aset 3) | 3173 | (byte-defop-compiler aset 3) |
| 3187 | 3174 | ||
| 3188 | (byte-defop-compiler max byte-compile-associative) | 3175 | (byte-defop-compiler max byte-compile-associative) |
| 3189 | (byte-defop-compiler min byte-compile-associative) | 3176 | (byte-defop-compiler min byte-compile-associative) |
| 3190 | (byte-defop-compiler (+ byte-plus) byte-compile-associative) | 3177 | (byte-defop-compiler (+ byte-plus) byte-compile-associative) |
| 3191 | (byte-defop-compiler19 (* byte-mult) byte-compile-associative) | 3178 | (byte-defop-compiler (* byte-mult) byte-compile-associative) |
| 3192 | 3179 | ||
| 3193 | ;;####(byte-defop-compiler19 move-to-column 1) | 3180 | ;;####(byte-defop-compiler move-to-column 1) |
| 3194 | (byte-defop-compiler-1 interactive byte-compile-noop) | 3181 | (byte-defop-compiler-1 interactive byte-compile-noop) |
| 3195 | 3182 | ||
| 3196 | 3183 | ||
| @@ -3292,8 +3279,8 @@ If it is nil, then the handler is \"byte-compile-SYMBOL.\"" | |||
| 3292 | (byte-defop-compiler insert) | 3279 | (byte-defop-compiler insert) |
| 3293 | (byte-defop-compiler-1 function byte-compile-function-form) | 3280 | (byte-defop-compiler-1 function byte-compile-function-form) |
| 3294 | (byte-defop-compiler-1 - byte-compile-minus) | 3281 | (byte-defop-compiler-1 - byte-compile-minus) |
| 3295 | (byte-defop-compiler19 (/ byte-quo) byte-compile-quo) | 3282 | (byte-defop-compiler (/ byte-quo) byte-compile-quo) |
| 3296 | (byte-defop-compiler19 nconc) | 3283 | (byte-defop-compiler nconc) |
| 3297 | 3284 | ||
| 3298 | (defun byte-compile-char-before (form) | 3285 | (defun byte-compile-char-before (form) |
| 3299 | (cond ((= 2 (length form)) | 3286 | (cond ((= 2 (length form)) |