]> git.eshelyaron.com Git - emacs.git/commitdiff
* test/lisp/help-fns-tests.el (help-fns-test-dangling-alias): New test.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 12 Oct 2017 14:19:26 +0000 (10:19 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 12 Oct 2017 14:19:26 +0000 (10:19 -0400)
test/lisp/help-fns-tests.el

index 98e6b335b903e1425608eb08f8a55020892becaf..6dc5299ef3c58e868c0ffe2b15bfbac2a15ec4a2 100644 (file)
@@ -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)))
 \f
 ;;; Test describe-function over functions with funny names
 (defun abc\\\[universal-argument\]b\`c\'d\\e\"f (x)