mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* test/lisp/help-fns-tests.el (help-fns-test-dangling-alias): New test.
This commit is contained in:
parent
7ed1c04838
commit
57b22f490d
1 changed files with 5 additions and 0 deletions
|
|
@ -81,6 +81,11 @@ Return first line of the output of (describe-function-1 FUNC)."
|
|||
(result (help-fns-tests--describe-function 'search-forward-regexp)))
|
||||
(should (string-match regexp result))))
|
||||
|
||||
(ert-deftest help-fns-test-dangling-alias ()
|
||||
"Make sure we don't burp on bogus aliases."
|
||||
(let ((f (make-symbol "bogus-alias")))
|
||||
(define-obsolete-function-alias f 'help-fns-test--undefined-function "past")
|
||||
(describe-symbol f)))
|
||||
|
||||
;;; Test describe-function over functions with funny names
|
||||
(defun abc\\\[universal-argument\]b\`c\'d\\e\"f (x)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue