diff options
| author | Tino Calancha | 2016-06-07 19:24:51 -0400 |
|---|---|---|
| committer | Glenn Morris | 2016-06-07 19:25:20 -0400 |
| commit | 738738259ba77fe17e433c64e0758ea59ab5bc75 (patch) | |
| tree | a3496f3c2284cf3d2139f0bdd3dfe34f2d220a02 | |
| parent | 2f9d547329e8459965692383c5a95d41b7035726 (diff) | |
| download | emacs-738738259ba77fe17e433c64e0758ea59ab5bc75.tar.gz emacs-738738259ba77fe17e433c64e0758ea59ab5bc75.zip | |
* lisp/ibuf-ext.el (ibuffer-do-shell-command-file):
Fix non-file-visiting-buffer case. (Bug#22678)
| -rw-r--r-- | lisp/ibuf-ext.el | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el index 6052bf32ce3..0baab6b2f25 100644 --- a/lisp/ibuf-ext.el +++ b/lisp/ibuf-ext.el | |||
| @@ -347,10 +347,14 @@ the mode if ARG is omitted or nil." | |||
| 347 | :modifier-p nil) | 347 | :modifier-p nil) |
| 348 | (shell-command (concat command " " | 348 | (shell-command (concat command " " |
| 349 | (shell-quote-argument | 349 | (shell-quote-argument |
| 350 | (if buffer-file-name | 350 | (or buffer-file-name |
| 351 | buffer-file-name | 351 | (let ((file |
| 352 | (make-temp-file | 352 | (make-temp-file |
| 353 | (substring (buffer-name) 0 (min 10 (length (buffer-name)))))))))) | 353 | (substring |
| 354 | (buffer-name) 0 | ||
| 355 | (min 10 (length (buffer-name))))))) | ||
| 356 | (write-region nil nil file nil 0) | ||
| 357 | file)))))) | ||
| 354 | 358 | ||
| 355 | ;;;###autoload (autoload 'ibuffer-do-eval "ibuf-ext") | 359 | ;;;###autoload (autoload 'ibuffer-do-eval "ibuf-ext") |
| 356 | (define-ibuffer-op eval (form) | 360 | (define-ibuffer-op eval (form) |