diff options
Diffstat (limited to 'lisp/emacs-lisp')
| -rw-r--r-- | lisp/emacs-lisp/debug.el | 54 | ||||
| -rw-r--r-- | lisp/emacs-lisp/let-alist.el | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/subr-x.el | 5 |
3 files changed, 6 insertions, 55 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 '())) |
diff --git a/lisp/emacs-lisp/let-alist.el b/lisp/emacs-lisp/let-alist.el index a45fc0a05c3..cf82fe3ec63 100644 --- a/lisp/emacs-lisp/let-alist.el +++ b/lisp/emacs-lisp/let-alist.el | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | ;; Author: Artur Malabarba <emacs@endlessparentheses.com> | 5 | ;; Author: Artur Malabarba <emacs@endlessparentheses.com> |
| 6 | ;; Package-Requires: ((emacs "24.1")) | 6 | ;; Package-Requires: ((emacs "24.1")) |
| 7 | ;; Version: 1.0.4 | 7 | ;; Version: 1.0.5 |
| 8 | ;; Keywords: extensions lisp | 8 | ;; Keywords: extensions lisp |
| 9 | ;; Prefix: let-alist | 9 | ;; Prefix: let-alist |
| 10 | ;; Separator: - | 10 | ;; Separator: - |
diff --git a/lisp/emacs-lisp/subr-x.el b/lisp/emacs-lisp/subr-x.el index 7736225b5fa..52331b9ad36 100644 --- a/lisp/emacs-lisp/subr-x.el +++ b/lisp/emacs-lisp/subr-x.el | |||
| @@ -214,6 +214,11 @@ user enters `recenter', `scroll-up', or `scroll-down' responses, | |||
| 214 | perform the requested window recentering or scrolling and ask | 214 | perform the requested window recentering or scrolling and ask |
| 215 | again. | 215 | again. |
| 216 | 216 | ||
| 217 | When `use-dialog-box' is t (the default), this function can pop | ||
| 218 | up a dialog window to collect the user input. That functionality | ||
| 219 | requires `display-popup-menus-p' to return t. Otherwise, a text | ||
| 220 | dialog will be used. | ||
| 221 | |||
| 217 | The return value is the matching entry from the CHOICES list. | 222 | The return value is the matching entry from the CHOICES list. |
| 218 | 223 | ||
| 219 | Usage example: | 224 | Usage example: |