Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
73873825
Commit
73873825
authored
Jun 07, 2016
by
Tino Calancha
Committed by
Glenn Morris
Jun 07, 2016
Browse files
* lisp/ibuf-ext.el (ibuffer-do-shell-command-file):
Fix non-file-visiting-buffer case. (Bug#22678)
parent
2f9d5473
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
lisp/ibuf-ext.el
lisp/ibuf-ext.el
+8
-4
No files found.
lisp/ibuf-ext.el
View file @
73873825
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment