diff options
Diffstat (limited to 'lisp/emacs-lisp/debug.el')
| -rw-r--r-- | lisp/emacs-lisp/debug.el | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el index faa323f733a..cb77148c285 100644 --- a/lisp/emacs-lisp/debug.el +++ b/lisp/emacs-lisp/debug.el | |||
| @@ -816,60 +816,6 @@ Redefining FUNCTION also cancels it." | |||
| 816 | '((depth . -100))) | 816 | '((depth . -100))) |
| 817 | function) | 817 | function) |
| 818 | 818 | ||
| 819 | ;;;###autoload | ||
| 820 | ;; (defun debug-on-set (symbol) | ||
| 821 | ;; "Request FUNCTION to invoke debugger each time it is called. | ||
| 822 | |||
| 823 | ;; When called interactively, prompt for FUNCTION in the minibuffer. | ||
| 824 | |||
| 825 | ;; This works by modifying the definition of FUNCTION. If you tell the | ||
| 826 | ;; debugger to continue, FUNCTION's execution proceeds. If FUNCTION is a | ||
| 827 | ;; normal function or a macro written in Lisp, you can also step through | ||
| 828 | ;; its execution. FUNCTION can also be a primitive that is not a special | ||
| 829 | ;; form, in which case stepping is not possible. Break-on-entry for | ||
| 830 | ;; primitive functions only works when that function is called from Lisp. | ||
| 831 | |||
| 832 | ;; Use \\[cancel-debug-on-entry] to cancel the effect of this command. | ||
| 833 | ;; Redefining FUNCTION also cancels it." | ||
| 834 | ;; (interactive | ||
| 835 | ;; (let ((v (variable-at-point)) | ||
| 836 | ;; (enable-recursive-minibuffers t) | ||
| 837 | ;; (orig-buffer (current-buffer)) | ||
| 838 | ;; val) | ||
| 839 | ;; (setq val (completing-read | ||
| 840 | ;; (if (symbolp v) | ||
| 841 | ;; (format | ||
| 842 | ;; "Debug on set to symbol (default %s): " v) | ||
| 843 | ;; "Debug on set to symbol: ") | ||
| 844 | ;; #'help--symbol-completion-table | ||
| 845 | ;; (lambda (vv) | ||
| 846 | ;; ;; In case the variable only exists in the buffer | ||
| 847 | ;; ;; the command we switch back to that buffer before | ||
| 848 | ;; ;; we examine the variable. | ||
| 849 | ;; (with-current-buffer orig-buffer | ||
| 850 | ;; (or (get vv 'variable-documentation) | ||
| 851 | ;; (and (boundp vv) (not (keywordp vv)))))) | ||
| 852 | ;; t nil nil | ||
| 853 | ;; (if (symbolp v) (symbol-name v)))) | ||
| 854 | ;; (list (if (equal val "") | ||
| 855 | ;; v (intern val))))) | ||
| 856 | |||
| 857 | |||
| 858 | |||
| 859 | ;; (interactive | ||
| 860 | ;; (let* ((var-default (variable-at-point)) | ||
| 861 | ;; (var (completing-read | ||
| 862 | ;; (if var-default | ||
| 863 | ;; (format "Debug on set to symbol (default %s): " var-default) | ||
| 864 | ;; "Debug on set to symbol: ") | ||
| 865 | ;; nil | ||
| 866 | ;; #'boundp | ||
| 867 | ;; t nil nil (symbol-name var-default)))) | ||
| 868 | ;; (list (if (equal var "") var-default (intern var))))) | ||
| 869 | ;; (advice-add function :before #'debug--implement-debug-on-entry | ||
| 870 | ;; '((depth . -100))) | ||
| 871 | ;; function) | ||
| 872 | |||
| 873 | (defun debug--function-list () | 819 | (defun debug--function-list () |
| 874 | "List of functions currently set for debug on entry." | 820 | "List of functions currently set for debug on entry." |
| 875 | (let ((funs '())) | 821 | (let ((funs '())) |