(loaddefs-generate--compute-prefixes): Fix thinko in last change
* lisp/emacs-lisp/loaddefs-gen.el (loaddefs-generate--compute-prefixes): Fix thinko in last change. Also, reduce memory allocation.
This commit is contained in:
parent
ab318cce1e
commit
77f240012f
1 changed files with 4 additions and 3 deletions
|
@ -499,16 +499,17 @@ don't include."
|
|||
|
||||
(defun loaddefs-generate--compute-prefixes (load-name)
|
||||
(goto-char (point-min))
|
||||
(let ((prefs nil))
|
||||
(let ((prefs nil)
|
||||
(temp-obarray (obarray-make)))
|
||||
;; Avoid (defvar <foo>) by requiring a trailing space.
|
||||
(while (re-search-forward
|
||||
"^(\\(def[^ \t\n]+\\)[ \t\n]+['(]*\\([^' ()\"\n]+\\)[\n \t]" nil t)
|
||||
(unless (member (match-string 1) autoload-ignored-definitions)
|
||||
(let* ((name (match-string-no-properties 2))
|
||||
;; Consider `read-symbol-shorthands'.
|
||||
(probe (let ((obarray (obarray-make)))
|
||||
(probe (let ((obarray temp-obarray))
|
||||
(car (read-from-string name)))))
|
||||
(when (symbolp name)
|
||||
(when (symbolp probe)
|
||||
(setq name (symbol-name probe))
|
||||
(when (save-excursion
|
||||
(goto-char (match-beginning 0))
|
||||
|
|
Loading…
Add table
Reference in a new issue