mirror of
https://github.com/vale981/apheleia
synced 2025-03-04 17:11:40 -05:00
Fix broken handling of filepath
This commit is contained in:
parent
cbffa9298c
commit
4da2898ffd
1 changed files with 4 additions and 3 deletions
|
@ -583,10 +583,11 @@ cmd is to be run."
|
|||
output-fname
|
||||
arg))
|
||||
command)))
|
||||
(when (memq 'file command)
|
||||
(when (or (memq 'file command) (memq 'filepath command))
|
||||
;; Fail when using file but not as the first formatter in this
|
||||
;; sequence.
|
||||
(when stdin-buffer
|
||||
;; sequence. (But filepath is okay, since it indicates content
|
||||
;; is not actually being read from the named file.)
|
||||
(when (and stdin-buffer (memq 'file command))
|
||||
(error "Cannot run formatter using `file' in a \
|
||||
sequence unless it's first in the sequence"))
|
||||
(let ((file-name (or buffer-file-name
|
||||
|
|
Loading…
Add table
Reference in a new issue