* lisp/ibuf-ext.el (ibuffer-do-shell-command-file):
Fix non-file-visiting-buffer case. (Bug#22678)
This commit is contained in:
parent
2f9d547329
commit
738738259b
1 changed files with 8 additions and 4 deletions
|
@ -347,10 +347,14 @@ the mode if ARG is omitted or nil."
|
|||
:modifier-p nil)
|
||||
(shell-command (concat command " "
|
||||
(shell-quote-argument
|
||||
(if buffer-file-name
|
||||
buffer-file-name
|
||||
(make-temp-file
|
||||
(substring (buffer-name) 0 (min 10 (length (buffer-name))))))))))
|
||||
(or buffer-file-name
|
||||
(let ((file
|
||||
(make-temp-file
|
||||
(substring
|
||||
(buffer-name) 0
|
||||
(min 10 (length (buffer-name)))))))
|
||||
(write-region nil nil file nil 0)
|
||||
file))))))
|
||||
|
||||
;;;###autoload (autoload 'ibuffer-do-eval "ibuf-ext")
|
||||
(define-ibuffer-op eval (form)
|
||||
|
|
Loading…
Add table
Reference in a new issue