Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a87b98ce
Commit
a87b98ce
authored
Sep 11, 2009
by
Glenn Morris
Browse files
(describe-function-1): Mention if a function has a compiler-macro.
parent
57c8e7b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
lisp/help-fns.el
lisp/help-fns.el
+14
-2
No files found.
lisp/help-fns.el
View file @
a87b98ce
;;; help-fns.el --- Complex help functions
;; Copyright (C) 1985, 1986, 1993, 1994, 1998, 1999, 2000, 2001,
;;
2002,
2003, 2004, 2005, 2006, 2007, 2008, 2009
;; Copyright (C) 1985, 1986, 1993, 1994, 1998, 1999, 2000, 2001,
2002,
;; 2003, 2004, 2005, 2006, 2007, 2008, 2009
;; Free Software Foundation, Inc.
;; Maintainer: FSF
...
...
@@ -450,6 +450,18 @@ suitable file is found, return nil."
(
fill-region-as-paragraph
pt2
(
point
))
(
unless
(
looking-back
"\n\n"
)
(
terpri
)))))
;; Note that list* etc do not get this property until
;; cl-hack-byte-compiler runs, after bytecomp is loaded.
(
when
(
eq
(
get
function
'byte-compile
)
'cl-byte-compile-compiler-macro
)
(
princ
"This function has a compiler macro"
)
(
let
((
lib
(
get
function
'compiler-macro-file
)))
(
when
(
stringp
lib
)
(
princ
(
format
" in `%s'"
lib
))
(
with-current-buffer
standard-output
(
save-excursion
(
re-search-backward
"`\\([^`']+\\)'"
nil
t
)
(
help-xref-button
1
'help-function-cmacro
function
lib
)))))
(
princ
".\n\n"
))
(
let*
((
arglist
(
help-function-arglist
def
))
(
doc
(
documentation
function
))
(
usage
(
help-split-fundoc
doc
function
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment