bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: dired-do-shell-command blocks C-z suspension, switching buffers


From: Kevin Rodgers
Subject: Re: dired-do-shell-command blocks C-z suspension, switching buffers
Date: Thu, 18 Dec 2003 09:48:54 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Dan Jacobson wrote:

! runs the command dired-do-shell-command
   which is an interactive compiled Lisp function in `dired-aux'.

However, trying either
$ emacs -q --no-site-file /tmp
$ emacs -q --no-site-file -nw /tmp
and then
SPC ! s l e e p SPC 4 4 4 4 SPC # <return>
makes a state where one's C-z attempts at suspension are ignored.


`C-z' is bound to 2 different commands, depending on the -nw option:

C-z runs the command iconify-or-deiconify-frame
C-z runs the command suspend-emacs

So running under a window system, you could not expect `C-z' to suspend emacs.


In both cases, `C-g' will interrupt the shell command.


I was thinking it could continue to do its thing on its own, if we
suspend emacs or not, and at least let us switch buffers, but no, all
must wait.  Same with ! s l e e p SPC 6 6 & l s

Just use `M-!' instead of `!', and terminate your command with "&" to run it

in the background so you can continue to use emacs (including `C-z') any way
you wish.


--
Kevin Rodgers





reply via email to

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