From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tino Calancha Newsgroups: gmane.emacs.bugs Subject: bug#24394: 25.1.50; (find-file "/sudo::") ignores async-shell-command-buffer settings Date: Thu, 8 Sep 2016 23:39:24 +0900 (JST) Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Trace: blaine.gmane.org 1473353299 24688 195.159.176.226 (8 Sep 2016 16:48:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 8 Sep 2016 16:48:19 +0000 (UTC) User-Agent: Alpine 2.20 (DEB 67 2015-01-07) To: 24394@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 08 18:48:15 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bi2Ul-0005Tf-1m for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Sep 2016 18:48:11 +0200 Original-Received: from localhost ([::1]:49242 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi2Ul-0003jr-0n for geb-bug-gnu-emacs@m.gmane.org; Thu, 08 Sep 2016 12:48:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi0Un-00043Q-OF for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2016 10:40:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bi0Uk-0005uy-Fx for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2016 10:40:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi0Uk-0005uu-Ce for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2016 10:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bi0Uk-0004Pr-5G for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2016 10:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tino Calancha Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Sep 2016 14:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24394 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.147334558516930 (code B ref -1); Thu, 08 Sep 2016 14:40:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Sep 2016 14:39:45 +0000 Original-Received: from localhost ([127.0.0.1]:53744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bi0US-0004P0-OA for submit@debbugs.gnu.org; Thu, 08 Sep 2016 10:39:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42672) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bi0UQ-0004Oj-LX for submit@debbugs.gnu.org; Thu, 08 Sep 2016 10:39:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bi0UK-0005pK-H8 for submit@debbugs.gnu.org; Thu, 08 Sep 2016 10:39:37 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:39726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi0UK-0005p1-Dc for submit@debbugs.gnu.org; Thu, 08 Sep 2016 10:39:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi0UI-0003ZY-4m for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2016 10:39:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bi0UD-0005oG-Mr for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2016 10:39:33 -0400 Original-Received: from mail-pa0-x22a.google.com ([2607:f8b0:400e:c03::22a]:36195) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi0UD-0005ni-Ex for bug-gnu-emacs@gnu.org; Thu, 08 Sep 2016 10:39:29 -0400 Original-Received: by mail-pa0-x22a.google.com with SMTP id id6so18016941pad.3 for ; Thu, 08 Sep 2016 07:39:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:date:to:subject:message-id:user-agent:mime-version; bh=OVkxee/ACQmtLEabRku43jU1c2wjIPJxaoWcX23nyz8=; b=ZMZ5ewkYtIo1Oneij1woRXdxHNiXDfN+G8DNSv8mOlIJncZmUyeGNVuWDcXCUqYQ+v 2Etq7s+j0YZypqV4zWAZVdpUlTViMjpic0N813lAKLoLbbILFxEBsEvhrW8DUBk+zxEo F5srKA8NZKbsuQyQoUoZYKZVL3Lka/SEaaSNh8mngy6sj/5XYUVcHp0aLn67xAbWJfKJ LATDa5A08/gowE0LPc/iYn0jszki5iR/G/2ItgdBQcNLObquc4cUZJgyBmxg0sANmgHZ OBaMeZm5LksFHk3riTGFJ/g4pG7m2EfAibKDI+JXhikXAAh19RHq5JlJp83GeXuSefMo rAIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:date:to:subject:message-id:user-agent :mime-version; bh=OVkxee/ACQmtLEabRku43jU1c2wjIPJxaoWcX23nyz8=; b=RXY1NDIl7yp14zZKZtNfKb69bRtmLzQ96aU6vLRMQDfigF++kuVJJ94ArLM+8zTacV AcUNdRw4uZaRn932NAK03r2u8tj7PgPmA/zWIl2B62VI5htn9JOADE1zFId9OIzZHHQp JaaG1gVpr6g/yCphtNAgvR9Q2HkBYmU4gJAgZjU+1TLDjLNWIik6H9llYnygFMR9Alig CZ1c9EYsGdWovR4DD7p0eZXpMJYuaEm88gvpkCek+Dqk/Lh1gVN5ar2tXNBb60enhAJB oiJZtq0xDkAFOa8OO5Buqm3oSATo8T/4uKFRkj16AXC1Szi0gzsNvm9ZQ3V/kM+wLIQj AILg== X-Gm-Message-State: AE9vXwM/KlGg/AKz7/smE+donMC9a9Dkt45LUYqvqxXP2XuygDri/PTQiFpESQ8ilYx26g== X-Received: by 10.66.217.170 with SMTP id oz10mr92278207pac.61.1473345567384; Thu, 08 Sep 2016 07:39:27 -0700 (PDT) Original-Received: from calancha-pc (57.92.100.220.dy.bbexcite.jp. [220.100.92.57]) by smtp.gmail.com with ESMTPSA id m65sm56853037pfg.79.2016.09.08.07.39.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Sep 2016 07:39:26 -0700 (PDT) X-Google-Original-From: Tino Calancha X-X-Sender: calancha@calancha-pc X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123083 Archived-At: emacs -Q -eval "(setq async-shell-command-buffer 'new-buffer)" I) M-&: i=0; while true; do echo $i; i=$((i+1)); sleep 1;done RET ;; Repeating the command will not prompt for confirmation II) M-&: M-p RET ; create buffer "*Async Shell Command*<2>". III) M-:(let ((dir (expand-file-name default-directory))) (find-file (concat "/sudo::") dir)) RET IV) M-&: M-p RET ;; Received prompt to kill buffer "*Async Shell Command*". In IV) the machine is the same as before and the original user still is the owner of the Emacs session: i would expect IV) create the buffer "*Async Shell Command*<3>" without any prompt. Even if i set `async-shell-command-buffer' to 'new-buffer in /root/.emacs i receive the prompt. In GNU Emacs 25.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.21.5) of 2016-09-08 Repository revision: ba5d32398ba42fcf14ad5242d95c68133981744f