* bug#6857: shell-command should say where it is talking about
@ 2010-08-14 17:38 jidanni
2011-07-02 14:00 ` Lars Magne Ingebrigtsen
2011-07-02 20:42 ` jidanni
0 siblings, 2 replies; 4+ messages in thread
From: jidanni @ 2010-08-14 17:38 UTC (permalink / raw
To: 6857
M-! (translated from <escape> !) runs the command shell-command, which
is an interactive compiled Lisp function in `simple.el'.
OK, but in its error message,
(Shell command failed with code 99 and some error output)
you had better tell the user just what buffer to look for that error
output in, lest he have to figure it out himself. Not impossible but not
friendly. emacs-version "24.0.50.1".
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#6857: shell-command should say where it is talking about
2010-08-14 17:38 bug#6857: shell-command should say where it is talking about jidanni
@ 2011-07-02 14:00 ` Lars Magne Ingebrigtsen
2011-07-02 20:42 ` jidanni
1 sibling, 0 replies; 4+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-07-02 14:00 UTC (permalink / raw
To: jidanni; +Cc: 6857
jidanni@jidanni.org writes:
> M-! (translated from <escape> !) runs the command shell-command, which
> is an interactive compiled Lisp function in `simple.el'.
>
> OK, but in its error message,
>
> (Shell command failed with code 99 and some error output)
>
> you had better tell the user just what buffer to look for that error
> output in, lest he have to figure it out himself. Not impossible but not
> friendly. emacs-version "24.0.50.1".
In what cases do you get an error message saying
(Shell command failed with code 99 and some error output)
?
I get error messages like:
/bin/bash: lala: command not found
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#6857: shell-command should say where it is talking about
2010-08-14 17:38 bug#6857: shell-command should say where it is talking about jidanni
2011-07-02 14:00 ` Lars Magne Ingebrigtsen
@ 2011-07-02 20:42 ` jidanni
2011-07-02 21:02 ` Lars Magne Ingebrigtsen
1 sibling, 1 reply; 4+ messages in thread
From: jidanni @ 2011-07-02 20:42 UTC (permalink / raw
To: larsi; +Cc: 6857
>>>>> "LMI" == Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
LMI> jidanni@jidanni.org writes:
>> M-! (translated from <escape> !) runs the command shell-command, which
>> is an interactive compiled Lisp function in `simple.el'.
>>
>> OK, but in its error message,
>>
>> (Shell command failed with code 99 and some error output)
>>
>> you had better tell the user just what buffer to look for that error
>> output in, lest he have to figure it out himself. Not impossible but not
>> friendly. emacs-version "24.0.50.1".
LMI> In what cases do you get an error message saying
LMI> (Shell command failed with code 99 and some error output)
LMI> ?
LMI> I get error messages like:
LMI> /bin/bash: lala: command not found
I see. I set
(setq shell-command-default-error-buffer "shell-command-errors")
to avoid stderr and stdout being jumbled.
Therefore code like
(let ((output
(if (and error-file
(< 0 (nth 7 (file-attributes error-file))))
"some error output"
"no output")))
needs to mention shell-command-default-error-buffer if set, to the user.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#6857: shell-command should say where it is talking about
2011-07-02 20:42 ` jidanni
@ 2011-07-02 21:02 ` Lars Magne Ingebrigtsen
0 siblings, 0 replies; 4+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-07-02 21:02 UTC (permalink / raw
To: jidanni; +Cc: 6857
jidanni@jidanni.org writes:
> Therefore code like
>
> (let ((output
> (if (and error-file
> (< 0 (nth 7 (file-attributes error-file))))
> "some error output"
> "no output")))
>
> needs to mention shell-command-default-error-buffer if set, to the user.
Ok; fixed now.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-07-02 21:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-14 17:38 bug#6857: shell-command should say where it is talking about jidanni
2011-07-02 14:00 ` Lars Magne Ingebrigtsen
2011-07-02 20:42 ` jidanni
2011-07-02 21:02 ` Lars Magne Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.