unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Visiting open processes when killing emacs
@ 2010-11-17 18:30 Michael Hoffman
  2010-12-15  5:09 ` Kevin Rodgers
       [not found] ` <mailman.3.1292389761.26985.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Michael Hoffman @ 2010-11-17 18:30 UTC (permalink / raw)
  To: help-gnu-emacs

I've started using term-mode in emacs and so I often have several terms 
processes open when I try to kill emacs. Emacs displays the process-list 
at this point, but actually visiting the open processes to close them 
all is a little clunky. I either have to select each buffer individually 
with C-x b, or use C-x C-b and try to identify all the appropriate 
buffers from there. That's a little less smooth than I was hoping for 
either, and is complicated by the update to the buffer list when I close 
one of the other process buffers.

Is there a better way to do this?

Many thanks,
Michael


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Visiting open processes when killing emacs
  2010-11-17 18:30 Visiting open processes when killing emacs Michael Hoffman
@ 2010-12-15  5:09 ` Kevin Rodgers
  2010-12-15  9:45   ` Leo
       [not found] ` <mailman.3.1292389761.26985.help-gnu-emacs@gnu.org>
  1 sibling, 1 reply; 6+ messages in thread
From: Kevin Rodgers @ 2010-12-15  5:09 UTC (permalink / raw)
  To: help-gnu-emacs

On 11/17/10 11:30 AM, Michael Hoffman wrote:
> I've started using term-mode in emacs and so I often have several terms
> processes open when I try to kill emacs. Emacs displays the process-list at this
> point, but actually visiting the open processes to close them all is a little
> clunky. I either have to select each buffer individually with C-x b, or use C-x
> C-b and try to identify all the appropriate buffers from there. That's a little
> less smooth than I was hoping for either, and is complicated by the update to
> the buffer list when I close one of the other process buffers.
>
> Is there a better way to do this?

The *Process List* buffer created by list-processes should allow you to select
each process' buffer by clicking (or typing RET if point is within the buffer
name), just like list-buffers does.  Unfortunately, my Emacs Lisp-fu is weak
after lack of practice and it does not help that list-processes is implemented
in C.

-- 
Kevin Rodgers
Denver, Colorado, USA




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Visiting open processes when killing emacs
  2010-12-15  5:09 ` Kevin Rodgers
@ 2010-12-15  9:45   ` Leo
  2010-12-22  4:24     ` Kevin Rodgers
  0 siblings, 1 reply; 6+ messages in thread
From: Leo @ 2010-12-15  9:45 UTC (permalink / raw)
  To: Kevin Rodgers; +Cc: help-gnu-emacs

On 2010-12-15 05:09 +0000, Kevin Rodgers wrote:
> On 11/17/10 11:30 AM, Michael Hoffman wrote:
>> I've started using term-mode in emacs and so I often have several terms
>> processes open when I try to kill emacs. Emacs displays the process-list at this
>> point, but actually visiting the open processes to close them all is a little
>> clunky. I either have to select each buffer individually with C-x b, or use C-x
>> C-b and try to identify all the appropriate buffers from there. That's a little
>> less smooth than I was hoping for either, and is complicated by the update to
>> the buffer list when I close one of the other process buffers.
>>
>> Is there a better way to do this?
>
> The *Process List* buffer created by list-processes should allow you to select
> each process' buffer by clicking (or typing RET if point is within the buffer
> name), just like list-buffers does.  Unfortunately, my Emacs Lisp-fu is weak
> after lack of practice and it does not help that list-processes is implemented
> in C.

I re-implemented list-processes in elisp
(https://github.com/leoliu/emacs-process) because I also find myself
wanting to kill processes in that buffer from time to time.

There is a chance this might eventually replace the C version upstream.
So I'd appreciate any comments and feature requests.

Hitting RET to visit a process buffer would be easy to add. Let me know
if it is still needed.

Cheers,
Leo

-- 
Oracle is the new evil



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Visiting open processes when killing emacs
       [not found] ` <mailman.3.1292389761.26985.help-gnu-emacs@gnu.org>
@ 2010-12-15 15:51   ` Stefan Monnier
  2010-12-22  4:13     ` Kevin Rodgers
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2010-12-15 15:51 UTC (permalink / raw)
  To: help-gnu-emacs

> Unfortunately, my Emacs Lisp-fu is weak after lack of practice and it
> does not help that list-processes is implemented in C.

FWIW, we have two Lisp versions currently competing for inclusion in
Emacs-24.


        Stefan


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Visiting open processes when killing emacs
  2010-12-15 15:51   ` Stefan Monnier
@ 2010-12-22  4:13     ` Kevin Rodgers
  0 siblings, 0 replies; 6+ messages in thread
From: Kevin Rodgers @ 2010-12-22  4:13 UTC (permalink / raw)
  To: help-gnu-emacs

On 12/15/10 8:51 AM, Stefan Monnier wrote:
>> Unfortunately, my Emacs Lisp-fu is weak after lack of practice and it
>> does not help that list-processes is implemented in C.
>
> FWIW, we have two Lisp versions currently competing for inclusion in
> Emacs-24.

Cool.

Could this be done via font-lock, and in such a way that it would work
for both the current C version and the proposed Lisp versions?

-- 
Kevin Rodgers
Denver, Colorado, USA




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Visiting open processes when killing emacs
  2010-12-15  9:45   ` Leo
@ 2010-12-22  4:24     ` Kevin Rodgers
  0 siblings, 0 replies; 6+ messages in thread
From: Kevin Rodgers @ 2010-12-22  4:24 UTC (permalink / raw)
  To: help-gnu-emacs

On 12/15/10 2:45 AM, Leo wrote:
> On 2010-12-15 05:09 +0000, Kevin Rodgers wrote:
>> The *Process List* buffer created by list-processes should allow you to select
>> each process' buffer by clicking (or typing RET if point is within the buffer
>> name), just like list-buffers does.  Unfortunately, my Emacs Lisp-fu is weak
>> after lack of practice and it does not help that list-processes is implemented
>> in C.
>
> I re-implemented list-processes in elisp
> (https://github.com/leoliu/emacs-process) because I also find myself
> wanting to kill processes in that buffer from time to time.
>
> There is a chance this might eventually replace the C version upstream.
> So I'd appreciate any comments and feature requests.
>
> Hitting RET to visit a process buffer would be easy to add. Let me know
> if it is still needed.

We've lived without it for decades, so it is not needed.  But it is still
wanted.  :-)

And since you asked: It would be nice to have TAB and M-TAB/S-tab/backtab
navigation to move point to the next and previous buffer name resp.

-- 
Kevin Rodgers
Denver, Colorado, USA




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-12-22  4:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-17 18:30 Visiting open processes when killing emacs Michael Hoffman
2010-12-15  5:09 ` Kevin Rodgers
2010-12-15  9:45   ` Leo
2010-12-22  4:24     ` Kevin Rodgers
     [not found] ` <mailman.3.1292389761.26985.help-gnu-emacs@gnu.org>
2010-12-15 15:51   ` Stefan Monnier
2010-12-22  4:13     ` Kevin Rodgers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).