diff options
author | Daniel MartÃn <mardani29@yahoo.es> | 2022-08-25 14:37:36 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-08-25 14:37:36 +0200 |
commit | dbec115948657d4f0b5c8ad86410b8e1c9e825d2 (patch) | |
tree | 560370ac70ab6042042e696a39e2121bf9b0b233 /test/lisp/progmodes/elisp-mode-tests.el | |
parent | b947f80a623c9a8c6abd2bcd4e2e245af6b0e03a (diff) | |
download | emacs-dbec115948657d4f0b5c8ad86410b8e1c9e825d2.tar.gz emacs-dbec115948657d4f0b5c8ad86410b8e1c9e825d2.tar.bz2 emacs-dbec115948657d4f0b5c8ad86410b8e1c9e825d2.zip |
Fix instrumented eval-defun not printing "Edebug:" to the echo area
* lisp/progmodes/elisp-mode.el (elisp--eval-defun): Determine if we're
instrumenting a function and call eval-region with PRINTFLAG set to
nil if so (Bug#50245).
* test/lisp/progmodes/elisp-mode-tests.el
(eval-defun-prints-edebug-when-instrumented): Add a new test.
Diffstat (limited to 'test/lisp/progmodes/elisp-mode-tests.el')
-rw-r--r-- | test/lisp/progmodes/elisp-mode-tests.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/lisp/progmodes/elisp-mode-tests.el b/test/lisp/progmodes/elisp-mode-tests.el index 8074d8d7066..e73be0db504 100644 --- a/test/lisp/progmodes/elisp-mode-tests.el +++ b/test/lisp/progmodes/elisp-mode-tests.el @@ -183,6 +183,16 @@ (call-interactively #'eval-last-sexp) (should (equal (current-message) "66 (#o102, #x42, ?B)")))))) +;;; eval-defun + +(ert-deftest eval-defun-prints-edebug-when-instrumented () + (skip-unless (not noninteractive)) + (with-temp-buffer + (let ((current-prefix-arg '(4))) + (erase-buffer) (insert "(defun foo ())") (message nil) + (call-interactively #'eval-defun) + (should (equal (current-message) "Edebug: foo"))))) + ;;; eldoc (defun elisp-mode-tests--face-propertized-string (string) |