From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#13492: 24.2.92; Buffer changing in dired-mark-pop-up Date: Sun, 06 Dec 2020 20:19:48 +0100 Message-ID: <874kkyrbcb.fsf@gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31720"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 13492@debbugs.gnu.org To: Leo Liu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 06 20:20:18 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klzZy-00088o-1y for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 20:20:18 +0100 Original-Received: from localhost ([::1]:53134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klzZx-0001Zv-0a for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 14:20:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48856) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klzZi-0001Zm-7E for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 14:20:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39786) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klzZh-0001FZ-Vl for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 14:20:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1klzZh-0000Ag-S9 for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 14:20:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Dec 2020 19:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13492 X-GNU-PR-Package: emacs Original-Received: via spool by 13492-submit@debbugs.gnu.org id=B13492.1607282400646 (code B ref 13492); Sun, 06 Dec 2020 19:20:01 +0000 Original-Received: (at 13492) by debbugs.gnu.org; 6 Dec 2020 19:20:00 +0000 Original-Received: from localhost ([127.0.0.1]:51332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klzZg-0000AM-DQ for submit@debbugs.gnu.org; Sun, 06 Dec 2020 14:20:00 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:56664) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klzZe-0000A0-Ds for 13492@debbugs.gnu.org; Sun, 06 Dec 2020 14:19:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=3pQnGUeYPEq2rWQL4LVON2EKZuZtK0YbokvfmdoA6XQ=; b=mbjrV0+CCnDXwLtLa/B9qmVfax aIxams3smab55uy8bHzYkM4VDv5czeUhEoB0X3rYCQUfsMHjlXnJTvNHWXgm22xH51YQCs8+0i1bi Fbyz6xqwLTGbR5mHYnAJVyKhCgzR4maeHGXx/04lMmHxrasA++TPQdlpHBihSekFC0d4=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1klzZV-0007J6-M3; Sun, 06 Dec 2020 20:19:52 +0100 X-Now-Playing: Aksak Maboul's _Figures (1)_: "Taciturne" In-Reply-To: (Leo Liu's message of "Sat, 19 Jan 2013 03:05:08 +0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:195158 Archived-At: Leo Liu writes: > In discussion of http://debbugs.gnu.org/13152, it is noted that > dired-mark-pop-up invokes FUNCTION in different buffers depending on if > there are marked files. This is problematic and makes it harder to use > dired-mark-pop-up correctly. > > In particular this is directly related to dired-guess-shell-alist-user, > a user variable. Harder to predict the behaviour of COMMAND when it is a > lisp expression. But in this case an error is thrown when the buffer is > switched to a non-dired buffer. So no user code will be broken if > dried-mark-pop-up stops switching buffers. > > I propose fix dired-mark-pop-up to be consistent where it invokes > FUNCTION. (This bug report unfortunately got no response at the time.) I see that there's been some changes done to that function with regards to how it selects windows before running FUNCTION, but I'm not sure whether this fixes the problem or not, since there's no recipe to reproduce the bug here. Are you still seeing this problem in more recent versions of Emacs? If so, can you provide a step-by-step recipe to reproduce it, starting from "emacs -Q"? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no