mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-22 07:09:54 +00:00
(safe-documentation): Don't crash on byte-compiled macro.
This commit is contained in:
parent
3ed5409efa
commit
d2e1218f85
@ -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 New Issue
Block a user