Fix #3138: infinite loop when reading package! files
This commit is contained in:
parent
6241ba2faa
commit
de78d0cc62
1 changed files with 11 additions and 11 deletions
|
@ -316,11 +316,11 @@ was installed with."
|
|||
;; Scrape `package!' blocks from FILE for a comprehensive listing of
|
||||
;; packages used by this module.
|
||||
(while (search-forward "(package!" nil t)
|
||||
(goto-char (match-beginning 0))
|
||||
(let ((ppss (save-excursion (syntax-ppss))))
|
||||
;; Don't collect packages in comments or strings
|
||||
(or (nth 3 ppss)
|
||||
(nth 4 ppss)
|
||||
(unless (or (nth 3 ppss)
|
||||
(nth 4 ppss))
|
||||
(goto-char (match-beginning 0))
|
||||
(cl-destructuring-bind (_ name . plist)
|
||||
(read (current-buffer))
|
||||
(push (cons
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue