From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Date: Wed, 06 Nov 2019 00:18:32 +0200 Organization: LINKOV.NET Message-ID: <8736f29dsv.fsf@mail.linkov.net> References: <87k1fl3e6z.fsf@tcd.ie> <87zhj4osjw.fsf@gnus.org> <877e67x6ny.fsf@mail.linkov.net> <87impp1djl.fsf@mail.linkov.net> <138859c1-a7e0-f40d-4623-635826decd90@gmx.at> <87y2yknhja.fsf@mail.linkov.net> <875zkbrt4j.fsf@mail.linkov.net> <87zhhb1n52.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="41081"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: "Basil L. Contovounesios" , Lars Ingebrigtsen , 35385@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 05 23:59:15 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iS7n5-000AVo-Qh for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Nov 2019 23:59:12 +0100 Original-Received: from localhost ([::1]:51310 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iS7n4-00079b-Lg for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Nov 2019 17:59:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33495) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iS7mx-00079M-M8 for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2019 17:59:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iS7mw-0002L0-NU for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2019 17:59:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58600) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iS7mw-0002Kt-KA for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2019 17:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iS7mw-0004y2-IK for bug-gnu-emacs@gnu.org; Tue, 05 Nov 2019 17:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Nov 2019 22:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35385 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.157299470618991 (code B ref 35385); Tue, 05 Nov 2019 22:59:02 +0000 Original-Received: (at 35385) by debbugs.gnu.org; 5 Nov 2019 22:58:26 +0000 Original-Received: from localhost ([127.0.0.1]:39179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iS7mL-0004wE-HN for submit@debbugs.gnu.org; Tue, 05 Nov 2019 17:58:25 -0500 Original-Received: from chocolate.birch.relay.mailchannels.net ([23.83.209.35]:15048) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iS7mJ-0004w6-91 for 35385@debbugs.gnu.org; Tue, 05 Nov 2019 17:58:23 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 0F7A6342155; Tue, 5 Nov 2019 22:58:22 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a64.g.dreamhost.com (100-96-6-183.trex.outbound.svc.cluster.local [100.96.6.183]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 934EC3420E4; Tue, 5 Nov 2019 22:58:21 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a64.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.5); Tue, 05 Nov 2019 22:58:22 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Chief-Occur: 73342388421c5e5b_1572994701838_3571105578 X-MC-Loop-Signature: 1572994701838:2208036416 X-MC-Ingress-Time: 1572994701838 Original-Received: from pdx1-sub0-mail-a64.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a64.g.dreamhost.com (Postfix) with ESMTP id 09A0F7F51E; Tue, 5 Nov 2019 14:58:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=cbSB67sEDw7IUHMgwfmiNNMd810=; b= C6htIPmF17wrW3DKuWALgaQ+ogUwu3iZ27JJgtyiohh6JmdyLiRnl4zPyUHJoWYV CjAcm7z9X5Duz1M/jm8jMmq5c55dV3XpN4UVlfDFDTh7s8Av8P9zSAFTebxlePy9 MTqDv/vKZf6IJ3pHlDLkg8+gH17kplBK3XEY0AhRphc= Original-Received: from mail.jurta.org (m91-129-101-77.cust.tele2.ee [91.129.101.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a64.g.dreamhost.com (Postfix) with ESMTPSA id 5FBEA7F518; Tue, 5 Nov 2019 14:58:15 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a64 In-Reply-To: <87zhhb1n52.fsf@web.de> (Michael Heerdegen's message of "Mon, 04 Nov 2019 20:01:45 +0100") 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: 209.51.188.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:170989 Archived-At: > I wished this could be made configurable somehow. FWIW I liked the > former behavior more so I :override advice > `dired-dwim-target-directories'. It would be good if the used function > would at least be bound to a new defvar. A defcustom with some > reasonable choices would probably be even better (old behavior + new > behavior would already be a good start). The idea to use the recent buffer was borrowed from compare-windows that for backward-compatibility has such defcustom: (defcustom compare-windows-get-window-function 'compare-windows-get-recent-window "Function that provides the window to compare with." :type '(choice (function-item :tag "Most recently used window" compare-windows-get-recent-window) (function-item :tag "Next window" compare-windows-get-next-window) (function :tag "Your function")) :group 'compare-windows :version "25.1") So dired-dwim-target could have a similar defcustom with choices for recent/next window.