mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix #3827 (part 2): inverted file cookies
Turns out some autodefs weren't being noop'ed when their file's cookie returns nil. This was the secondary cause of #3827.
This commit is contained in:
@ -146,9 +146,8 @@ If COOKIE doesn't exist, return NULL-VALUE."
|
|||||||
(insert-file-contents file nil 0 256)
|
(insert-file-contents file nil 0 256)
|
||||||
(if (re-search-forward (format "^;;;###%s " (regexp-quote (or cookie "if")))
|
(if (re-search-forward (format "^;;;###%s " (regexp-quote (or cookie "if")))
|
||||||
nil t)
|
nil t)
|
||||||
(or (let ((load-file-name file))
|
(let ((load-file-name file))
|
||||||
(eval (sexp-at-point) t))
|
(eval (sexp-at-point) t))
|
||||||
null-value)
|
|
||||||
null-value)))
|
null-value)))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
|
Reference in New Issue
Block a user