unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: dired-do-shell-command blocks C-z suspension, switching buffers
Date: Thu, 18 Dec 2003 09:48:54 -0700	[thread overview]
Message-ID: <3FE1DA76.4060700@yahoo.com> (raw)
In-Reply-To: mailman.228.1071707727.868.bug-gnu-emacs@gnu.org

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	other threads:[~2003-12-18 16:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.228.1071707727.868.bug-gnu-emacs@gnu.org>
2003-12-18 16:48 ` Kevin Rodgers [this message]
2003-12-17 16:35 dired-do-shell-command blocks C-z suspension, switching buffers Dan Jacobson
     [not found] ` <E1AYHMN-0005KE-1e@fencepost.gnu.org>
2003-12-23 18:46   ` Dan Jacobson
     [not found]   ` <mailman.552.1072236993.868.bug-gnu-emacs@gnu.org>
2003-12-24 17:36     ` Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FE1DA76.4060700@yahoo.com \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).