diff options
| author | Glenn Morris | 2009-09-11 03:40:14 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-09-11 03:40:14 +0000 |
| commit | a87b98ce47010b4eec8f6982592d111fc611f388 (patch) | |
| tree | e89668955eb30fa9752733b3b103ff94551b45bf | |
| parent | 57c8e7b456f9cff91ec37261e2a73cf9f04388a8 (diff) | |
| download | emacs-a87b98ce47010b4eec8f6982592d111fc611f388.tar.gz emacs-a87b98ce47010b4eec8f6982592d111fc611f388.zip | |
(describe-function-1): Mention if a function has a compiler-macro.
| -rw-r--r-- | lisp/help-fns.el | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el index b9530d89be9..de60cd5fea2 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; help-fns.el --- Complex help functions | 1 | ;;; help-fns.el --- Complex help functions |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985, 1986, 1993, 1994, 1998, 1999, 2000, 2001, | 3 | ;; Copyright (C) 1985, 1986, 1993, 1994, 1998, 1999, 2000, 2001, 2002, |
| 4 | ;; 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 | 4 | ;; 2003, 2004, 2005, 2006, 2007, 2008, 2009 |
| 5 | ;; Free Software Foundation, Inc. | 5 | ;; Free Software Foundation, Inc. |
| 6 | 6 | ||
| 7 | ;; Maintainer: FSF | 7 | ;; Maintainer: FSF |
| @@ -450,6 +450,18 @@ suitable file is found, return nil." | |||
| 450 | (fill-region-as-paragraph pt2 (point)) | 450 | (fill-region-as-paragraph pt2 (point)) |
| 451 | (unless (looking-back "\n\n") | 451 | (unless (looking-back "\n\n") |
| 452 | (terpri))))) | 452 | (terpri))))) |
| 453 | ;; Note that list* etc do not get this property until | ||
| 454 | ;; cl-hack-byte-compiler runs, after bytecomp is loaded. | ||
| 455 | (when (eq (get function 'byte-compile) 'cl-byte-compile-compiler-macro) | ||
| 456 | (princ "This function has a compiler macro") | ||
| 457 | (let ((lib (get function 'compiler-macro-file))) | ||
| 458 | (when (stringp lib) | ||
| 459 | (princ (format " in `%s'" lib)) | ||
| 460 | (with-current-buffer standard-output | ||
| 461 | (save-excursion | ||
| 462 | (re-search-backward "`\\([^`']+\\)'" nil t) | ||
| 463 | (help-xref-button 1 'help-function-cmacro function lib))))) | ||
| 464 | (princ ".\n\n")) | ||
| 453 | (let* ((arglist (help-function-arglist def)) | 465 | (let* ((arglist (help-function-arglist def)) |
| 454 | (doc (documentation function)) | 466 | (doc (documentation function)) |
| 455 | (usage (help-split-fundoc doc function))) | 467 | (usage (help-split-fundoc doc function))) |