GNU bug report logs - #18326
24.4.50; allow-no-window for async-shell-command in temp buffer

Previous Next

Package: emacs;

Reported by: Joe Corneli <holtzermann17 <at> gmail.com>

Date: Sun, 24 Aug 2014 18:39:02 UTC

Severity: minor

Found in version 24.4.50

Fixed in version 25.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 18326 <at> debbugs.gnu.org (full text, mbox):

From: Joe Corneli <holtzermann17 <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 18326 <at> debbugs.gnu.org
Subject: Re: bug#18326: 24.4.50;
 allow-no-window for async-shell-command in temp buffer
Date: Thu, 28 Aug 2014 07:42:38 +0100
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"))




This bug report was last modified 10 years and 232 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.