mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
(safe-documentation): Don't crash on byte-compiled macro.
This commit is contained in:
parent
3ed5409efa
commit
d2e1218f85
1 changed files with 2 additions and 2 deletions
|
|
@ -329,10 +329,10 @@ Will return nil instead."
|
|||
(setq function (if (fboundp function)
|
||||
(symbol-function function)
|
||||
0)))
|
||||
(if (eq (car-safe function) 'macro)
|
||||
(setq function (cdr function)))
|
||||
(if (not (consp function))
|
||||
nil
|
||||
(if (eq (car function) 'macro)
|
||||
(setq function (cdr function)))
|
||||
(if (not (memq (car function) '(lambda autoload)))
|
||||
nil
|
||||
(setq function (nth 2 function))
|
||||
|
|
|
|||
Loading…
Reference in a new issue