mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Fix #1694: wrong-type-arg stringp errors on some files
This commit is contained in:
@ -118,7 +118,7 @@ information.")
|
||||
"Check if the current buffer is a candidate for file template expansion. It
|
||||
must be non-read-only, empty, and there must be a rule in
|
||||
`+file-templates-alist' that applies to it."
|
||||
(when (and (not (file-exists-p (buffer-file-name)))
|
||||
(when (and (not (file-exists-p (or (buffer-file-name) "")))
|
||||
(not buffer-read-only)
|
||||
(bobp) (eobp)
|
||||
(not (string-match-p "^ *\\*" (buffer-name))))
|
||||
|
Reference in New Issue
Block a user