aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2022-01-14 06:30:23 +0100
committerStefan Kangas2022-01-14 06:30:23 +0100
commitb9fecb0dae55774e59e4d29e2fbb5cb8615914ea (patch)
tree3e14cff8594b454cbe4ef4d3733cb4dd8d369f5d
parent7eb91aaaf41d5cb5c3c3407e7488379fce01d404 (diff)
parent34ca4ff9a52d38250f70f578fd045490b4eef4f9 (diff)
downloademacs-b9fecb0dae55774e59e4d29e2fbb5cb8615914ea.tar.gz
emacs-b9fecb0dae55774e59e4d29e2fbb5cb8615914ea.zip
Merge from origin/emacs-28
34ca4ff9a5 Fix Edebug specification for inline functions (Bug#53068). 3c06c37a8b Remove mention of removed `gnus-treat-play-sounds' variabl...
-rw-r--r--doc/misc/gnus.texi3
-rw-r--r--lisp/emacs-lisp/inline.el2
-rw-r--r--test/lisp/emacs-lisp/edebug-tests.el10
3 files changed, 11 insertions, 4 deletions
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index 61870311ed8..b3efdfbacba 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -12223,7 +12223,6 @@ controlling variable is a predicate list, as described above.
12223@vindex gnus-treat-highlight-citation 12223@vindex gnus-treat-highlight-citation
12224@vindex gnus-treat-highlight-headers 12224@vindex gnus-treat-highlight-headers
12225@vindex gnus-treat-highlight-signature 12225@vindex gnus-treat-highlight-signature
12226@vindex gnus-treat-play-sounds
12227@vindex gnus-treat-x-pgp-sig 12226@vindex gnus-treat-x-pgp-sig
12228@vindex gnus-treat-unfold-headers 12227@vindex gnus-treat-unfold-headers
12229@vindex gnus-treat-fold-headers 12228@vindex gnus-treat-fold-headers
@@ -12359,8 +12358,6 @@ is controlled by @code{gnus-body-boundary-delimiter}.
12359 12358
12360@xref{Article Highlighting}. 12359@xref{Article Highlighting}.
12361 12360
12362@vindex gnus-treat-play-sounds
12363@item gnus-treat-play-sounds
12364@item gnus-treat-ansi-sequences (t) 12361@item gnus-treat-ansi-sequences (t)
12365@vindex gnus-treat-x-pgp-sig 12362@vindex gnus-treat-x-pgp-sig
12366@item gnus-treat-x-pgp-sig (head) 12363@item gnus-treat-x-pgp-sig (head)
diff --git a/lisp/emacs-lisp/inline.el b/lisp/emacs-lisp/inline.el
index 963e117ff34..de0112db631 100644
--- a/lisp/emacs-lisp/inline.el
+++ b/lisp/emacs-lisp/inline.el
@@ -71,7 +71,7 @@
71 71
72(defmacro inline-quote (_exp) 72(defmacro inline-quote (_exp)
73 "Similar to backquote, but quotes code and only accepts , and not ,@." 73 "Similar to backquote, but quotes code and only accepts , and not ,@."
74 (declare (debug backquote-form)) 74 (declare (debug (backquote-form)))
75 (error "inline-quote can only be used within define-inline")) 75 (error "inline-quote can only be used within define-inline"))
76 76
77(defmacro inline-const-p (_exp) 77(defmacro inline-const-p (_exp)
diff --git a/test/lisp/emacs-lisp/edebug-tests.el b/test/lisp/emacs-lisp/edebug-tests.el
index d238bffdaa1..35259a796a0 100644
--- a/test/lisp/emacs-lisp/edebug-tests.el
+++ b/test/lisp/emacs-lisp/edebug-tests.el
@@ -1094,5 +1094,15 @@ This avoids potential duplicate definitions (Bug#41988)."
1094 (edebug-new-definition name)))) 1094 (edebug-new-definition name))))
1095 (should-error (eval-buffer) :type 'invalid-read-syntax)))) 1095 (should-error (eval-buffer) :type 'invalid-read-syntax))))
1096 1096
1097(ert-deftest edebug-tests-inline ()
1098 "Check that Edebug can instrument inline functions (Bug#53068)."
1099 (with-temp-buffer
1100 (print '(define-inline edebug-tests-inline (arg)
1101 (inline-quote ,arg))
1102 (current-buffer))
1103 (let ((edebug-all-defs t)
1104 (edebug-initial-mode 'Go-nonstop))
1105 (eval-buffer))))
1106
1097(provide 'edebug-tests) 1107(provide 'edebug-tests)
1098;;; edebug-tests.el ends here 1108;;; edebug-tests.el ends here