diff options
| author | Philippe Vaucher | 2016-10-04 17:34:51 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2016-10-04 17:34:51 +0300 |
| commit | f2144eef19611fb2189c44c055e1d539b7a53f08 (patch) | |
| tree | c237bdd9449d4c06c511f194bfc210cf5acfde85 | |
| parent | ec6e4b9d1e5a215d9dfe1026730dbb23f1935615 (diff) | |
| download | emacs-f2144eef19611fb2189c44c055e1d539b7a53f08.tar.gz emacs-f2144eef19611fb2189c44c055e1d539b7a53f08.zip | |
Restore 'command-debug-status' functionality
* src/callint.c (Fcall_interactively): Bind command-debug-status
to nil. This restores functionality inadvertently removed in
Emacs 25.1. (Bug#24555)
* lisp/subr.el (command-debug-status): Declare obsolete.
* doc/lispref/debugging.texi (Internals of Debugger): Document
that 'command-debug-status' is obsolete.
| -rw-r--r-- | doc/lispref/debugging.texi | 2 | ||||
| -rw-r--r-- | lisp/subr.el | 3 | ||||
| -rw-r--r-- | src/callint.c | 6 |
3 files changed, 10 insertions, 1 deletions
diff --git a/doc/lispref/debugging.texi b/doc/lispref/debugging.texi index 2f83b4040fa..c88a2fa60e0 100644 --- a/doc/lispref/debugging.texi +++ b/doc/lispref/debugging.texi | |||
| @@ -654,6 +654,8 @@ invocation. | |||
| 654 | The advantage of using this variable rather than an ordinary global | 654 | The advantage of using this variable rather than an ordinary global |
| 655 | variable is that the data will never carry over to a subsequent command | 655 | variable is that the data will never carry over to a subsequent command |
| 656 | invocation. | 656 | invocation. |
| 657 | |||
| 658 | This variable is obsolete and will be removed in future versions. | ||
| 657 | @end defvar | 659 | @end defvar |
| 658 | 660 | ||
| 659 | @defun backtrace-frame frame-number | 661 | @defun backtrace-frame frame-number |
diff --git a/lisp/subr.el b/lisp/subr.el index 9c717e16b94..a3aef2e4a5c 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -1377,6 +1377,9 @@ is converted into a string by expressing it in decimal." | |||
| 1377 | (make-obsolete 'process-filter-multibyte-p nil "23.1") | 1377 | (make-obsolete 'process-filter-multibyte-p nil "23.1") |
| 1378 | (make-obsolete 'set-process-filter-multibyte nil "23.1") | 1378 | (make-obsolete 'set-process-filter-multibyte nil "23.1") |
| 1379 | 1379 | ||
| 1380 | (make-obsolete-variable 'command-debug-status | ||
| 1381 | "expect it to be removed in a future version." "25.2") | ||
| 1382 | |||
| 1380 | ;; Lisp manual only updated in 22.1. | 1383 | ;; Lisp manual only updated in 22.1. |
| 1381 | (define-obsolete-variable-alias 'executing-macro 'executing-kbd-macro | 1384 | (define-obsolete-variable-alias 'executing-macro 'executing-kbd-macro |
| 1382 | "before 19.34") | 1385 | "before 19.34") |
diff --git a/src/callint.c b/src/callint.c index 053ee6cdaa5..c0afc7b20bd 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -837,7 +837,10 @@ invoke it. If KEYS is omitted or nil, the return value of | |||
| 837 | kset_last_command (current_kboard, save_last_command); | 837 | kset_last_command (current_kboard, save_last_command); |
| 838 | 838 | ||
| 839 | { | 839 | { |
| 840 | Lisp_Object val = Ffuncall (nargs, args); | 840 | Lisp_Object val; |
| 841 | specbind (Qcommand_debug_status, Qnil); | ||
| 842 | |||
| 843 | val = Ffuncall (nargs, args); | ||
| 841 | val = unbind_to (speccount, val); | 844 | val = unbind_to (speccount, val); |
| 842 | SAFE_FREE (); | 845 | SAFE_FREE (); |
| 843 | return val; | 846 | return val; |
| @@ -894,6 +897,7 @@ syms_of_callint (void) | |||
| 894 | DEFSYM (Qhandle_shift_selection, "handle-shift-selection"); | 897 | DEFSYM (Qhandle_shift_selection, "handle-shift-selection"); |
| 895 | DEFSYM (Qread_number, "read-number"); | 898 | DEFSYM (Qread_number, "read-number"); |
| 896 | DEFSYM (Qfuncall_interactively, "funcall-interactively"); | 899 | DEFSYM (Qfuncall_interactively, "funcall-interactively"); |
| 900 | DEFSYM (Qcommand_debug_status, "command-debug-status"); | ||
| 897 | DEFSYM (Qenable_recursive_minibuffers, "enable-recursive-minibuffers"); | 901 | DEFSYM (Qenable_recursive_minibuffers, "enable-recursive-minibuffers"); |
| 898 | DEFSYM (Qmouse_leave_buffer_hook, "mouse-leave-buffer-hook"); | 902 | DEFSYM (Qmouse_leave_buffer_hook, "mouse-leave-buffer-hook"); |
| 899 | 903 | ||