diff options
| author | Stefan Monnier | 2026-01-11 18:26:53 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2026-01-11 18:26:53 -0500 |
| commit | 9dcf0bc428f76004d2e33019de640a9d4920f4f2 (patch) | |
| tree | 81d07244a989460de0069f4547e139b8581b6b02 /test/lisp | |
| parent | 762902c2c62de1853472c2c1a1a724ea67be45c4 (diff) | |
| download | emacs-master.tar.gz emacs-master.zip | |
* lisp/emacs-lisp/cl-generic.el (cl--generic-make-function):
Preserve advertised-calling-convention info.
* test/lisp/emacs-lisp/pcase-tests.el (pcase-tests-quote-optimization):
Require `byte-opt` to fix the test when the compiler is not loaded yet.
* lisp/progmodes/elisp-mode.el: Fix some >80column problems.
(elisp--xref-format-extra)
(elisp--xref-format): Make them constant, now that we don't have
the purespace. Also, use %S since some of the elements
don't necessarily have names and even if they do, we'd want to
escape any funny characters in them to avoid ambiguities.
(elisp--xref-find-definitions): Fix uses of
`elisp--xref-format-extra` accordingly.
Improve heuristic to distinguish proper `cl-defgeneric` from
implicit ones.
(elisp-eldoc-docstring-length-limit)
(elisp-eldoc-funcall-with-docstring-length): Remove redundant `:group`.
* lisp/cedet/mode-local.el (xref-mode-local-overload): Pass the
override symbol rather than its name through `elisp--xref-format-extra`.
* test/lisp/progmodes/elisp-mode-tests.el (find-defs-constructor):
Adjust test to new text.
Diffstat (limited to 'test/lisp')
| -rw-r--r-- | test/lisp/emacs-lisp/pcase-tests.el | 1 | ||||
| -rw-r--r-- | test/lisp/progmodes/elisp-mode-tests.el | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/test/lisp/emacs-lisp/pcase-tests.el b/test/lisp/emacs-lisp/pcase-tests.el index 6b731699a67..e06c1e621c2 100644 --- a/test/lisp/emacs-lisp/pcase-tests.el +++ b/test/lisp/emacs-lisp/pcase-tests.el | |||
| @@ -80,6 +80,7 @@ | |||
| 80 | (ert-deftest pcase-tests-quote-optimization () | 80 | (ert-deftest pcase-tests-quote-optimization () |
| 81 | ;; FIXME: We could/should also test that we get a corresponding | 81 | ;; FIXME: We could/should also test that we get a corresponding |
| 82 | ;; "shadowed branch" warning. | 82 | ;; "shadowed branch" warning. |
| 83 | (require 'byte-opt) ;; FIXME: Needed for pcase to see that `consp' is `pure'. | ||
| 83 | (should-not (pcase-tests-grep | 84 | (should-not (pcase-tests-grep |
| 84 | 'FOO (macroexpand '(pcase EXP | 85 | 'FOO (macroexpand '(pcase EXP |
| 85 | (`(,_ . ,_) (BAR)) | 86 | (`(,_ . ,_) (BAR)) |
diff --git a/test/lisp/progmodes/elisp-mode-tests.el b/test/lisp/progmodes/elisp-mode-tests.el index 311d60dae18..8211347ba11 100644 --- a/test/lisp/progmodes/elisp-mode-tests.el +++ b/test/lisp/progmodes/elisp-mode-tests.el | |||
| @@ -407,7 +407,7 @@ to (xref-elisp-test-descr-to-target xref)." | |||
| 407 | ;; cl-defstruct location. | 407 | ;; cl-defstruct location. |
| 408 | (list | 408 | (list |
| 409 | (cons | 409 | (cons |
| 410 | (xref-make "(cl-defstruct (xref-elisp-location (:constructor xref-make-elisp-location)))" | 410 | (xref-make "(cl-defstruct xref-elisp-location (:constructor xref-make-elisp-location))" |
| 411 | (xref-make-elisp-location | 411 | (xref-make-elisp-location |
| 412 | 'xref-elisp-location 'define-type | 412 | 'xref-elisp-location 'define-type |
| 413 | (expand-file-name "../../../lisp/progmodes/elisp-mode.el" emacs-test-dir))) | 413 | (expand-file-name "../../../lisp/progmodes/elisp-mode.el" emacs-test-dir))) |