From: Joe Corneli <holtzermann17@gmail.com>
To: Glenn Morris <rgm@gnu.org>
Cc: 18326@debbugs.gnu.org
Subject: bug#18326: 24.4.50; allow-no-window for async-shell-command in temp buffer
Date: Thu, 28 Aug 2014 07:42:38 +0100 [thread overview]
Message-ID: <87vbpdglbm.fsf@gmail.com> (raw)
In-Reply-To: <r8iole25ha.fsf@fencepost.gnu.org>
Glenn Morris writes:
> The example from http://debbugs.gnu.org/13594#185 works for me.
>
> (add-to-list 'display-buffer-alist '("\\*Async Shell Command\\*"
> display-buffer-no-window (nil)))
Using that snippet, I'm still seeing a window pop up containing the
contents of /etc/shadow when I run:
emacs -Q -l start-up.el
M-x sudo-test RET
<password> RET
where start-up.el contains the following code:
(add-to-list 'display-buffer-alist '("\\*Async Shell Command\\*"
display-buffer-no-window (nil)))
(defun sudo-shell-command (command)
(interactive "MShell command (root): ")
(with-temp-buffer
(cd "/sudo::/")
(async-shell-command command)))
(defun sudo-test ()
(interactive)
(sudo-shell-command "cat /etc/shadow"))
next prev parent reply other threads:[~2014-08-28 6:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-24 18:34 bug#18326: 24.4.50; allow-no-window for async-shell-command in temp buffer Joe Corneli
2014-08-25 15:03 ` Stefan Monnier
2014-08-26 22:59 ` Joe Corneli
2014-08-26 23:31 ` Glenn Morris
2014-08-28 6:42 ` Joe Corneli [this message]
2014-08-28 15:45 ` Glenn Morris
2014-08-28 19:33 ` Michael Albinus
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vbpdglbm.fsf@gmail.com \
--to=holtzermann17@gmail.com \
--cc=18326@debbugs.gnu.org \
--cc=rgm@gnu.org \
/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 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.