emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug fix for eshell-remote-command in lisp/eshell/esh-ext.el


From: Stefan Monnier
Subject: Re: Bug fix for eshell-remote-command in lisp/eshell/esh-ext.el
Date: Mon, 27 Jul 2009 13:53:32 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux)

> The function shell-command will sometimes split the current frame to
> display the output.  This means that even though eshell-remote-command
> kills the buffer in question, the window layout has been altered.  I
> suggest changing

>         (setq exitcode
>                  (funcall handler 'shell-command
>                              (mapconcat 'shell-quote-argument
>                                                (append (list command) args) " 
> ")
>                  outbuf errbuf))

> to

>         (setq exitcode
>               (save-window-excursion
>                 (funcall handler 'shell-command
>                          (mapconcat 'shell-quote-argument
>                                     (append (list command) args) " ")
>                          outbuf errbuf)))

> which will fix any mucking around with the frames window configuration
> that shell-command decides to do.

Actually, it will not fix "any mucking around" but only "some mucking
around".  E.g. it won't fix mucking arounds that end up creating
new frames (e.g. via pop-up-frames).
The only reliable solution is to prevent those windows/frames from being
created in the first place.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]