diff options
| author | Glenn Morris | 2014-05-05 17:33:07 -0400 |
|---|---|---|
| committer | Glenn Morris | 2014-05-05 17:33:07 -0400 |
| commit | 6da8d069757fd26ee537704a9f0dea24dc5e00b8 (patch) | |
| tree | ced4c72417f00aac34d6e40a8da67cfe07acf1ef /test | |
| parent | e6025d7240197bfd47cf649c5976533da6869a6e (diff) | |
| download | emacs-6da8d069757fd26ee537704a9f0dea24dc5e00b8.tar.gz emacs-6da8d069757fd26ee537704a9f0dea24dc5e00b8.zip | |
* lisp/help-fns.el (describe-function-1): Test for an autoload before a macro
since `macrop' works on autoloads.
* test/automated/help-fns.el: New file.
Fixes: debbugs:17410
Diffstat (limited to 'test')
| -rw-r--r-- | test/ChangeLog | 4 | ||||
| -rw-r--r-- | test/automated/help-fns.el | 37 |
2 files changed, 41 insertions, 0 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 7d4e9d5e687..a02b8e80395 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-05-05 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * automated/help-fns.el: New file. | ||
| 4 | |||
| 1 | 2014-04-25 Michael Albinus <michael.albinus@gmx.de> | 5 | 2014-04-25 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 6 | ||
| 3 | * automated/tramp-tests.el (top): | 7 | * automated/tramp-tests.el (top): |
diff --git a/test/automated/help-fns.el b/test/automated/help-fns.el new file mode 100644 index 00000000000..153de7f9e30 --- /dev/null +++ b/test/automated/help-fns.el | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | ;;; help-fns.el --- tests for help-fns.el | ||
| 2 | |||
| 3 | ;; Copyright (C) 2014 Free Software Foundation, Inc. | ||
| 4 | |||
| 5 | ;; Maintainer: emacs-devel@gnu.org | ||
| 6 | |||
| 7 | ;; This file is part of GNU Emacs. | ||
| 8 | |||
| 9 | ;; GNU Emacs is free software: you can redistribute it and/or modify | ||
| 10 | ;; it under the terms of the GNU General Public License as published by | ||
| 11 | ;; the Free Software Foundation, either version 3 of the License, or | ||
| 12 | ;; (at your option) any later version. | ||
| 13 | |||
| 14 | ;; GNU Emacs is distributed in the hope that it will be useful, | ||
| 15 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 16 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 17 | ;; GNU General Public License for more details. | ||
| 18 | |||
| 19 | ;; You should have received a copy of the GNU General Public License | ||
| 20 | ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | ||
| 21 | |||
| 22 | ;;; Commentary: | ||
| 23 | |||
| 24 | ;;; Code: | ||
| 25 | |||
| 26 | (require 'ert) | ||
| 27 | |||
| 28 | (autoload 'help-fns-test--macro "help-fns" nil nil t) | ||
| 29 | |||
| 30 | (ert-deftest help-fns-test-bug17410 () | ||
| 31 | "Test for http://debbugs.gnu.org/17410 ." | ||
| 32 | (describe-function 'help-fns-test--macro) | ||
| 33 | (with-current-buffer "*Help*" | ||
| 34 | (goto-char (point-min)) | ||
| 35 | (should (search-forward "autoloaded Lisp macro" (line-end-position))))) | ||
| 36 | |||
| 37 | ;;; help-fns.el ends here | ||