diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 20 | ||||
| -rw-r--r-- | lisp/ehelp.el | 13 | ||||
| -rw-r--r-- | lisp/emacs-lisp/debug.el | 21 | ||||
| -rw-r--r-- | lisp/emacs-lisp/edebug.el | 5 | ||||
| -rw-r--r-- | lisp/progmodes/ebrowse.el | 2 | ||||
| -rw-r--r-- | lisp/subr.el | 6 |
6 files changed, 31 insertions, 36 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 56311198831..549b70a1de1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,19 @@ | |||
| 1 | 2012-09-12 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * emacs-lisp/debug.el (debugger-outer-unread-command-char, debug) | ||
| 4 | (debugger-env-macro): Remove support for unread-command-char. | ||
| 5 | |||
| 6 | * subr.el (set-temporary-overlay-map): Minimize slightly the impact of | ||
| 7 | the temporary map re-appearing on emulation-mode-map-alists. | ||
| 8 | |||
| 9 | * emacs-lisp/edebug.el (def-edebug-form-spec): Remove, it's been broken | ||
| 10 | since 22.1. | ||
| 11 | |||
| 12 | * ehelp.el (with-electric-help): Accept functions in | ||
| 13 | electric-help-form-to-execute. | ||
| 14 | (electric-help-execute-extended, electric-help-ctrl-x-prefix): Use it. | ||
| 15 | And replace unread-command-char -> unread-command-events. | ||
| 16 | |||
| 1 | 2012-09-12 Michael Albinus <michael.albinus@gmx.de> | 17 | 2012-09-12 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 18 | ||
| 3 | Sync with Tramp 2.2.6. | 19 | Sync with Tramp 2.2.6. |
| @@ -9,8 +25,8 @@ | |||
| 9 | 25 | ||
| 10 | 2012-09-12 Martin Rudalics <rudalics@gmx.at> | 26 | 2012-09-12 Martin Rudalics <rudalics@gmx.at> |
| 11 | 27 | ||
| 12 | * emacs-lisp/debug.el (debugger-previous-window-height): New | 28 | * emacs-lisp/debug.el (debugger-previous-window-height): |
| 13 | variable. | 29 | New variable. |
| 14 | (debug): When debugger-jumping-flag is non-nil try to restore | 30 | (debug): When debugger-jumping-flag is non-nil try to restore |
| 15 | height of debugger window. (Bug#8789) | 31 | height of debugger window. (Bug#8789) |
| 16 | 32 | ||
diff --git a/lisp/ehelp.el b/lisp/ehelp.el index abb897f73f6..281148d9cf6 100644 --- a/lisp/ehelp.el +++ b/lisp/ehelp.el | |||
| @@ -193,7 +193,9 @@ BUFFER is put back into its original major mode." | |||
| 193 | (replace-buffer-in-windows buffer) | 193 | (replace-buffer-in-windows buffer) |
| 194 | ;; must do this outside of save-window-excursion | 194 | ;; must do this outside of save-window-excursion |
| 195 | (bury-buffer buffer)) | 195 | (bury-buffer buffer)) |
| 196 | (eval electric-help-form-to-execute)))) | 196 | (if (functionp electric-help-form-to-execute) |
| 197 | (funcall electric-help-form-to-execute) | ||
| 198 | (eval electric-help-form-to-execute))))) | ||
| 197 | 199 | ||
| 198 | (defun electric-help-command-loop () | 200 | (defun electric-help-command-loop () |
| 199 | (catch 'exit | 201 | (catch 'exit |
| @@ -349,14 +351,19 @@ will select it.)" | |||
| 349 | ;; continues with execute-extended-command. | 351 | ;; continues with execute-extended-command. |
| 350 | (defun electric-help-execute-extended (_prefixarg) | 352 | (defun electric-help-execute-extended (_prefixarg) |
| 351 | (interactive "p") | 353 | (interactive "p") |
| 352 | (setq electric-help-form-to-execute '(execute-extended-command nil)) | 354 | (setq electric-help-form-to-execute |
| 355 | (lambda () (execute-extended-command nil))) | ||
| 353 | (electric-help-retain)) | 356 | (electric-help-retain)) |
| 354 | 357 | ||
| 355 | ;; This is to be buond to C-x in ehelp mode. Retains ehelp buffer and then | 358 | ;; This is to be buond to C-x in ehelp mode. Retains ehelp buffer and then |
| 356 | ;; continues with ctrl-x prefix. | 359 | ;; continues with ctrl-x prefix. |
| 357 | (defun electric-help-ctrl-x-prefix (_prefixarg) | 360 | (defun electric-help-ctrl-x-prefix (_prefixarg) |
| 358 | (interactive "p") | 361 | (interactive "p") |
| 359 | (setq electric-help-form-to-execute '(progn (message nil) (setq unread-command-char ?\C-x))) | 362 | (setq electric-help-form-to-execute |
| 363 | (lambda () | ||
| 364 | (message nil) | ||
| 365 | (setq unread-command-events | ||
| 366 | (append unread-command-events '(?\C-x))))) | ||
| 360 | (electric-help-retain)) | 367 | (electric-help-retain)) |
| 361 | 368 | ||
| 362 | 369 | ||
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el index 8b89e65c5d9..774b4d3d600 100644 --- a/lisp/emacs-lisp/debug.el +++ b/lisp/emacs-lisp/debug.el | |||
| @@ -110,10 +110,6 @@ This is to optimize `debugger-make-xrefs'.") | |||
| 110 | (defvar debugger-outer-track-mouse) | 110 | (defvar debugger-outer-track-mouse) |
| 111 | (defvar debugger-outer-last-command) | 111 | (defvar debugger-outer-last-command) |
| 112 | (defvar debugger-outer-this-command) | 112 | (defvar debugger-outer-this-command) |
| 113 | ;; unread-command-char is obsolete, | ||
| 114 | ;; but we still save and restore it | ||
| 115 | ;; in case some user program still tries to set it. | ||
| 116 | (defvar debugger-outer-unread-command-char) | ||
| 117 | (defvar debugger-outer-unread-command-events) | 113 | (defvar debugger-outer-unread-command-events) |
| 118 | (defvar debugger-outer-unread-post-input-method-events) | 114 | (defvar debugger-outer-unread-post-input-method-events) |
| 119 | (defvar debugger-outer-last-input-event) | 115 | (defvar debugger-outer-last-input-event) |
| @@ -185,8 +181,6 @@ first will be printed into the backtrace buffer." | |||
| 185 | (debugger-outer-track-mouse track-mouse) | 181 | (debugger-outer-track-mouse track-mouse) |
| 186 | (debugger-outer-last-command last-command) | 182 | (debugger-outer-last-command last-command) |
| 187 | (debugger-outer-this-command this-command) | 183 | (debugger-outer-this-command this-command) |
| 188 | (debugger-outer-unread-command-char | ||
| 189 | (with-no-warnings unread-command-char)) | ||
| 190 | (debugger-outer-unread-command-events unread-command-events) | 184 | (debugger-outer-unread-command-events unread-command-events) |
| 191 | (debugger-outer-unread-post-input-method-events | 185 | (debugger-outer-unread-post-input-method-events |
| 192 | unread-post-input-method-events) | 186 | unread-post-input-method-events) |
| @@ -221,8 +215,6 @@ first will be printed into the backtrace buffer." | |||
| 221 | (cursor-in-echo-area nil)) | 215 | (cursor-in-echo-area nil)) |
| 222 | (unwind-protect | 216 | (unwind-protect |
| 223 | (save-excursion | 217 | (save-excursion |
| 224 | (with-no-warnings | ||
| 225 | (setq unread-command-char -1)) | ||
| 226 | (when (eq (car debugger-args) 'debug) | 218 | (when (eq (car debugger-args) 'debug) |
| 227 | ;; Skip the frames for backtrace-debug, byte-code, | 219 | ;; Skip the frames for backtrace-debug, byte-code, |
| 228 | ;; and implement-debug-on-entry. | 220 | ;; and implement-debug-on-entry. |
| @@ -302,8 +294,6 @@ first will be printed into the backtrace buffer." | |||
| 302 | (setq track-mouse debugger-outer-track-mouse) | 294 | (setq track-mouse debugger-outer-track-mouse) |
| 303 | (setq last-command debugger-outer-last-command) | 295 | (setq last-command debugger-outer-last-command) |
| 304 | (setq this-command debugger-outer-this-command) | 296 | (setq this-command debugger-outer-this-command) |
| 305 | (with-no-warnings | ||
| 306 | (setq unread-command-char debugger-outer-unread-command-char)) | ||
| 307 | (setq unread-command-events debugger-outer-unread-command-events) | 297 | (setq unread-command-events debugger-outer-unread-command-events) |
| 308 | (setq unread-post-input-method-events | 298 | (setq unread-post-input-method-events |
| 309 | debugger-outer-unread-post-input-method-events) | 299 | debugger-outer-unread-post-input-method-events) |
| @@ -605,16 +595,7 @@ Applies to the frame whose line point is on in the backtrace." | |||
| 605 | (cursor-in-echo-area debugger-outer-cursor-in-echo-area)) | 595 | (cursor-in-echo-area debugger-outer-cursor-in-echo-area)) |
| 606 | (set-match-data debugger-outer-match-data) | 596 | (set-match-data debugger-outer-match-data) |
| 607 | (prog1 | 597 | (prog1 |
| 608 | (let ((save-ucc (with-no-warnings unread-command-char))) | 598 | (progn ,@body) |
| 609 | (unwind-protect | ||
| 610 | (progn | ||
| 611 | (with-no-warnings | ||
| 612 | (setq unread-command-char debugger-outer-unread-command-char)) | ||
| 613 | (prog1 (progn ,@body) | ||
| 614 | (with-no-warnings | ||
| 615 | (setq debugger-outer-unread-command-char unread-command-char)))) | ||
| 616 | (with-no-warnings | ||
| 617 | (setq unread-command-char save-ucc)))) | ||
| 618 | (setq debugger-outer-match-data (match-data)) | 599 | (setq debugger-outer-match-data (match-data)) |
| 619 | (setq debugger-outer-load-read-function load-read-function) | 600 | (setq debugger-outer-load-read-function load-read-function) |
| 620 | (setq debugger-outer-overriding-terminal-local-map | 601 | (setq debugger-outer-overriding-terminal-local-map |
diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el index 17f6f79cd66..f147fba167d 100644 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el | |||
| @@ -235,11 +235,6 @@ If the result is non-nil, then break. Errors are ignored." | |||
| 235 | 235 | ||
| 236 | ;;; Form spec utilities. | 236 | ;;; Form spec utilities. |
| 237 | 237 | ||
| 238 | (defmacro def-edebug-form-spec (symbol spec-form) | ||
| 239 | "For compatibility with old version." | ||
| 240 | (def-edebug-spec symbol (eval spec-form))) | ||
| 241 | (make-obsolete 'def-edebug-form-spec 'def-edebug-spec "22.1") | ||
| 242 | |||
| 243 | (defun get-edebug-spec (symbol) | 238 | (defun get-edebug-spec (symbol) |
| 244 | ;; Get the spec of symbol resolving all indirection. | 239 | ;; Get the spec of symbol resolving all indirection. |
| 245 | (let ((edebug-form-spec nil) | 240 | (let ((edebug-form-spec nil) |
diff --git a/lisp/progmodes/ebrowse.el b/lisp/progmodes/ebrowse.el index 1d29011762e..8ac54d6524e 100644 --- a/lisp/progmodes/ebrowse.el +++ b/lisp/progmodes/ebrowse.el | |||
| @@ -4210,7 +4210,7 @@ NUMBER-OF-STATIC-VARIABLES:" | |||
| 4210 | ;; this will select the buffer from which the buffer menu was | 4210 | ;; this will select the buffer from which the buffer menu was |
| 4211 | ;; invoked. But this buffer is not displayed in the buffer list if | 4211 | ;; invoked. But this buffer is not displayed in the buffer list if |
| 4212 | ;; it isn't a tree buffer. I therefore let the buffer menu command | 4212 | ;; it isn't a tree buffer. I therefore let the buffer menu command |
| 4213 | ;; loop read the command `p' via `unread-command-char'. This command | 4213 | ;; loop read the command `p' via `unread-command-events'. This command |
| 4214 | ;; has no effect since we are on the first line of the buffer. | 4214 | ;; has no effect since we are on the first line of the buffer. |
| 4215 | 4215 | ||
| 4216 | (defvar electric-buffer-menu-mode-hook nil) | 4216 | (defvar electric-buffer-menu-mode-hook nil) |
diff --git a/lisp/subr.el b/lisp/subr.el index 23b62b25c9c..aa1b10ce17d 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -1250,11 +1250,6 @@ is converted into a string by expressing it in decimal." | |||
| 1250 | 'mode-line-inverse-video | 1250 | 'mode-line-inverse-video |
| 1251 | "use the appropriate faces instead." | 1251 | "use the appropriate faces instead." |
| 1252 | "21.1") | 1252 | "21.1") |
| 1253 | (make-obsolete-variable | ||
| 1254 | 'unread-command-char | ||
| 1255 | "use `unread-command-events' instead. That variable is a list of events | ||
| 1256 | to reread, so it now uses nil to mean `no event', instead of -1." | ||
| 1257 | "before 19.15") | ||
| 1258 | 1253 | ||
| 1259 | ;; Lisp manual only updated in 22.1. | 1254 | ;; Lisp manual only updated in 22.1. |
| 1260 | (define-obsolete-variable-alias 'executing-macro 'executing-kbd-macro | 1255 | (define-obsolete-variable-alias 'executing-macro 'executing-kbd-macro |
| @@ -3928,6 +3923,7 @@ When KEEP-PRED is nil, the temporary keymap is used only once." | |||
| 3928 | (lookup-key ',map | 3923 | (lookup-key ',map |
| 3929 | (this-command-keys-vector)))) | 3924 | (this-command-keys-vector)))) |
| 3930 | (t `(funcall ',keep-pred))) | 3925 | (t `(funcall ',keep-pred))) |
| 3926 | (set ',overlaysym nil) ;Just in case. | ||
| 3931 | (remove-hook 'pre-command-hook ',clearfunsym) | 3927 | (remove-hook 'pre-command-hook ',clearfunsym) |
| 3932 | (setq emulation-mode-map-alists | 3928 | (setq emulation-mode-map-alists |
| 3933 | (delq ',alist emulation-mode-map-alists)))))) | 3929 | (delq ',alist emulation-mode-map-alists)))))) |