From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Apr 2019 22:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35385 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 35385@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155597058830198 (code B ref -1); Mon, 22 Apr 2019 22:04:01 +0000 Received: (at submit) by debbugs.gnu.org; 22 Apr 2019 22:03:08 +0000 Received: from localhost ([127.0.0.1]:51799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIh1n-0007qz-Ju for submit@debbugs.gnu.org; Mon, 22 Apr 2019 18:03:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42359) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIh1k-0007qU-FJ for submit@debbugs.gnu.org; Mon, 22 Apr 2019 18:03:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:57174) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hIh1e-0006fp-RF for submit@debbugs.gnu.org; Mon, 22 Apr 2019 18:02:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIh1d-00081B-Th for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 18:02:58 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hIgme-0003sZ-Ap for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 17:47:29 -0400 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]:45514) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hIgmd-0003rl-Rp for bug-gnu-emacs@gnu.org; Mon, 22 Apr 2019 17:47:28 -0400 Received: by mail-ed1-x533.google.com with SMTP id k92so10686294edc.12 for ; Mon, 22 Apr 2019 14:47:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:user-agent:mime-version; bh=i1/XSQvzhkMCntxkhPOt/1dj9UFaAr2gWFddhaTX3lM=; b=hxO03N839iprx5wtJoLBq6f3kAP8lSu/g/vZgm9uNDqC9kfoD01H0VMi5kCuBYtymd IDUyHTFfaXnu2mnf6aBFTStiGtUz6Nn7lKEeZX/T0F02aG92WocF+VmuB+MFkw/1NoaD TlyVsGWuz4rMpLXJsQQ7Wyu3IOUlquXbnCokdjfRZ0p18Cf99BsL3P8FzpBQSENmPcSz J63veeN+wmcPqmMGXP6Hm0CigD7ZorUtN5jmBMBI+hSvcyl2XuTHlIuh0CoasXgliItl BEZHkb6v6bu2xCUyYeaMsLmQoYb3hsJEGCeQHtd4rdbh2Jp4KVUYU9G6eP1MdKdmOId/ Ir0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=i1/XSQvzhkMCntxkhPOt/1dj9UFaAr2gWFddhaTX3lM=; b=DXKLEJ2M0uPRl9N4w0mZexYHdfV249cah/B28XccSfD7lUcxORejwi2Cs5cHPYVScw DyVGn4WWlhQ3jktbbBhr33vzNGXz/GZijdIZypaW3WV0+SM3nzxB+FFtHXSeLPieEFfE 6+/jxOhduohWDZh0nQ7jRz5Sfw9YQSQQiQhCRQyFHFoyDxfxbWTS47XvS1LMebMdN0C+ N2UaoA/DONFKEHvH+g5cHuyUZB7MlXDadObty+ghjfpHDeeUjOJbrKbAE1XMpXq9rT+r C9GIi6iVkOttEdjOoLh2TG50cDLH8cKytt5cTg+7zGzaMLTrVd+S60SVzs7rr71qSmTC S7jQ== X-Gm-Message-State: APjAAAWbVKScf8gsutOpLmf9PVMD4yEBFgfubl2b7CTWK0w1A9hUiWDB t2vYQjLR/ZgOgfj4CjEtRUu8j8YtWOs= X-Google-Smtp-Source: APXvYqwpydmWicozNP8G8gM8SsIId4LTmJLzy+FIpADM/L5uO3RRlh8yJb0piIMm2Jym4q+YPokL0Q== X-Received: by 2002:a17:906:7010:: with SMTP id n16mr10796794ejj.271.1555969644580; Mon, 22 Apr 2019 14:47:24 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:8f5:8e00:4345:7c72]) by smtp.gmail.com with ESMTPSA id f15sm2456378eja.39.2019.04.22.14.47.23 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 22 Apr 2019 14:47:23 -0700 (PDT) From: "Basil L. Contovounesios" Date: Mon, 22 Apr 2019 22:47:16 +0100 Message-ID: <87k1fl3e6z.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::533 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Severity: wishlist Currently, the user option dired-dwim-target applies only to windows displaying Dired buffers on the selected frame. IWBNI this were customisable, so that Dired buffers displayed on other frames were also considered as default targets for file operations. This would be useful for users like me who enable pop-up-frames. Patch implementing this to follow. Thanks, -- Basil From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Apr 2019 22:12:01 +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: To: 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.155597110030990 (code B ref 35385); Mon, 22 Apr 2019 22:12:01 +0000 Received: (at 35385) by debbugs.gnu.org; 22 Apr 2019 22:11:40 +0000 Received: from localhost ([127.0.0.1]:51806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIhA3-00083k-Ip for submit@debbugs.gnu.org; Mon, 22 Apr 2019 18:11:40 -0400 Received: from mail-ed1-f54.google.com ([209.85.208.54]:38404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hIhA1-00083S-Bi for 35385@debbugs.gnu.org; Mon, 22 Apr 2019 18:11:38 -0400 Received: by mail-ed1-f54.google.com with SMTP id c1so4810905edk.5 for <35385@debbugs.gnu.org>; Mon, 22 Apr 2019 15:11:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=rEDNKQDpcGy7u8oK/vfcEe6th27fPFR2lMfBxjYn8Vw=; b=xNE5sPXz+JwNfWamca5glKAtOeQKwIUEkb6KpCtI//4VSj7ykRMpkR/r7hQ7DbcK6l Qbous+BRfJkMxeKvjJ4meWizhoNDNoHeIGYjTNmkbutsMxROrgzp4U22CFXsAwYHAVnw d0rm0AL2sur9v0QCNKMkojXSS1cvvc+qR+0OYSoAtwBwuM5ySe8yaIOptsXdUFk+kow1 f7Hl2Ui2KLmIl1HV48ENpCd3ZU4p2LrqW5XnfhtQUrp9qul+0rib4j5BNR/z0OcZOKL+ xrcA0yd0IsIK73MM2qcaIGPtHuX8Xz7LCUKr1DAQAOt40zNSlbvlC4n12ODtQ1jdpoIi 6jbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=rEDNKQDpcGy7u8oK/vfcEe6th27fPFR2lMfBxjYn8Vw=; b=RlHNJ5SgHhq012NqZHSgpyJFTp6ri4Fpo8Ri0IdyNbILJKtpab60FMjrEY3BaAvme/ rqhn07MZ29e55jNDj3rq/tLmgXgo9m/X2i/CQsu7kLw4thU2upX4GmiKCyDgRqJWW5ri vWGxSXDdZcwrIc/HvlVC1RT5pErRwA1jZrWIyHJETV8Wnm/fX9c6po3RxqjCwP6OBlOk DBN+LDpaVUkeb3JtBG8mb9KfF+OTBzUQ1Gaw6Gqqk3sNUooGZ3o6K3h2TfU20q9qNe6V YBy+LZsA/pJuRsMOjxcsCLoLwQFQ+q1QSEcAzCjSX+X9zN7DsJ3WRLSdCf3UzPhj1c5r LP+w== X-Gm-Message-State: APjAAAVYi+CUUzLngefqug8X2hFYcyDIZ3H8tyeu03S06cK8Pxswi+fO ILqV6FVI3xcATBrrEBmsUg37CvFzaqpogw== X-Google-Smtp-Source: APXvYqwYXM/QUlsae4U7vqCsIqNyR2WFfMfVauOFUl26RytcNALUwt14LUHy5TqrqiBLt4t4eY4fdg== X-Received: by 2002:a17:907:1009:: with SMTP id ox9mr10885967ejb.292.1555971090254; Mon, 22 Apr 2019 15:11:30 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:8f5:8e00:4345:7c72]) by smtp.gmail.com with ESMTPSA id d6sm3880731edq.65.2019.04.22.15.11.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 22 Apr 2019 15:11:29 -0700 (PDT) From: "Basil L. Contovounesios" References: <87k1fl3e6z.fsf@tcd.ie> Date: Mon, 22 Apr 2019 23:11:28 +0100 In-Reply-To: <87k1fl3e6z.fsf@tcd.ie> (Basil L. Contovounesios's message of "Mon, 22 Apr 2019 22:47:16 +0100") Message-ID: <87ef5t3d2n.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain tags 35385 patch quit --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Make-dired-dwim-target-aware-of-other-frames.patch >From 463ccbe8ba96aee0a2cdfd49342270a33e161db2 Mon Sep 17 00:00:00 2001 From: "Basil L. Contovounesios" Date: Mon, 22 Apr 2019 14:33:38 +0100 Subject: [PATCH] Make dired-dwim-target aware of other frames * lisp/dired.el (dired-dwim-target-frames): New user option. (bug#35385) (dired-dwim-target): Mention it in docstring. * lisp/dired-aux.el (dired-dwim-target-directory): Use it. * doc/emacs/dired.texi (Operating on Files): Document it. * etc/NEWS: Announce it. Merge duplicate Dired outlines. * test/lisp/dired-tests.el: Remove unnecessary require and pacify byte-compiler. --- doc/emacs/dired.texi | 23 ++++++++++++++++++++--- etc/NEWS | 16 +++++++++------- lisp/dired-aux.el | 34 +++++++++++++++++----------------- lisp/dired.el | 20 +++++++++++++++++--- test/lisp/dired-tests.el | 3 +-- 5 files changed, 64 insertions(+), 32 deletions(-) diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi index 9f454ea2ad..b8b1d73d8f 100644 --- a/doc/emacs/dired.texi +++ b/doc/emacs/dired.texi @@ -644,13 +644,30 @@ Operating on Files commands, use the same conventions to decide which files to work on. @vindex dired-dwim-target +@vindex dired-dwim-target-frames @cindex two directories (in Dired) Commands which ask for a destination directory, such as those which copy and rename files or create links for them, try to guess the default target directory for the operation. Normally, they suggest the Dired -buffer's default directory, but if the variable @code{dired-dwim-target} -is non-@code{nil}, and if there is another Dired buffer displayed in the -next window, that other buffer's directory is suggested instead. +buffer's default directory, but if the option @code{dired-dwim-target} +is non-@code{nil}, and if there is another Dired buffer displayed in +another window, that other buffer's directory is suggested instead. The +option @code{dired-dwim-target-frames} controls which windows to +consider: + +@itemize @bullet +@item @code{nil} +means to consider windows on the selected frame. + +@item @code{t} +means to consider windows on all existing frames. + +@item @code{visible} +means to consider windows on all visible frames. + +@item 0 +means to consider windows on all frames on the current terminal. +@end itemize Here are the file-manipulating Dired commands that operate on files. diff --git a/etc/NEWS b/etc/NEWS index b13ab47768..d1761c6415 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -507,6 +507,15 @@ remapped to these, respectively. +++ *** New command 'dired-create-empty-file'. ++++ +*** The new user option 'dired-create-destination-dirs' controls whether +'dired-do-copy' and 'dired-rename-file' should create non-existent +directories in the destination. + ++++ +*** New user option 'dired-dwim-target-frames'. +This option controls which frames 'dired-dwim-target' applies to. + ** Change Logs and VC *** Recording ChangeLog entries doesn't require an actual file. @@ -857,13 +866,6 @@ unescaping text. The maximum level is used by default; customize 'font-lock-maximum-decoration' to tone down the decoration. -** Dired - -+++ -*** The new user option 'dired-create-destination-dirs' controls whether -'dired-do-copy' and 'dired-rename-file' should create non-existent -directories in the destination. - ** Help --- diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index b81c0d1a4f..c3df5c982b 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -1937,23 +1937,21 @@ dired-mark-read-file-name (format prompt (dired-mark-prompt arg files)) dir default)) (defun dired-dwim-target-directory () - ;; Try to guess which target directory the user may want. - ;; If there is a dired buffer displayed in one of the next windows, - ;; use its current subdir, else use current subdir of this dired buffer. - (let ((this-dir (and (eq major-mode 'dired-mode) - (dired-current-directory)))) - ;; non-dired buffer may want to profit from this function, e.g. vm-uudecode - (if dired-dwim-target - (let* ((other-win (get-window-with-predicate - (lambda (window) - (with-current-buffer (window-buffer window) - (eq major-mode 'dired-mode))))) - (other-dir (and other-win - (with-current-buffer (window-buffer other-win) - (and (eq major-mode 'dired-mode) - (dired-current-directory)))))) - (or other-dir this-dir)) - this-dir))) + "Try to guess which target directory the user may want. +If there is a Dired buffer displayed in another window (subject +to `dired-dwim-target' and `dired-dwim-target-frames'), return +its current subdirectory, otherwise return that of the current +Dired buffer." + (let ((win (if dired-dwim-target + (get-window-with-predicate + (lambda (window) + (with-current-buffer (window-buffer window) + (eq major-mode 'dired-mode))) + nil dired-dwim-target-frames (selected-window)) + (selected-window)))) + (with-current-buffer (window-buffer win) + (and (eq major-mode 'dired-mode) + (dired-current-directory))))) (defun dired-dwim-target-defaults (fn-list target-dir) ;; Return a list of default values for file-reading functions in Dired. @@ -2839,6 +2837,8 @@ dired-do-isearch-regexp (multi-isearch-files-regexp (dired-get-marked-files nil nil 'dired-nondirectory-p nil t))) +(declare-function fileloop-continue "fileloop" ()) + ;;;###autoload (defun dired-do-search (regexp) "Search through all marked files for a match for REGEXP. diff --git a/lisp/dired.el b/lisp/dired.el index 63082fe392..710fcfc0f4 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -185,14 +185,28 @@ dired-keep-marker-symlink (defcustom dired-dwim-target nil "If non-nil, Dired tries to guess a default target directory. -This means: if there is a Dired buffer displayed in the next -window, use its current directory, instead of this Dired buffer's -current directory. +This means: if there is a Dired buffer displayed in some window, +use its current directory, instead of this Dired buffer's current +directory. See `dired-dwim-target-frames' for which frames to +consider when looking for a target window. The target is used in the prompt for file copy, rename etc." :type 'boolean :group 'dired) +(defcustom dired-dwim-target-frames nil + "Determines which frames to consider for `dired-dwim-target'. +It has a similar meaning to the ALL-FRAMES argument of +`next-window'. nil means consider windows on only the selected +frame; t on all existing frames; `visible' on all visible frames; +and 0 on all frames on the current terminal." + :type '(choice (const :tag "Selected frame only" nil) + (const :tag "All existing frames" t) + (const :tag "All visible frames" visible) + (const :tag "All frames on current terminal" 0)) + :version "27.1" + :group 'dired) + (defcustom dired-copy-preserve-time t "If non-nil, Dired preserves the last-modified time in a file copy. \(This works on only some systems.)" diff --git a/test/lisp/dired-tests.el b/test/lisp/dired-tests.el index 71ffcdd545..c4728e7a06 100644 --- a/test/lisp/dired-tests.el +++ b/test/lisp/dired-tests.el @@ -20,7 +20,6 @@ ;;; Code: (require 'ert) (require 'dired) -(require 'nadvice) (ert-deftest dired-autoload () "Tests to see whether dired-x has been autoloaded" @@ -54,7 +53,7 @@ (when (buffer-live-p buf) (kill-buffer buf))) (delete-directory dir 'recursive)))) -(defvar dired-dwim-target) +(defvar dired-query) (ert-deftest dired-test-bug25609 () "Test for https://debbugs.gnu.org/25609 ." (let* ((from (make-temp-file "foo" 'dir)) -- 2.20.1 --=-=-= Content-Type: text/plain "Basil L. Contovounesios" writes: > Patch implementing this to follow. Now attached. WDYT? Thanks, -- Basil --=-=-=-- From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Apr 2019 20:30: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 To: "Basil L. Contovounesios" Cc: 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.15565697673810 (code B ref 35385); Mon, 29 Apr 2019 20:30:02 +0000 Received: (at 35385) by debbugs.gnu.org; 29 Apr 2019 20:29:27 +0000 Received: from localhost ([127.0.0.1]:39921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLCtz-0000zO-2O for submit@debbugs.gnu.org; Mon, 29 Apr 2019 16:29:27 -0400 Received: from ladybird.maple.relay.mailchannels.net ([23.83.214.98]:65169) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hLCtw-0000zD-Rt for 35385@debbugs.gnu.org; Mon, 29 Apr 2019 16:29:25 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id AD8835E081D; Mon, 29 Apr 2019 20:29:23 +0000 (UTC) Received: from pdx1-sub0-mail-a39.g.dreamhost.com (100-96-2-149.trex.outbound.svc.cluster.local [100.96.2.149]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 24E265E0363; Mon, 29 Apr 2019 20:29:23 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a39.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.17.2); Mon, 29 Apr 2019 20:29:23 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Relation-Desert: 4c5fc65e0ed988ae_1556569763543_502652227 X-MC-Loop-Signature: 1556569763543:186230485 X-MC-Ingress-Time: 1556569763542 Received: from pdx1-sub0-mail-a39.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a39.g.dreamhost.com (Postfix) with ESMTP id 9134882B62; Mon, 29 Apr 2019 13:29:19 -0700 (PDT) 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=qDGuVpML97rifHPbTbY7P/cOXPM=; b= hKY2NmzHh3ZPB9o1knkXhqYyIh7gRv/vIBlXNmjVO5k1aKMFyb7/6jy4RXDBpwD7 nBhHsszGIScFbdygqEf6dxybTGvSlmVjgJVv99+r62PbYHGJK9LOQNNMMsqafRi1 GLHtqiaPt+Q6d30NXaRX4YZxc4MX1kIBLILEaJQfTjc= Received: from mail.jurta.org (m91-129-107-198.cust.tele2.ee [91.129.107.198]) (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-a39.g.dreamhost.com (Postfix) with ESMTPSA id AD38182B5D; Mon, 29 Apr 2019 13:29:16 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a39 From: Juri Linkov Organization: LINKOV.NET References: <87k1fl3e6z.fsf@tcd.ie> <87ef5t3d2n.fsf@tcd.ie> Date: Mon, 29 Apr 2019 23:28:09 +0300 In-Reply-To: <87ef5t3d2n.fsf@tcd.ie> (Basil L. Contovounesios's message of "Mon, 22 Apr 2019 23:11:28 +0100") Message-ID: <87r29ktv3a.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduuddriedvgdduheduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdejrdduleeknecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtjedrudelkedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopegtohhnthhovhhosgesthgtugdrihgvnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Now attached. WDYT? > @vindex dired-dwim-target > +@vindex dired-dwim-target-frames Should we also have dired-dwim-target-windows? Because I have a problem when there are 3 or more Dired windows on the same frame. Often dired-dwim chooses a wrong window. Maybe it should use something like implemented in compare-windows-get-recent-window: (or (get-mru-window 'visible t t) (get-mru-window 0 t t) (get-mru-window t t t)) From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Jun 2019 17:29: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 To: "Basil L. Contovounesios" Cc: 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.156131089127787 (code B ref 35385); Sun, 23 Jun 2019 17:29:02 +0000 Received: (at 35385) by debbugs.gnu.org; 23 Jun 2019 17:28:11 +0000 Received: from localhost ([127.0.0.1]:54435 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hf6Hj-0007E7-AZ for submit@debbugs.gnu.org; Sun, 23 Jun 2019 13:28:11 -0400 Received: from quimby.gnus.org ([80.91.231.51]:44096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hf6Hh-0007Dy-To for 35385@debbugs.gnu.org; Sun, 23 Jun 2019 13:28:10 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hf6He-0008R4-8z; Sun, 23 Jun 2019 19:28:08 +0200 From: Lars Ingebrigtsen References: <87k1fl3e6z.fsf@tcd.ie> Date: Sun, 23 Jun 2019 19:28:06 +0200 In-Reply-To: <87k1fl3e6z.fsf@tcd.ie> (Basil L. Contovounesios's message of "Mon, 22 Apr 2019 22:47:16 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "Basil L. Contovounesios" writes: > Currently, the user option dired-dwim-target applies only to windows > displaying Dired buffers on the selected frame. IWBNI this were > customisable, so that Dired buffers displayed on other frames [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Basil L. Contovounesios" writes: > Currently, the user option dired-dwim-target applies only to windows > displaying Dired buffers on the selected frame. IWBNI this were > customisable, so that Dired buffers displayed on other frames were also > considered as default targets for file operations. This would be useful > for users like me who enable pop-up-frames. > > Patch implementing this to follow. This makes sense to me, and the code in the patch looked OK. But what did you think of Juri's comments about dired-dwim-target-windows? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Sep 2019 21:12:03 +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 To: "Basil L. Contovounesios" Cc: 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.156866828313756 (code B ref 35385); Mon, 16 Sep 2019 21:12:03 +0000 Received: (at 35385) by debbugs.gnu.org; 16 Sep 2019 21:11:23 +0000 Received: from localhost ([127.0.0.1]:51212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9yHL-0003Zn-7w for submit@debbugs.gnu.org; Mon, 16 Sep 2019 17:11:23 -0400 Received: from quimby.gnus.org ([80.91.231.51]:39514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9yHJ-0003Zd-4H for 35385@debbugs.gnu.org; Mon, 16 Sep 2019 17:11:21 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i9yHD-0006VI-WF; Mon, 16 Sep 2019 23:11:19 +0200 From: Lars Ingebrigtsen References: <87k1fl3e6z.fsf@tcd.ie> Date: Mon, 16 Sep 2019 23:11:15 +0200 In-Reply-To: (Lars Ingebrigtsen's message of "Sun, 23 Jun 2019 19:28:06 +0200") Message-ID: <87zhj4osjw.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > "Basil L. Contovounesios" writes: > >> Currently, the user option dired-dwim-target applies only to windows >> displaying Dired buffers on the selected frame. IWBNI this were >> cu [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > "Basil L. Contovounesios" writes: > >> Currently, the user option dired-dwim-target applies only to windows >> displaying Dired buffers on the selected frame. IWBNI this were >> customisable, so that Dired buffers displayed on other frames were also >> considered as default targets for file operations. This would be useful >> for users like me who enable pop-up-frames. >> >> Patch implementing this to follow. > > This makes sense to me, and the code in the patch looked OK. But what > did you think of Juri's comments about dired-dwim-target-windows? That was 12 weeks ago. Basil, have you had an opportunity to look at this? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Sep 2019 21:43: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 To: Lars Ingebrigtsen Cc: "Basil L. Contovounesios" , 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.156867016725653 (code B ref 35385); Mon, 16 Sep 2019 21:43:02 +0000 Received: (at 35385) by debbugs.gnu.org; 16 Sep 2019 21:42:47 +0000 Received: from localhost ([127.0.0.1]:51226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9ylj-0006fh-GE for submit@debbugs.gnu.org; Mon, 16 Sep 2019 17:42:47 -0400 Received: from caracal.birch.relay.mailchannels.net ([23.83.209.30]:5726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i9ylh-0006fY-9i for 35385@debbugs.gnu.org; Mon, 16 Sep 2019 17:42:46 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 0BCEF1A167F; Mon, 16 Sep 2019 21:42:44 +0000 (UTC) Received: from pdx1-sub0-mail-a42.g.dreamhost.com (100-96-114-48.trex.outbound.svc.cluster.local [100.96.114.48]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 8D84A1A1639; Mon, 16 Sep 2019 21:42:43 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a42.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.17.5); Mon, 16 Sep 2019 21:42:43 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Continue-Celery: 1b92ab5b2dd9ab71_1568670163790_1389132481 X-MC-Loop-Signature: 1568670163789:712087148 X-MC-Ingress-Time: 1568670163789 Received: from pdx1-sub0-mail-a42.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a42.g.dreamhost.com (Postfix) with ESMTP id 50CD583A07; Mon, 16 Sep 2019 14:42:38 -0700 (PDT) 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=WTrltQ3XtH3qEorMJi6i8414ig8=; b= 1SDOkdVOcWuUp8JCFtf/EijcwsnZnx+uQV4+GUjZyG6kARK6Q1t8AT8L7//+0lJN dxDLY//sKiFrlYZ2KmYpRawECLStgnYNzaC0/HuXUERGXDn7nCPrUeuFZBma6xUJ JgFlPY88yL0CmvsQN0+TOTPIcwM6V6VTXhm1uOjulnY= Received: from mail.jurta.org (m91-129-107-243.cust.tele2.ee [91.129.107.243]) (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-a42.g.dreamhost.com (Postfix) with ESMTPSA id 22893839F8; Mon, 16 Sep 2019 14:42:35 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a42 From: Juri Linkov References: <87k1fl3e6z.fsf@tcd.ie> <87zhj4osjw.fsf@gnus.org> Date: Tue, 17 Sep 2019 00:39:13 +0300 In-Reply-To: <87zhj4osjw.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 16 Sep 2019 23:11:15 +0200") Message-ID: <877e67x6ny.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrudeggddtvdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufhffjgfkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdejrddvgeefnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtjedrvdegfedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehlrghrshhisehgnhhushdrohhrghenucevlhhushhtvghrufhiiigvpedt X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>> Currently, the user option dired-dwim-target applies only to windows >>> displaying Dired buffers on the selected frame. IWBNI this were >>> customisable, so that Dired buffers displayed on other frames were also >>> considered as default targets for file operations. This would be useful >>> for users like me who enable pop-up-frames. >>> >>> Patch implementing this to follow. >> >> This makes sense to me, and the code in the patch looked OK. But what >> did you think of Juri's comments about dired-dwim-target-windows? > > That was 12 weeks ago. Basil, have you had an opportunity to look at > this? I'd like to elaborate on my comments: the thought was that instead of extending the scope of the search for the first random Dired window from the selected frame to all frames, would it be better to improve the heuristic of finding the window that the user really meant to use (remember that the user option name contains the word "DWIM"). The proposed heuristic was to use `get-mru-window' to get the most recently used window from all frames, and even better way is to traverse all windows ordered by their visiting recency on all frames to find the window with Dired mode buffer. From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Sep 2019 21:52:01 +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 To: Lars Ingebrigtsen Cc: "Basil L. Contovounesios" , martin rudalics , 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.15688434693084 (code B ref 35385); Wed, 18 Sep 2019 21:52:01 +0000 Received: (at 35385) by debbugs.gnu.org; 18 Sep 2019 21:51:09 +0000 Received: from localhost ([127.0.0.1]:54923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAhqv-0000nf-40 for submit@debbugs.gnu.org; Wed, 18 Sep 2019 17:51:09 -0400 Received: from bonobo.elm.relay.mailchannels.net ([23.83.212.22]:17297) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAhqq-0000nS-FU for 35385@debbugs.gnu.org; Wed, 18 Sep 2019 17:51:07 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 015E5341D44; Wed, 18 Sep 2019 21:51:03 +0000 (UTC) Received: from pdx1-sub0-mail-a46.g.dreamhost.com (100-96-38-104.trex.outbound.svc.cluster.local [100.96.38.104]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 21CF7341B27; Wed, 18 Sep 2019 21:51:02 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a46.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.17.5); Wed, 18 Sep 2019 21:51:02 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Unite-Stupid: 649cc1bb753a5cf4_1568843462398_4022421227 X-MC-Loop-Signature: 1568843462397:2355174564 X-MC-Ingress-Time: 1568843462397 Received: from pdx1-sub0-mail-a46.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a46.g.dreamhost.com (Postfix) with ESMTP id 3043985A17; Wed, 18 Sep 2019 14:50:59 -0700 (PDT) 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=EYAz4Dk02CzSRgL+5BrV6FbRppY=; b= FE07KeJQpR10tnppUV18EsGKVFbCQS9867xiEgLiJCDrXrf/3cDyzqXwEfN6bBWq jUl+hD1lET+NV0S+Qs5eoclIAt0H0e6bFwQhGXOaTXOps4FUmNVYRro3DcGQH1eF EeZJgm6mEnelzcnLeW+3lst2vtRuDYod1TT60nkATds= Received: from mail.jurta.org (m91-129-107-243.cust.tele2.ee [91.129.107.243]) (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-a46.g.dreamhost.com (Postfix) with ESMTPSA id 7023385A08; Wed, 18 Sep 2019 14:50:55 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a46 From: Juri Linkov Organization: LINKOV.NET References: <87k1fl3e6z.fsf@tcd.ie> <87zhj4osjw.fsf@gnus.org> <877e67x6ny.fsf@mail.linkov.net> Date: Thu, 19 Sep 2019 00:48:30 +0300 In-Reply-To: <877e67x6ny.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 17 Sep 2019 00:39:13 +0300") Message-ID: <87impp1djl.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrudelgddtgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffuohhfffgjkfgfgggtsehmtderredtredtnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledruddtjedrvdegfeenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrddutdejrddvgeefpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtoheplhgrrhhsihesghhnuhhsrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain > I'd like to elaborate on my comments: the thought was that instead of > extending the scope of the search for the first random Dired window > from the selected frame to all frames, would it be better to improve the > heuristic of finding the window that the user really meant to use > (remember that the user option name contains the word "DWIM"). > > The proposed heuristic was to use `get-mru-window' to get > the most recently used window from all frames, and even > better way is to traverse all windows ordered by their visiting > recency on all frames to find the window with Dired mode buffer. I can't find an existing function that would sort windows by recency, but fortunately the implementation is straightforward: (sort (window-list-1) (lambda (a b) (> (window-use-time a) (window-use-time b)))) using `>' gives the mru order, `<' - lru order. BTW, while looking at windows walking functions, I noticed an opportunity for simplification. Martin, could you please confirm if I'm not mistaken with this patch: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=walk-windows-simplify.patch diff --git a/lisp/window.el b/lisp/window.el index cf733153b8..aedebd9d46 100644 --- a/lisp/window.el +++ b/lisp/window.el @@ -2217,6 +2217,10 @@ walk-windows - A frame means consider all windows on that frame only. +If ALL-FRAMES specifies a frame, the first window walked is the +first window on that frame (the one returned by `frame-first-window'), +not necessarily the selected window. + Anything else means consider all windows on the selected frame and no others. @@ -2226,14 +2230,11 @@ walk-windows ;; back to it. (when (window-minibuffer-p) (setq minibuf t)) - ;; Make sure to not mess up the order of recently selected - ;; windows. Use `save-selected-window' and `select-window' - ;; with second argument non-nil for this purpose. - (save-selected-window - (when (framep all-frames) - (select-window (frame-first-window all-frames) 'norecord)) - (dolist (walk-windows-window (window-list-1 nil minibuf all-frames)) - (funcall fun walk-windows-window)))) + (dolist (walk-windows-window + (window-list-1 (and (framep all-frames) + (frame-first-window all-frames)) + minibuf all-frames)) + (funcall fun walk-windows-window))) (defun window-at-side-p (&optional window side) "Return t if WINDOW is at SIDE of its containing frame. --=-=-=-- From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Sep 2019 01:52:01 +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 To: Lars Ingebrigtsen Cc: 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.156885788728335 (code B ref 35385); Thu, 19 Sep 2019 01:52:01 +0000 Received: (at 35385) by debbugs.gnu.org; 19 Sep 2019 01:51:27 +0000 Received: from localhost ([127.0.0.1]:55005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAlbT-0007Mx-06 for submit@debbugs.gnu.org; Wed, 18 Sep 2019 21:51:27 -0400 Received: from mail-wr1-f44.google.com ([209.85.221.44]:36158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAlbQ-0007Mf-8s for 35385@debbugs.gnu.org; Wed, 18 Sep 2019 21:51:25 -0400 Received: by mail-wr1-f44.google.com with SMTP id y19so1323764wrd.3 for <35385@debbugs.gnu.org>; Wed, 18 Sep 2019 18:51:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=XlWh1P29fyb12MkjcLaZQw38vl+8A5idn4nCAA+aXXk=; b=cGNYshaDW6Ehqy/syBxKuRq7lOU7Awuc760DVuhtbnBuLXWLrNvJIjVK5tUwH6nPhl HAlM5jsUajcsEuiamwepUstWjYYqS1CI3V/FbSKK0F+Douk6iRlOzqhmi+Oxfa/s8fwq VJfl2OL/pBVIgZ81DLuDwvwDz/5bAPSsRVGEcfXzh3sV9SHZGaGE5gCPVvJIf6Z3YQhg 1PP6/iAE6sdqRNjqmDvNVEu8yPN19mniS4XY3CgwjeatZso+K/rGR8Nd4XrfnSvjnB1T DynRtCD90IJEYm5nAsozGRN0Lkh3e+sZ4N5AQmQ2juhKYFmOvpFMe87ISeqMf8b9Q/4W TySQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=XlWh1P29fyb12MkjcLaZQw38vl+8A5idn4nCAA+aXXk=; b=SQxNDF0zTyKd9EQmIyEpWIYiI+B9G82xpCRM+iLIFS182A9kIgpsB2A/Brm+7Abkdu K0Dde3qWXIcKD/V81lpBcSjnHCGMCjEg498Ia5/GB3sji4FgLrHafZbzwJeh8SAPC1pp 0dID4TF5hvh46fHcV/35CNvkjSME1ZvhNwDbBEzwFtlAunZ67jgl9Khf51hnZTNcVJwY f5DDuiUA++Zzj+mQk+LbWBTXqfIaO23IwHhueGlZwSSJv+V+D8EgLj9TVeNLXVaSJsRa g9HxWJC62jumeGgLvlK+nChGL/LF0QHxXazx7FzGYPTucv2dFYrTaZk7WmzWAsDx+BrD 6eqg== X-Gm-Message-State: APjAAAVqus0Dkq+nlI2oJeGeZZVsze/x5WFYXnWHrxgtMa3FJehD/PjN TUoa+oVNa3OTVv7FytJ7kNw+KQ== X-Google-Smtp-Source: APXvYqx2Xmi0jcfGPYmxQ1my8HaLG0Tj5gyEZB7+eTvizsRyWeA5sJYsHiuaqARKX3zJW8YNUdVssA== X-Received: by 2002:adf:efcb:: with SMTP id i11mr5147785wrp.69.1568857878249; Wed, 18 Sep 2019 18:51:18 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:92bd:1bfd:38fc:fae2]) by smtp.gmail.com with ESMTPSA id e17sm4279457wma.15.2019.09.18.18.51.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2019 18:51:17 -0700 (PDT) From: "Basil L. Contovounesios" References: <87k1fl3e6z.fsf@tcd.ie> <87zhj4osjw.fsf@gnus.org> Date: Thu, 19 Sep 2019 02:51:16 +0100 In-Reply-To: <87zhj4osjw.fsf@gnus.org> (Lars Ingebrigtsen's message of "Mon, 16 Sep 2019 23:11:15 +0200") Message-ID: <878sqloxyj.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > Lars Ingebrigtsen writes: > >> This makes sense to me, and the code in the patch looked OK. But what >> did you think of Juri's comments about dired-dwim-target-windows? > > That was 12 weeks ago. Basil, have you had an opportunity to look at > this? Sorry, I haven't had a chance to catch up with this stuff since my summer holidays. I'll try to have a look within the next week if no-one beats me to it. Thanks, -- Basil From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Sep 2019 08:20: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 To: Juri Linkov , Lars Ingebrigtsen Cc: "Basil L. Contovounesios" , 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.156888114210382 (code B ref 35385); Thu, 19 Sep 2019 08:20:02 +0000 Received: (at 35385) by debbugs.gnu.org; 19 Sep 2019 08:19:02 +0000 Received: from localhost ([127.0.0.1]:55107 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAreY-0002hO-CN for submit@debbugs.gnu.org; Thu, 19 Sep 2019 04:19:02 -0400 Received: from mout.gmx.net ([212.227.15.18]:42095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iAreW-0002gk-Mk for 35385@debbugs.gnu.org; Thu, 19 Sep 2019 04:19:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1568881128; bh=7ncY64EU1bItGZvUXtVX0KORQ/j3uSBswWIhcFLF3OI=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=PTJ2/HlUiaA1HeuzYBYHAx6z4dIIT0jZ4B4kUovZOWJdkz9V1q0uTtNm6PW5N2L7A inAH7AsRAyG4NdjtibzNfJXuRPE5MLMmN0vjW3ozh9zDiCIoitNvtg8ajP1C/8wnHv xBCZEa6K/7Wxuz6vpIybrZfz+ojs6rh4Y01NYDp4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.101] ([212.95.5.28]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MTiPv-1ieJef2XfB-00U2MZ; Thu, 19 Sep 2019 10:18:48 +0200 References: <87k1fl3e6z.fsf@tcd.ie> <87zhj4osjw.fsf@gnus.org> <877e67x6ny.fsf@mail.linkov.net> <87impp1djl.fsf@mail.linkov.net> From: martin rudalics Message-ID: <138859c1-a7e0-f40d-4623-635826decd90@gmx.at> Date: Thu, 19 Sep 2019 10:18:45 +0200 MIME-Version: 1.0 In-Reply-To: <87impp1djl.fsf@mail.linkov.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:kYlzgMM7RJUFrmNgWdYxMShYMuL46N49rFwa7i9ezA+RVYaBFak FVm8YqktE0ZgfhLb/WpEZ6wN11QR2guq17dcbd8rbB4Qr7zTrlaO7liq0Th0nPLpU1xjIYZ qMt1xHEOOTsU80a3M5YE7RrfTRkt87gLqBipStEmw4KBUJAX3amWBx5AGW2W7V8mqlGAVdP mcTALYPymg9h9Bbb0SIPw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:bQwBSg7+wzc=:zrLkKITTHh2bL6Q0kbRZp6 BlrVH/kjll9N3wZ7bNsb/hFgtOOUUThZ+Ss3jjexWEXusu42CRNLtTCu7T2BvKgSqo/8zuA+e mKF1wU1F6ioTFNHcb7ycyx1GMoTXfQ+lBbTDGmgwjjM2NzGfm525Tz6U/EHi/aT7Mzyk/nZrg u/vEzsnlAwi1M8b6zc/oV6/t7sA6nZBr27Akio4c0G0TXXuNCu8dxXYuxdGzvZFCQ/Hxs4INF sSAvjgm6AuI9zYsFTGtkePvKyd7XoQUEry6i4pDDPoROmp9h4ifqjf/ahiahF7p7P4wf20cGo +fZ+lBaEfNN/s14iyDn/L+nL94+2hqf1v0dCw8puYbb8OgC9+SLqDxJUTlyNBeLO43gn+7chn JR0XHubkkMmQjcdCYsgXgYQrFexe158KpTLLuGgw5didMVoyVDzR1qB1rpOI9nS21G9/oqVFW 7kq8gUwARwqNWee64GqOW0XuBiCAWE1RphS4j1Hk4lktv0f3L0CG+IhaInFYNXPw6qsBV7IcS 1apJsZkcrT/QJkG+HhU86AccZOSGWraWAG3Ai0ep+6DbuS6DT4/l+kw1ep/i23jvDrKrTYrfW 9ISmB9tRdVEkw4OMctzhUEjG9YXe51HFLirunpQzI1F+P+DTFnWcK+olTWBt1rmkE0/9DTd8D spYcMuMQpfCJ6yhOv5mGrmbGxx7Nlup35S++KKExNVzH1SgYXNzTbu7UdDS7tjAmLqVJjtnWp Ysd0A5dBR2VpoXrYpyXIOpRX81YUhQXU3E0Fne/r9wsBa0veJ14c4WA5f5TItKKyfXFHqtHkx XzGaT5MrQf4GYPYbSqYnWI20cMu+HHm6PCEh6LyLBBLoppFfiVHtC7Nys749nZ7Kf8k2XnKZr ndSrtGNEt1UdexixMsoSwTBPRP08USAOfBoHSkbMs2iDbqr0/Ppy8z3Y5KP1q7h5L4+ubD+Th gcLOq35UM0MeArEpgFAlJ/j6PRLUz+nUGfkF1fUZodMBcs3Y0A1t8ODXOSSa7EDPRbzzUOW8h NpMrXF+2KYGA4nwUg8SxH1AtWEnhT1Kcz+jdo3AO4CUJVdKjk8a/B2vEJppgH3mVJGOOWd5Gc XPdgTx+nk4wWM/BxR7JVC4YLJMgzUJAUiGeaPMJabjeyX81R11afIfXSQj/xiim/zAU5DcS4S 2A221RH4gYNash6ofdoXTntnBBEHiilmrfQZUstUdeluptNb6q+xWvLeasy+Z3chYXod/AWDE /sQ+rkET36hOm223l8Jd3JJkqhsCKfrcQe3gO3QXWdzmjZpu26Ff4+Mgzxk8= X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > BTW, while looking at windows walking functions, I noticed > an opportunity for simplification. > > Martin, could you please confirm if I'm not mistaken with this patch: Removing the (when (framep all-frames) (select-window (frame-first-window all-frames) 'norecord)) LGTM. Whether we should remove the (save-selected-window envelope is another question. If FUN changes the selected window, we'd now have a side effect we didn't have so far. Personally, I would always try to use 'walk-window-tree' instead of 'walk-windows' reserving the latter for operations that are allowed to create or delete windows. martin From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Sep 2019 20:50: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 To: martin rudalics Cc: "Basil L. Contovounesios" , Lars Ingebrigtsen , 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.1568926187619 (code B ref 35385); Thu, 19 Sep 2019 20:50:02 +0000 Received: (at 35385) by debbugs.gnu.org; 19 Sep 2019 20:49:47 +0000 Received: from localhost ([127.0.0.1]:56497 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iB3N5-00009u-92 for submit@debbugs.gnu.org; Thu, 19 Sep 2019 16:49:47 -0400 Received: from bonobo.elm.relay.mailchannels.net ([23.83.212.22]:64977) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iB3N3-00009m-MI for 35385@debbugs.gnu.org; Thu, 19 Sep 2019 16:49:46 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id CA09B341F65; Thu, 19 Sep 2019 20:49:44 +0000 (UTC) Received: from pdx1-sub0-mail-a17.g.dreamhost.com (100-96-169-125.trex.outbound.svc.cluster.local [100.96.169.125]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 44113342BD5; Thu, 19 Sep 2019 20:49:44 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a17.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.17.5); Thu, 19 Sep 2019 20:49:44 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Plucky-Towering: 32df8e9a6033807d_1568926184543_181628879 X-MC-Loop-Signature: 1568926184543:3577326187 X-MC-Ingress-Time: 1568926184543 Received: from pdx1-sub0-mail-a17.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a17.g.dreamhost.com (Postfix) with ESMTP id EB0D1836B1; Thu, 19 Sep 2019 13:49:41 -0700 (PDT) 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=B2V6s2+LLG0twCoJkF/NppQsRro=; b= Wf1MPfmq5I4NZLPCsfC2fBfM2bSNnIpYqeEzR4OgZReHIwmf4uN+fd18f91Gp+QH xHwlcErrdATIV+MAsKUuzfeJQTMEftnUQqwHjmrV7d7TZ53A4FwXLtecI8zntt4T LeTo04FHqZv/bHrgKo5JIQA+ZWSFn5y06fEZdHa7itw= Received: from mail.jurta.org (m91-129-107-243.cust.tele2.ee [91.129.107.243]) (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-a17.g.dreamhost.com (Postfix) with ESMTPSA id 2530A836B7; Thu, 19 Sep 2019 13:49:37 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a17 From: Juri Linkov Organization: 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> Date: Thu, 19 Sep 2019 23:43:37 +0300 In-Reply-To: <138859c1-a7e0-f40d-4623-635826decd90@gmx.at> (martin rudalics's message of "Thu, 19 Sep 2019 10:18:45 +0200") Message-ID: <87y2yknhja.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedufedrvddtgdduheehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgesmhdtreertdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucfkphepledurdduvdelrddutdejrddvgeefnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehmrghilhdrjhhurhhtrgdrohhrghdpihhnvghtpeeluddruddvledruddtjedrvdegfedprhgvthhurhhnqdhprghthheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqedpmhgrihhlfhhrohhmpehjuhhriheslhhinhhkohhvrdhnvghtpdhnrhgtphhtthhopehruhgurghlihgtshesghhmgidrrghtnecuvehluhhsthgvrhfuihiivgeptd X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain >> BTW, while looking at windows walking functions, I noticed >> an opportunity for simplification. >> >> Martin, could you please confirm if I'm not mistaken with this patch: > > Removing the > > (when (framep all-frames) > (select-window (frame-first-window all-frames) 'norecord)) > > LGTM. Whether we should remove the > > (save-selected-window > > envelope is another question. If FUN changes the selected window, > we'd now have a side effect we didn't have so far. So I left a comment explaining why save-selected-window is still needed. Now I prepared a patch for dired-dwim-target to DWIM most recently used windows from all frames: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=dired-dwim-target-directories.patch diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index a321247b0b..7c477fa89d 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -1965,6 +1968,18 @@ dired-mark-read-file-name #'read-file-name (format prompt (dired-mark-prompt arg files)) dir default)) +(defun dired-dwim-target-directories () + ;; Return directories from all visible windows with dired-mode buffers + ;; ordered by most-recently-used. + (mapcar #'cdr (sort (mapcan (lambda (w) + (with-current-buffer (window-buffer w) + (when (eq major-mode 'dired-mode) + (list (cons (window-use-time w) + (dired-current-directory)))))) + (delq (selected-window) + (window-list-1 nil 'nomini 'visible))) + (lambda (a b) (> (car a) (car b)))))) + (defun dired-dwim-target-directory () ;; Try to guess which target directory the user may want. ;; If there is a dired buffer displayed in one of the next windows, @@ -1973,15 +1988,7 @@ dired-dwim-target-directory (dired-current-directory)))) ;; non-dired buffer may want to profit from this function, e.g. vm-uudecode (if dired-dwim-target - (let* ((other-win (get-window-with-predicate - (lambda (window) - (with-current-buffer (window-buffer window) - (eq major-mode 'dired-mode))))) - (other-dir (and other-win - (with-current-buffer (window-buffer other-win) - (and (eq major-mode 'dired-mode) - (dired-current-directory)))))) - (or other-dir this-dir)) + (or (car (dired-dwim-target-directories)) this-dir) this-dir))) (defun dired-dwim-target-defaults (fn-list target-dir) @@ -1999,15 +2006,11 @@ dired-dwim-target-defaults (and (consp fn-list) (null (cdr fn-list)) (car fn-list))) (current-dir (and (eq major-mode 'dired-mode) (dired-current-directory))) - dired-dirs) - ;; Get a list of directories of visible buffers in dired-mode. - (walk-windows (lambda (w) - (with-current-buffer (window-buffer w) - (and (eq major-mode 'dired-mode) - (push (dired-current-directory) dired-dirs))))) + ;; Get a list of directories of visible buffers in dired-mode. + (dired-dirs (dired-dwim-target-directories))) ;; Force the current dir to be the first in the list. (setq dired-dirs - (delete-dups (delq nil (cons current-dir (nreverse dired-dirs))))) + (delete-dups (delq nil (cons current-dir dired-dirs)))) ;; Remove the target dir (if specified) or the current dir from ;; default values, because it should be already in initial input. (setq dired-dirs (delete (or target-dir current-dir) dired-dirs)) diff --git a/lisp/dired.el b/lisp/dired.el index 854bc9f7d7..b0d40da57f 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -185,9 +185,9 @@ dired-keep-marker-symlink (defcustom dired-dwim-target nil "If non-nil, Dired tries to guess a default target directory. -This means: if there is a Dired buffer displayed in the next -window, use its current directory, instead of this Dired buffer's -current directory. +This means: if there is a Dired buffer displayed in one of recently +selected windows, use its current directory, instead of this Dired +buffer's current directory. The target is used in the prompt for file copy, rename etc." :type 'boolean --=-=-=-- From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Oct 2019 23:22:01 +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 To: 35385@debbugs.gnu.org Cc: "Basil L. Contovounesios" , Lars Ingebrigtsen Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.157213211418644 (code B ref 35385); Sat, 26 Oct 2019 23:22:01 +0000 Received: (at 35385) by debbugs.gnu.org; 26 Oct 2019 23:21:54 +0000 Received: from localhost ([127.0.0.1]:41541 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iOVNa-0004qe-B9 for submit@debbugs.gnu.org; Sat, 26 Oct 2019 19:21:54 -0400 Received: from dwarf.ash.relay.mailchannels.net ([23.83.222.53]:53698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iOVNX-0004qQ-5Z for 35385@debbugs.gnu.org; Sat, 26 Oct 2019 19:21:52 -0400 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 211C7500F08; Sat, 26 Oct 2019 23:21:47 +0000 (UTC) Received: from pdx1-sub0-mail-a11.g.dreamhost.com (100-96-187-9.trex.outbound.svc.cluster.local [100.96.187.9]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id D255F500AE1; Sat, 26 Oct 2019 23:21:46 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a11.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); Sat, 26 Oct 2019 23:21:47 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Wide-Eyed-Snatch: 5627aad522ed172c_1572132106942_1445355629 X-MC-Loop-Signature: 1572132106942:2109518869 X-MC-Ingress-Time: 1572132106942 Received: from pdx1-sub0-mail-a11.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a11.g.dreamhost.com (Postfix) with ESMTP id 821548D809; Sat, 26 Oct 2019 16:21:46 -0700 (PDT) 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=zjsH9hArH64SLnH3ttiy8+CSRmo=; b= DYP5El3HLhwPPMpiLtup9dkBw6IkiGLCqdb0ea5Mcalcv18/CColZpj0YssDjccE IgEZahfdbRD0B7MV5yYXWoK99U0/UBRUqW+eEN9WrvNUlGrHbJ724tOtRK9mog3F PMdIZ5CuuYpazYEs3KV91+2Zm55g/dIDLQN7psRo0/Q= Received: from mail.jurta.org (m91-129-98-153.cust.tele2.ee [91.129.98.153]) (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-a11.g.dreamhost.com (Postfix) with ESMTPSA id C1EB18E1FE; Sat, 26 Oct 2019 16:21:42 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a11 From: Juri Linkov 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> Date: Sun, 27 Oct 2019 02:20:44 +0300 In-Reply-To: <87y2yknhja.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 19 Sep 2019 23:43:37 +0300") Message-ID: <875zkbrt4j.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > Now I prepared a patch for dired-dwim-target to DWIM most recently used > windows from all frames: Pushed to master. Can this be closed now? From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Nov 2019 19:02: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 To: Juri Linkov Cc: "Basil L. Contovounesios" , Lars Ingebrigtsen , 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.157289411121927 (code B ref 35385); Mon, 04 Nov 2019 19:02:02 +0000 Received: (at 35385) by debbugs.gnu.org; 4 Nov 2019 19:01:51 +0000 Received: from localhost ([127.0.0.1]:37534 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRhbr-0005hb-Jo for submit@debbugs.gnu.org; Mon, 04 Nov 2019 14:01:51 -0500 Received: from mout.web.de ([212.227.17.11]:49125) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iRhbo-0005hI-KX for 35385@debbugs.gnu.org; Mon, 04 Nov 2019 14:01:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1572894095; bh=0tgAI/kUgsFyjlrqXROMMb8DWK04HBoXAUHgGdCkwJk=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Nmqr/w0cdsM/KSgEsxYcHUs9EXLp2yf+tMtWxv86w30m/IftfDAMYeyKjwu1W/19l +oayHYjxTikj1DRO8Kf6c5Hdw8XWCrlIj0WuUvdP36YffShVAv4zDFMZbUJ9hpoHZq 6dlLKYim/2uaOTgO/shYG1AX/mMC7M0b86i+TKlo= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([94.218.222.9]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lky6L-1hu0kM2syr-00akw3; Mon, 04 Nov 2019 20:01:35 +0100 From: Michael Heerdegen 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> Date: Mon, 04 Nov 2019 20:01:45 +0100 In-Reply-To: <875zkbrt4j.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 27 Oct 2019 02:20:44 +0300") Message-ID: <87zhhb1n52.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:HhgnI4s+kNbhC67tUrsd4Vf9E5c/c4AkHEkiS1CXH16n6PQhzvB D/N3m74eaHi+79CM0jM8WR0ZYyZSdxDfKpRybfaIqdnmhVkKeXQ2a9v7AlPLGHnXc3fJn6z 7ADcD13UQ5POSHBR1pJkCvR5ajkdApKq4DNxsh978zjmFZogH9lZrIay0c5WiTg5UlwA1Lp m6rixII91s5Viyrs5/O0Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:2J0QCSXRut8=:hSEwbRossBu/dbhNCoqrXI ES4y1Np44OxXaK0nJBqEy+lsYgtzHuS0+V536ZgMT1lldWCu8u7cp6sluN0ExkVwH+dHBjKHF nbBiC1VUjm9YXyLQqYrLGM3GQtgXK3Pp6RdeJFSNNSTW9TLH9gu0eY3+HFAgDgTazOmfsEcvs iGrhl7hU020t3Kw2T51Pt3+tu/RxVfeZblCHCNbKuJGirY+6jSlNB4489KxpoiaPuVzB9WNMo 1y92gKVy3kPrmZv7iRd+yAcWUOG9b5lP3F8FeDY0hSO0ECY4sQewOrXuj/ecEcep0ssJhjm1v 7nz3kFLlPx4hvAVLc1uBqaqnrYDebegfH1jI5J2I7uPcdRZcdwZeJcC2uUwpeEt6OQ4I8ghSl x20ETQ6yX6pyyQUxPkkSxgecrDYFJpN0RI4KJ5W/lzidVrI80IRXIx45izPpZoAzewicTJkvk Q8QPpDPxnW0c8IJKJ7v4Zzl2DuVVcjQUjXksUd5cNKfy3/oA+oK196g6kxZm4TEcu6fiAXWhc NjUS2PZmQLzcfkltmISPUfJ3kwp8QE11PlgcjGAd8pQ07hKtwsLMsR2zCvdjcKKy760czmF3T I+L2pFTd4+DKjqQA9GKgI5DW1IRwIJuGJrEuikXrdgx8UaWxNh/KcpsBLFG45DJqlKlnBxdAR KufnhyoJQ5Ce0YfjiiZmK9jzfMW16lCydMqAnPTC3cSi/givMRBwa20EAdP3QDacKRdd762df 8PM9jEyYP8e3SzFz9fGHAbgNuPE0TZfMXiVT1+FMCOuBZDQZBapb0WEkrAIez1JChZoH9l2U9 1i7JubPMHjfvuv8oerKbTHDlnHkkm+6At7P1/dCFFkb9v2NcYCBNtHSB35ys/gTw1u6PxrB99 +ujlGxNqVI6HscGquBSk9+1JRAsD6PHlkcm9XIJJ4vafFR2bbxQNWKUDxJh7zP9PFSuhoe1cY Q2yM2nNhS1vLyL4P7dF+iSITTcVRRMLZUR0YgV35frmZr/rfiINXqQs/VzthZbDA5SvKASdgL HeHJyuEr4jP8BCklJIbqhPBAnyVpNlsr6x4JBMP8taPZV243YM1xcJijL3cu45xKYGvNDHc2o S9FLe/4C9p0aWo2qZ+LlSIwJ8QMxHHS6OgCpaq6JJQPluQ/vSmen3U+Tb7fuWT5X6v3PxlSXQ IUmlMZYA8+hvPP8H/H7DNFJ3oB2elUOLtiU2/ULTw0KbyXqOXjBekcGGL35uWOBX9Y9UXTARp Xk3jY2YFJ5fL/Hzpzf8g4Bf4AK+o1EGbnZX6agWDBxuJSTTHZVTtCuZa/BmM= X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Juri Linkov writes: > > Now I prepared a patch for dired-dwim-target to DWIM most recently > > used windows from all frames: > > Pushed to master. Can this be closed now? 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). Michael. From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames 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 To: Michael Heerdegen Cc: "Basil L. Contovounesios" , Lars Ingebrigtsen , 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.157299470618991 (code B ref 35385); Tue, 05 Nov 2019 22:59:02 +0000 Received: (at 35385) by debbugs.gnu.org; 5 Nov 2019 22:58:26 +0000 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 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 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) 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 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 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= 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 From: Juri Linkov Organization: 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> Date: Wed, 06 Nov 2019 00:18:32 +0200 In-Reply-To: <87zhhb1n52.fsf@web.de> (Michael Heerdegen's message of "Mon, 04 Nov 2019 20:01:45 +0100") Message-ID: <8736f29dsv.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > 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. From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Nov 2019 19:14:01 +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 To: Juri Linkov Cc: "Basil L. Contovounesios" , Lars Ingebrigtsen , 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.157324042524728 (code B ref 35385); Fri, 08 Nov 2019 19:14:01 +0000 Received: (at 35385) by debbugs.gnu.org; 8 Nov 2019 19:13:45 +0000 Received: from localhost ([127.0.0.1]:47626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iT9hY-0006Qm-Qh for submit@debbugs.gnu.org; Fri, 08 Nov 2019 14:13:45 -0500 Received: from mout.web.de ([212.227.15.14]:56531) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iT9hW-0006QV-Bn for 35385@debbugs.gnu.org; Fri, 08 Nov 2019 14:13:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1573240408; bh=knK3djC/0YcDVA/0ax6xJnuJq4aofcWhJTN5rwXah/8=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Ma3qoCEYR5Y4uQ8+ISotf40A//LrSngWCcE4wB5RBuIP7WoRk2vppjAazmnDoSS5V oBmLz2uDcNBvH9VmCsDiCvZnasBOSZjX+SdCbkSRjtre9mXPOyxEb5IuXReOCQmj5E bt1ESyhPhbdp4uVIG9mngWOH8WKMOz1B9XLqekv8= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([94.218.222.9]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Lp7Lg-1hx6CK2VPQ-00esqi; Fri, 08 Nov 2019 20:13:28 +0100 From: Michael Heerdegen 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> <8736f29dsv.fsf@mail.linkov.net> Date: Fri, 08 Nov 2019 20:13:41 +0100 In-Reply-To: <8736f29dsv.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 06 Nov 2019 00:18:32 +0200") Message-ID: <87y2wqrxju.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:oqPcw9DFYQzJjrY5IXkQnLX6I5HKCuUoz9QfoUmJKTXuOF+pI2T caV8ZwddB7cTt4s2KL/WpVMEUIi76M8tKrOKMdDX45dSbxjNjrTvE9y5WHMd9bpCIK5fy6G Hb+ZY3mjV+u5N3+v8IkvV4a9eNgYvuz9yt59A+IvuWzY2ZAZbKwg+bVvrLdN69K0SyLiMx4 hdiZbGyUFgMgMvESpKnZA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:SNO/XZwfALg=:0Fpu2QaPXr+6mAStqpnZfB zB0xokxxk8xegYM0aFDRSSo4mQUc3cWhQXNV3ZcbJIg2UuAjtkTdYG/jWZmL0HsSGHNnZO5CO NoCKqFaqwxRbHbbWkfo2GO9seeBz6blMvq0RYcYiUywh8JvVH4eaASZA4RduVYi1OXZUmolVU 8yNW152EWYvfXuHWnkXJqL7L6us7kI9TzD7FE2I2irEJNe1VCmfaga2uvSc0ORr0tjGbAuVpO 7m9qFKej+R4UtyrM4NKKjJGBncqgwnYZ6hmeow5qh0qmlWyn4Xyr77zV6qpOYI+GxvPT8mf9a xl50CJ5o8WrkePgiFsVXbHfM8NjYcc1BtpufhfNiERhMq6y/vYeXpIVX4Yx8WEmAau8vesiQR p+Uwr8FF/qf0r3Xn7Ird4LsuUMJWw+GucQhHMnMIMmmy3ypTcxR6tp2uqHvZthPfCkdOJ0b4H uDFeXSl82dg0QDqhwlFiVMG90tS+L2KuoVWW1esHN0tcydg76ixQg0/LmFRiVTOAyOHrQ0lJb VaN51iB0vMUHfeGe6lcaRmocUShPMm3udKUXJon0+cNYbd7lu6p1ngyhmkLkU3AbeX3QAEiSa wi/7IXvjqVBxQO7hmQDDANkfGTfgzwC9hsST54pbm0Mph8fxrih34gczhxUpp8LgPGcHdMyVl /nJ6ru82DMzv7sWbG3OlEs/UAV+XShZkjBzYuAH442xG2NPWwNMFzkiiQOxhRHm54nuAu02gL KNinUGDyVnwzfIZ1KVQWmIBj6LMQLWbmvz034A9d/hMNlStNDAWbVTrwtVrB2vOXUhyzI2UJr /sBous402preQMzlSrFMQWjlp9l18O0IkHV44tG3ad0utNOX757L5mYQe9Jyxi0Y1N5oStZFp H/ADQZOUcEKsLxboID+jWQCmS3DLCm0cLIeJxaAd/DoMM4a8pzCQf1ry5k7tI022bEhyCsJtU jXb6sn4zgcPLiRwny131uANaHtlMhKj6WKjQLyifvvNfe2QobR/C94SBQPkHOTGC0wqpJli2a MMbadzY+wW/mUIaFDoM+k4y9khP6BDljcV5u6L0v2ollnm5dgHLVMt56Sd8uF/6OvVYz8zYLo lOi59IC5RjfNBrjKdzgxJH9UpuFKQ5Zw72Bsxq6+19j6lDBaU9GvWqD9RUlLmzt1SFrUA7Yeg AvRs1004vrAFokaTI3fRH/he0RwDpViSzYcUJmXJXHqjFhaTvo0R1VitHk4ql6XZe4tfLq02U IfDgmJ2yAIGWZlgMbCtUHDx45Dgk/wop6brJzQhVD2N5DcDU10amr85VyTv0= X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: > So dired-dwim-target could have a similar defcustom > with choices for recent/next window. There are lots of imaginable user preferences, so I would prefer a solution where one can specify a function. Would you want to use `dired-dwim-target' for that? Michael. From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Nov 2019 20:57: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 To: Michael Heerdegen Cc: "Basil L. Contovounesios" , Lars Ingebrigtsen , 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.157341937212906 (code B ref 35385); Sun, 10 Nov 2019 20:57:02 +0000 Received: (at 35385) by debbugs.gnu.org; 10 Nov 2019 20:56:12 +0000 Received: from localhost ([127.0.0.1]:52604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTuFn-0003M5-Nn for submit@debbugs.gnu.org; Sun, 10 Nov 2019 15:56:12 -0500 Received: from caracal.birch.relay.mailchannels.net ([23.83.209.30]:51777) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iTuFl-0003Lx-Hj for 35385@debbugs.gnu.org; Sun, 10 Nov 2019 15:56:10 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 79A1374090B; Sun, 10 Nov 2019 20:56:08 +0000 (UTC) Received: from pdx1-sub0-mail-a14.g.dreamhost.com (100-96-45-192.trex.outbound.svc.cluster.local [100.96.45.192]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 0F3B37405A1; Sun, 10 Nov 2019 20:56:08 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a14.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); Sun, 10 Nov 2019 20:56:08 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Lettuce-Inform: 5bd9471d57501367_1573419368316_685084837 X-MC-Loop-Signature: 1573419368316:1670965401 X-MC-Ingress-Time: 1573419368316 Received: from pdx1-sub0-mail-a14.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a14.g.dreamhost.com (Postfix) with ESMTP id AC6DF98266; Sun, 10 Nov 2019 12:56:02 -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=TT6XAwmeCCDj+UfH4QNFLXCF+wA=; b= c1EFmmsRRHPZsb3C6nZoUGShSyro30ovpGDaLXkbxrdZBLq8/AKmL0knZgFMuhST qVAmzSKs+r0N0No2S94cf+gfjZ4e1tQUoWox51CP7MmpBoOnhwqvooW01t/nYM0u 0KE2103G90jjMrwCiMx6DziZIyX8kp+PAsbEeL4RYes= Received: from mail.jurta.org (m91-129-102-1.cust.tele2.ee [91.129.102.1]) (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-a14.g.dreamhost.com (Postfix) with ESMTPSA id CB84C9872B; Sun, 10 Nov 2019 12:55:59 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a14 From: Juri Linkov Organization: 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> <8736f29dsv.fsf@mail.linkov.net> <87y2wqrxju.fsf@web.de> Date: Sun, 10 Nov 2019 22:38:38 +0200 In-Reply-To: <87y2wqrxju.fsf@web.de> (Michael Heerdegen's message of "Fri, 08 Nov 2019 20:13:41 +0100") Message-ID: <87zhh31u55.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain >> So dired-dwim-target could have a similar defcustom >> with choices for recent/next window. > > There are lots of imaginable user preferences, so I would prefer a > solution where one can specify a function. Would you want to use > `dired-dwim-target' for that? This would be a natural choice, indeed. Please try this patch: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=dired-dwim-target-function.patch diff --git a/lisp/dired.el b/lisp/dired.el index 05789a3516..cfee990a74 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -190,8 +190,16 @@ dired-dwim-target Dired buffer's current directory. The target is used in the prompt for file copy, rename etc." - :type 'boolean - :group 'dired) + :type '(choice + (const :tag "No guess" nil) + (function-item :tag "Prefer most recently used windows" + dired-dwim-target-recent) + (function-item :tag "Prefer next windows" + dired-dwim-target-next) + (function :tag "Your function") + (other :tag "Try to guess" t)) + :group 'dired + :version "27.1") (defcustom dired-copy-preserve-time t "If non-nil, Dired preserves the last-modified time in a file copy. diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index 722d036e3f..a3d0ad61dd 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -1993,6 +1993,12 @@ dired-mark-read-file-name (format prompt (dired-mark-prompt arg files)) dir default)) (defun dired-dwim-target-directories () + (cond ((functionp dired-dwim-target) + (funcall dired-dwim-target)) + (dired-dwim-target + (dired-dwim-target-recent)))) + +(defun dired-dwim-target-recent () ;; Return directories from all visible windows with dired-mode buffers ;; ordered by most-recently-used. (mapcar #'cdr (sort (mapcan (lambda (w) @@ -2004,6 +2010,15 @@ dired-dwim-target-directories (window-list-1 nil 'nomini 'visible))) (lambda (a b) (> (car a) (car b)))))) +(defun dired-dwim-target-next () + (mapcan (lambda (w) + (with-current-buffer (window-buffer w) + (when (eq major-mode 'dired-mode) + (list (dired-current-directory))))) + (delq (selected-window) (window-list-1 + (next-window nil 'nomini 'visible) + 'nomini 'visible)))) + (defun dired-dwim-target-directory () ;; Try to guess which target directory the user may want. ;; If there is a dired buffer displayed in one of the next windows, --=-=-=-- From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Nov 2019 21:23: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 To: Michael Heerdegen Cc: "Basil L. Contovounesios" , Lars Ingebrigtsen , 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.157359373617647 (code B ref 35385); Tue, 12 Nov 2019 21:23:02 +0000 Received: (at 35385) by debbugs.gnu.org; 12 Nov 2019 21:22:16 +0000 Received: from localhost ([127.0.0.1]:58506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUdc8-0004aZ-5L for submit@debbugs.gnu.org; Tue, 12 Nov 2019 16:22:16 -0500 Received: from bonobo.elm.relay.mailchannels.net ([23.83.212.22]:8043) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUdc6-0004aQ-Bo for 35385@debbugs.gnu.org; Tue, 12 Nov 2019 16:22:15 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 057EF141468; Tue, 12 Nov 2019 21:22:13 +0000 (UTC) Received: from pdx1-sub0-mail-a75.g.dreamhost.com (100-96-85-194.trex.outbound.svc.cluster.local [100.96.85.194]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 8E3C414163F; Tue, 12 Nov 2019 21:22:12 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a75.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, 12 Nov 2019 21:22:12 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Lonely-Reign: 5785f356707c0dd0_1573593732818_2854790635 X-MC-Loop-Signature: 1573593732818:3523561664 X-MC-Ingress-Time: 1573593732818 Received: from pdx1-sub0-mail-a75.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a75.g.dreamhost.com (Postfix) with ESMTP id 7A7B09D7C2; Tue, 12 Nov 2019 13:22:10 -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=zLgrHkIjFv5KeS8+T99Ec4LTwY4=; b= w50KNJx6RsQPimyorzQtxkmXEMJwzuMOQ5EWKOs3m4AF9CP+pENDmlmFDnzCrZpt Qp5Vyts4Mzdme0MWIZHnyLLAHZ8510af66Lpdgka5MRL46zPdrpN0Z70pWn4R5gX sh1ggi5ZAsCJa4lLiJaXDP3V9xLNF1jA2+Xh6IHx2Bg= Received: from mail.jurta.org (m91-129-102-1.cust.tele2.ee [91.129.102.1]) (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-a75.g.dreamhost.com (Postfix) with ESMTPSA id 68BC89D7C3; Tue, 12 Nov 2019 13:22:06 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a75 From: Juri Linkov Organization: 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> <8736f29dsv.fsf@mail.linkov.net> <87y2wqrxju.fsf@web.de> <87zhh31u55.fsf@mail.linkov.net> Date: Tue, 12 Nov 2019 23:21:28 +0200 In-Reply-To: <87zhh31u55.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 10 Nov 2019 22:38:38 +0200") Message-ID: <87mud0kcyv.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>> So dired-dwim-target could have a similar defcustom >>> with choices for recent/next window. >> >> There are lots of imaginable user preferences, so I would prefer a >> solution where one can specify a function. Would you want to use >> `dired-dwim-target' for that? > > This would be a natural choice, indeed. Now pushed to master. Please close if everything is alright. From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Nov 2019 15:31: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 To: Juri Linkov Cc: "Basil L. Contovounesios" , Lars Ingebrigtsen , 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.157365901720622 (code B ref 35385); Wed, 13 Nov 2019 15:31:02 +0000 Received: (at 35385) by debbugs.gnu.org; 13 Nov 2019 15:30:17 +0000 Received: from localhost ([127.0.0.1]:59982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUub3-0005MY-9m for submit@debbugs.gnu.org; Wed, 13 Nov 2019 10:30:17 -0500 Received: from mout.web.de ([212.227.17.11]:50497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iUub1-0005ME-9D for 35385@debbugs.gnu.org; Wed, 13 Nov 2019 10:30:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1573658999; bh=KYuCj18pN/9dMfHDY8s3KDso+n3Sg3kJjJiupBNAZec=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=hHmGvviVd19DELF3ITg2GSy7M6kn9sQR7nvwFnDK7b9GKhX6stcX7+OTcjwkU1K9I 4Fdh5maHwelzh+apimC9WsO9nMHO79bPC/3Zo3NmsORcyzgX/6Xb4ZFznKUHYwRUOs 1kGYHJrjDLLr1xv2kXbF9Bst2iEHes+BHOSSUKqo= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([94.218.222.9]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MXpV5-1iQIG82EQ3-00Wmg3; Wed, 13 Nov 2019 16:29:59 +0100 From: Michael Heerdegen 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> <8736f29dsv.fsf@mail.linkov.net> <87y2wqrxju.fsf@web.de> <87zhh31u55.fsf@mail.linkov.net> <87mud0kcyv.fsf@mail.linkov.net> Date: Wed, 13 Nov 2019 16:30:11 +0100 In-Reply-To: <87mud0kcyv.fsf@mail.linkov.net> (Juri Linkov's message of "Tue, 12 Nov 2019 23:21:28 +0200") Message-ID: <87ftir94l8.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:GuDRdZx0NigUhLMfiFsNa093OQg6TAjkZm6RyIPkuyzPxEIvIPo a1bYmz0f0Uklos18BC0+ru7wD+/xLjSPNESfxzWv7ngnz3JljKp0icbFq3Pgyri2pM73Wyh TSTiZEr/jF4WFgUAvSKzDY1IoXfjbkK+3GBte6ZRKy7o0p1kdOfIKb0NU13gm3xDI0zWmjP YP+w3Ga44rHYJDj34eZgg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:BhPxWEI/9fk=:5JGQ8yoa12JrXqxbmGuZC4 Q6+vP/AassNBr5CVl1aZgSCmeTpTdQ3ONc5troXxEe5Q9D2x3ggKR/D9v7EhEQLdRmpYlajcu 8oKnxW+2592icjncmd8WvAwhCxyeVetYASR+lS6iaXEkeH6xRh7KpWIe4CGxIh4EQrXfGmTyh PQZ+DCijqApE4C2mE58/VEWLK9yhN2Zj7iR1duwzmxCWbAy1UHsjQQg++wrdv5QZ2GlDGXGMU dOf28tdFgjXE4bysZcVq08adAV7w7zPRmn/CWXR+1mit7Agmqri7QRN3eSCUSazDdl1Vg1GD+ uwOhTUAkHrjlzTfMpfPeGTyuyudMUhEphk/9ZuRJ7nv3Z6qycEG4Fuat2Ljsno48gEu3vIdqz g9yTLhi4HF7ya7LPxWiSZN34dwwwbmqobGzbNqe9lFcM0DGSR77kpw7GpsXegbsZtBeU4QUoD BUyyvHswN8sOXyiC5KjCPka73xnCYgPw+A8FoGbHHyHV314vdWpWiAgq1D3T13u1mqLcnJXpk fKkNvEsi6CWO63E0iB5fpuOwwj931f3wVP0QBpd/wJ9MG/VnV5KMtESnoWQCEwJFsvTuKv7Ns 8PYOXSBww33SjUbs4zfi46z2mihR+NN3AbPqkRkRtKvA/JLQip7Tz4SFESctVNEoQSd9RCzKB axJ3d/tbS+Aih5KOF3gcBEI0dO8pz/N4pXaXqwtxPZ7la0WfhsrHV6UL+FN9s5arBG/HFg3bu YedlwB64VxtEXn5gsd8e4KKnb6giKO02EoFbd8mG0dorTCKk+AAkPApN4X5PZGOYBAuxGJRAi xKilbFIcplFs49h0uhxVpjOVWH5hBzIricd3o+y9HB4P89QPj1bpxcSWfl4Yeyu1ed26hz6mL 7pwYEcufeZ7nwTHSA2oJUStVOCh56VbAxs9nvN3SMrhl9YZnaXrlQ26DdCTi6zD5ICkf+bL9J ypeekSW8pIg0mV4OF2Qa/mhCWWt2JpIjdJMaSHhDLGZdt8tdUejLWlX0Mt1HjShw54XDR4lXi qZa5i9kYGQDYOhG1v1kpdPpGzWCntyKi2gt37bzSv2WknGJQKNHqT6h7dJKIqNVWh4s2hRslJ 5cestemCpJKfhxEVf/K6iQnUsZMRTlrK55uSbzbJBLagRHI1hN+LhFqomt+DQ4y3xN+0PylpR H1sylvTt8+nf4xd/nG3yUGVQLh0Jq4zqpcBnJD4a6qzb44a9nIiF7lU2oTCWf/IzkvJkCMevP yIA1GAvbKD4VWcZ/bAOEF8NtdotU/PwClzpwZBxHZgC/jbGQ3QIQ7VexkmxY= X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Juri Linkov writes: > Now pushed to master. Please close if everything is alright. Thanks. Works well for me. But I'm not yet happy with the docstring of the option `dired-dwim-target'. I think we should add that the non-nil value can be a function, and that in this case that function will be called with zero arguments and is expected to return a list of directories which will be used as defaults (i.e. default target and "future history") (though, `dired-dwim-target-defaults' might modify it a bit). The sentence "You can customize it to prefer either the next window with a Dired buffer, or the most recently used window with a Dired buffer." could get appended "or something else". Michael. From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Nov 2019 21:51: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 To: Michael Heerdegen Cc: "Basil L. Contovounesios" , Lars Ingebrigtsen , 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.157368182730249 (code B ref 35385); Wed, 13 Nov 2019 21:51:02 +0000 Received: (at 35385) by debbugs.gnu.org; 13 Nov 2019 21:50:27 +0000 Received: from localhost ([127.0.0.1]:60280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV0Wx-0007ro-4d for submit@debbugs.gnu.org; Wed, 13 Nov 2019 16:50:27 -0500 Received: from dog.birch.relay.mailchannels.net ([23.83.209.48]:43183) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iV0Wv-0007rh-QJ for 35385@debbugs.gnu.org; Wed, 13 Nov 2019 16:50:26 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id CE1D0340316; Wed, 13 Nov 2019 21:50:24 +0000 (UTC) Received: from pdx1-sub0-mail-a44.g.dreamhost.com (100-96-187-103.trex.outbound.svc.cluster.local [100.96.187.103]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 2860C34136F; Wed, 13 Nov 2019 21:50:24 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a44.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); Wed, 13 Nov 2019 21:50:24 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Inform-Gusty: 0dbade6d5c8b2c63_1573681824428_3530575602 X-MC-Loop-Signature: 1573681824428:684902068 X-MC-Ingress-Time: 1573681824428 Received: from pdx1-sub0-mail-a44.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a44.g.dreamhost.com (Postfix) with ESMTP id D869F85226; Wed, 13 Nov 2019 13:50:18 -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=Azw2mtZo7oNZKxMLb6E3QMLAeUA=; b= uC7WElWPxvxaRaeAXfzCUpd7y6alHYuAQoIIJ9L1k2ASr1gbqoGwIgMsRydoyzv4 27MXNGNrtU/2f0BuuCzuHVWycSj5WVa7PcnxEFXDXErNcwj2STIUfG/zBP4tVfKT 1KO2goBQYilEgIO57v5wflrYR0V1lla8GZJccM76srk= Received: from mail.jurta.org (m91-129-102-1.cust.tele2.ee [91.129.102.1]) (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-a44.g.dreamhost.com (Postfix) with ESMTPSA id 13C6485225; Wed, 13 Nov 2019 13:50:15 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a44 From: Juri Linkov Organization: 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> <8736f29dsv.fsf@mail.linkov.net> <87y2wqrxju.fsf@web.de> <87zhh31u55.fsf@mail.linkov.net> <87mud0kcyv.fsf@mail.linkov.net> <87ftir94l8.fsf@web.de> Date: Wed, 13 Nov 2019 23:41:16 +0200 In-Reply-To: <87ftir94l8.fsf@web.de> (Michael Heerdegen's message of "Wed, 13 Nov 2019 16:30:11 +0100") Message-ID: <87h837jvyb.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) > I think we should add that the non-nil value can be a function, and that > in this case that function will be called with zero arguments and is > expected to return a list of directories which will be used as defaults > (i.e. default target and "future history") (though, > `dired-dwim-target-defaults' might modify it a bit). > > The sentence "You can customize it to prefer either the next window with > a Dired buffer, or the most recently used window with a Dired buffer." > could get appended "or something else". Do you think this is good enough? diff --git a/doc/emacs/dired.texi b/doc/emacs/dired.texi index 8fab508dea..d1863510d4 100644 --- a/doc/emacs/dired.texi +++ b/doc/emacs/dired.texi @@ -659,7 +659,10 @@ Operating on Files some window, that other buffer's directory is suggested instead. You can customize @code{dired-dwim-target} to prefer either the next window with a Dired buffer, or the most recently used window with -a Dired buffer. +a Dired buffer, or to use any other function. When the value is +a function, it will be called with no arguments and is expected to +return a list of directories which will be used as defaults +(i.e. default target and ``future history''). Here are the file-manipulating Dired commands that operate on files. diff --git a/lisp/dired.el b/lisp/dired.el index 009018fafe..15286cc9b0 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -190,7 +190,11 @@ dired-dwim-target current directory. You can customize it to prefer either the next window with a Dired buffer, -or the most recently used window with a Dired buffer. +or the most recently used window with a Dired buffer, or to use any other +function. When the value is a function, it will be called with no +arguments and is expected to return a list of directories which will +be used as defaults (i.e. default target and \"future history\") +(though, `dired-dwim-target-defaults' might modify it a bit). The target is used in the prompt for file copy, rename etc." :type '(choice From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Nov 2019 10:14: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 To: Juri Linkov Cc: michael_heerdegen@web.de, contovob@tcd.ie, larsi@gnus.org, 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.1573726419667 (code B ref 35385); Thu, 14 Nov 2019 10:14:02 +0000 Received: (at 35385) by debbugs.gnu.org; 14 Nov 2019 10:13:39 +0000 Received: from localhost ([127.0.0.1]:60990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVC8B-0000Ag-0Y for submit@debbugs.gnu.org; Thu, 14 Nov 2019 05:13:39 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVC89-0000AT-4T for 35385@debbugs.gnu.org; Thu, 14 Nov 2019 05:13:37 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iVC82-0002cR-To; Thu, 14 Nov 2019 05:13:30 -0500 Received: from [176.228.60.248] (port=2050 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iVC82-00059s-3R; Thu, 14 Nov 2019 05:13:30 -0500 Date: Thu, 14 Nov 2019 12:13:13 +0200 Message-Id: <83k1827oli.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <87zhh31u55.fsf@mail.linkov.net> (message from Juri Linkov on Sun, 10 Nov 2019 22:38:38 +0200) 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> <8736f29dsv.fsf@mail.linkov.net> <87y2wqrxju.fsf@web.de> <87zhh31u55.fsf@mail.linkov.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Juri Linkov > Date: Sun, 10 Nov 2019 22:38:38 +0200 > Cc: "Basil L. Contovounesios" , > Lars Ingebrigtsen , 35385@debbugs.gnu.org > > + (function-item :tag "Prefer next windows" > + dired-dwim-target-next) This is confusing, IMO. What does "next windows" allude to? > + (function :tag "Your function") Instead of "Your" I'd say "Custom" here. Note that dired-dwim-target is described in the user manual, so there should be a corresponding change in the manual (and in NEWS). Thanks. From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Nov 2019 15:09: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 To: Juri Linkov Cc: "Basil L. Contovounesios" , Lars Ingebrigtsen , 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.15737441369118 (code B ref 35385); Thu, 14 Nov 2019 15:09:02 +0000 Received: (at 35385) by debbugs.gnu.org; 14 Nov 2019 15:08:56 +0000 Received: from localhost ([127.0.0.1]:34944 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVGjw-0002N0-5j for submit@debbugs.gnu.org; Thu, 14 Nov 2019 10:08:56 -0500 Received: from mout.web.de ([212.227.15.3]:55217) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVGjt-0002Ml-Cv for 35385@debbugs.gnu.org; Thu, 14 Nov 2019 10:08:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1573744122; bh=5yg42dzWWV2Dy9Ti6MMKpehTPrRh+ZYRBHGEifr5tA8=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=izl/KmPWLNo5X2FOsOmwA6J045oRULd6ncjBtN0n4ZfD+N5XGkFhMoaOO0iwdaMgG i3faiAfU8X6kViEQbSoNwRORyNzSGgheHaLrAsNKnb+2qReWslsn+oJxQrIBA8dq3Z GLUX3zCdlrpHs00/YqpzZWb+6cgSQujnbqxhC2DM= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([94.218.222.9]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MQvhG-1iJbb21Vb4-00UFcD; Thu, 14 Nov 2019 16:08:42 +0100 From: Michael Heerdegen 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> <8736f29dsv.fsf@mail.linkov.net> <87y2wqrxju.fsf@web.de> <87zhh31u55.fsf@mail.linkov.net> <87mud0kcyv.fsf@mail.linkov.net> <87ftir94l8.fsf@web.de> <87h837jvyb.fsf@mail.linkov.net> Date: Thu, 14 Nov 2019 16:08:55 +0100 In-Reply-To: <87h837jvyb.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 13 Nov 2019 23:41:16 +0200") Message-ID: <875zjmh4vs.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:pA4vpBg0KlUmdhDsh1vy+AXf3XZUtPLaDiw1uOAAwo96f4W7LVb C6rdd3oKqNpDaCWLqcXaEo7pl47R6Pq8OOSE49cxzk6rkE9wu/w2DmEbvTIGZvSp///hMyO FYdm2yuH7gWt58Sc32+NmNLOV+xhnZFAhIvIA160TtrDxtctSqVCbguMXCpFdl5XwA9dsLD 2PN3Xf/GNMkCvO6PXCftg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:2JY8fhHXq+I=:qIxEMUsrQMZu9Zs1eDOWZD egSSBO03PrGKmV0AmzSPRXpkLkn/MilRLSQIXPd8j35GrqE8SHay9/lN0ScR17UwddXgU3ove TYTqwEoTbAvg8gRDCILfn+IqhO+ytyuqwWGb9QXPj4ClovwhvpGF25RLiJC9PX5iWSogjg7F9 lufFAV9CQtx/3/NBYGaIHz7neVeFl14l34JHyGwMEbjPYQm4kh/ByEOSqghvqPMM9OHXY8BVg lohmNE7gG/++zG5DLEIY++7XwDDQIfbmBaTx3TuzQJ0C+Bwqb77vjfqH55KQ3GW7itdgPE4xE 1bp36Z/khgB2Mc9/CuMGTc+fNMtFjQgBsxATQOEdBT2WREPMa8Aj6KsJ3DRSuVGSoR0+9sLlF tLtbwsIQqI6MctBeUJxzLypTQr+rzTz7BUKo2Ckkp00Xf0kts2lM5GVlUA4H891HqLHd2ySuL AXO7Vvsx9HPWouD59iKLyp7K+0A9FDqChYq7+h8Nsl5dl5di9jBlhLo4MdtXzbEk/6+IJaT2q lT5522rw+/24AIEL4+1bP5vVhyeSX7omp928W852hU8PP/CX8/FRY328McZHC6evil78lvzFJ wgVj16wxD8HOLXpCRteRTkouaQDfxdSsFG06f+5TvWnxgsCEcxn9laAoX6N0w8GosEsM4/nKe absRYvYvmhBB1vcaRTsDE30ztTbyV1QuWCS320VWyfqjFKw+3EiKK88WwNjpPIVUrVxAPdKoV CpQSEFxDYZE+K7RVWzS6kkCaenhS0plZBIMnXTnFdVlH900d0znNE2BZlfwzIifg6GwrtaA8S Zzjob3MYsQZQ4E7fYFD5FKAeFj2dcQ2FmiL5fPV/KtomUpvX3ppgfuM9YGvKfP8fW/XsGLQ/n Z6noZgHblcU18S63Im44CylqAACA7pwgy86RFcqePbcraLgnbURrsA1K+IAS6RmyOlnVCWY1d F9b6Nae74les45rBdSbhe5t28CyE5H1AWWiKyBF4krvH5sHWwmtqIbQhhWkupEdZBzQ2lr04i PqQFh4N9B5d7Jqko3LrHe4UHmiHwmrO1f07JVMQXCqK8LrtrjJLRHkU1Sociq6jidKaGXo3YP 8kEiur4nZizyIxapMvJLJtgrzRjthftxCGf9fNa5hM8lyZ84gCmVV5bNkfUUTNwM+HBppVbqQ s/Wn/PZhWXmZRZHfxaDdCjkqHNQnPICmOYO56fr1NFjMzEYe9wOVqKYzVfdMGztunANtnpJ1R sic+SHyvo8UvaFDLf02h3s70IwR6tOT3Hq/kMCrZNDwtDWWCLvln/Z6tpq+A= X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: > Do you think this is good enough? Looks quite good so far. An open question is what the behavior of a non-nil and not functionp value is. BTW, when configuring `dired-dwim-target' to `dired-dwim-target-next' and when the current dired buffer's window is the only dired window in the selected frame, then the default target is not the current buffer's directory but the directory of some other frame's dired. I don't like that. I would want that always all dired windows in the current frame are considered, including the current one. I mean, operating on files in one dired buffer is a quite common need, so defaulting to a directory of some dired buffer in some other frame can be quite confusing. I'm accustomed to the old behavior of course but...it made sense to me. Michael. From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Nov 2019 23:22:01 +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 To: Eli Zaretskii Cc: michael_heerdegen@web.de, contovob@tcd.ie, larsi@gnus.org, 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.157377371130971 (code B ref 35385); Thu, 14 Nov 2019 23:22:01 +0000 Received: (at 35385) by debbugs.gnu.org; 14 Nov 2019 23:21:51 +0000 Received: from localhost ([127.0.0.1]:35413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVOQx-00083T-0r for submit@debbugs.gnu.org; Thu, 14 Nov 2019 18:21:51 -0500 Received: from bumble.birch.relay.mailchannels.net ([23.83.209.25]:43091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVOQu-00083K-OK for 35385@debbugs.gnu.org; Thu, 14 Nov 2019 18:21:49 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 91A645E25E7; Thu, 14 Nov 2019 23:21:47 +0000 (UTC) Received: from pdx1-sub0-mail-a29.g.dreamhost.com (100-96-92-150.trex.outbound.svc.cluster.local [100.96.92.150]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 08DFF5E24FE; Thu, 14 Nov 2019 23:21:47 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a29.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); Thu, 14 Nov 2019 23:21:47 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Celery-Ski: 0ba43c8667dce3a8_1573773707321_2824067158 X-MC-Loop-Signature: 1573773707321:324419143 X-MC-Ingress-Time: 1573773707321 Received: from pdx1-sub0-mail-a29.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a29.g.dreamhost.com (Postfix) with ESMTP id AE8DA8462B; Thu, 14 Nov 2019 15:21:42 -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=O8yvUYHS+r3ILog8VrXpd/MfMmU=; b= Z4LuvTfOmDFSzvK5IKdbk4w9jrJkeMziOwhPupDSUtvQSkGeSoJ1qZg/xtKQ4vgo xK2EBP14+fiDevNDB30ESCPZ001nVQwQCEZr1zCIu/OKAe1kaicvWZUADJaKsVIS FsIXikK/f5mf4JF3WFZofT47vSQQNIl7xKYdUu862TY= Received: from mail.jurta.org (m91-129-102-1.cust.tele2.ee [91.129.102.1]) (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-a29.g.dreamhost.com (Postfix) with ESMTPSA id 0263E8462E; Thu, 14 Nov 2019 15:21:39 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a29 From: Juri Linkov Organization: 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> <8736f29dsv.fsf@mail.linkov.net> <87y2wqrxju.fsf@web.de> <87zhh31u55.fsf@mail.linkov.net> <83k1827oli.fsf@gnu.org> Date: Fri, 15 Nov 2019 01:07:30 +0200 In-Reply-To: <83k1827oli.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 14 Nov 2019 12:13:13 +0200") Message-ID: <87zhgyawgd.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> >> + (function-item :tag "Prefer next windows" >> + dired-dwim-target-next) > > This is confusing, IMO. What does "next windows" allude to? This is what was in the previous version of the docstring: "Dired buffer displayed in the next window" >> + (function :tag "Your function") > > Instead of "Your" I'd say "Custom" here. Ok, will change to "Custom function". > Note that dired-dwim-target is described in the user manual, so there > should be a corresponding change in the manual (and in NEWS). This is already mentioned in the manual and in NEWS. From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Nov 2019 23:22:04 +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 To: Michael Heerdegen Cc: "Basil L. Contovounesios" , Lars Ingebrigtsen , 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.157377371830991 (code B ref 35385); Thu, 14 Nov 2019 23:22:04 +0000 Received: (at 35385) by debbugs.gnu.org; 14 Nov 2019 23:21:58 +0000 Received: from localhost ([127.0.0.1]:35416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVOR2-00083l-AM for submit@debbugs.gnu.org; Thu, 14 Nov 2019 18:21:57 -0500 Received: from bumble.birch.relay.mailchannels.net ([23.83.209.25]:44331) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVOR0-00083c-IJ for 35385@debbugs.gnu.org; Thu, 14 Nov 2019 18:21:55 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 9F3DE5E26C8; Thu, 14 Nov 2019 23:21:53 +0000 (UTC) Received: from pdx1-sub0-mail-a29.g.dreamhost.com (100-96-92-150.trex.outbound.svc.cluster.local [100.96.92.150]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 384E45E235B; Thu, 14 Nov 2019 23:21:53 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a29.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); Thu, 14 Nov 2019 23:21:53 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Callous-Reign: 2fd08dd6465bbe2c_1573773713464_235206782 X-MC-Loop-Signature: 1573773713463:1937922030 X-MC-Ingress-Time: 1573773713463 Received: from pdx1-sub0-mail-a29.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a29.g.dreamhost.com (Postfix) with ESMTP id 3D5808462F; Thu, 14 Nov 2019 15:21:51 -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=13BazrAoPIccPa06v/s/gbv5EqU=; b= iCx1mQP7VOcICAaIJhgESz3vOQjaYah2WGuJSG5qT/ulfWhOLVUJ65qn2m+GJEur mudpfKu0JiDU24wY4O0eTbKFR3kxykucvO1Hlu2ueTbjK1EEpL/v5pBJqhlUG8Q6 Wv0QsNZtgcEpbgkhWxb6jegPDJjksWECBG922I5Ecvo= Received: from mail.jurta.org (m91-129-102-1.cust.tele2.ee [91.129.102.1]) (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-a29.g.dreamhost.com (Postfix) with ESMTPSA id E6ED98462B; Thu, 14 Nov 2019 15:21:47 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a29 From: Juri Linkov Organization: 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> <8736f29dsv.fsf@mail.linkov.net> <87y2wqrxju.fsf@web.de> <87zhh31u55.fsf@mail.linkov.net> <87mud0kcyv.fsf@mail.linkov.net> <87ftir94l8.fsf@web.de> <87h837jvyb.fsf@mail.linkov.net> <875zjmh4vs.fsf@web.de> Date: Fri, 15 Nov 2019 01:10:12 +0200 In-Reply-To: <875zjmh4vs.fsf@web.de> (Michael Heerdegen's message of "Thu, 14 Nov 2019 16:08:55 +0100") Message-ID: <87imnmawbv.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> Do you think this is good enough? > > Looks quite good so far. An open question is what the behavior of a > non-nil and not functionp value is. Maybe it should default to its previous behavior (i.e. the next window on the selected frame). > BTW, when configuring `dired-dwim-target' to `dired-dwim-target-next' > and when the current dired buffer's window is the only dired window in > the selected frame, then the default target is not the current buffer's > directory but the directory of some other frame's dired. I don't like > that. I would want that always all dired windows in the current frame > are considered, including the current one. I mean, operating on files > in one dired buffer is a quite common need, so defaulting to a directory > of some dired buffer in some other frame can be quite confusing. I'm > accustomed to the old behavior of course but...it made sense to me. Maybe the value 't' should use the old behavior. From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Nov 2019 12:17: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 To: Juri Linkov Cc: "Basil L. Contovounesios" , Lars Ingebrigtsen , 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.157382021529362 (code B ref 35385); Fri, 15 Nov 2019 12:17:02 +0000 Received: (at 35385) by debbugs.gnu.org; 15 Nov 2019 12:16:55 +0000 Received: from localhost ([127.0.0.1]:35744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVaX1-0007dW-H5 for submit@debbugs.gnu.org; Fri, 15 Nov 2019 07:16:55 -0500 Received: from mout.web.de ([212.227.15.14]:58583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iVaWv-0007dF-QE for 35385@debbugs.gnu.org; Fri, 15 Nov 2019 07:16:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1573820197; bh=MrXgrFv9nmQsqcElQhvfvbf7XEdFTYuruXKoXVmnM7I=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=R+GrOnd8qAwf3M4REWlRdJhyLjybtK2CfE8ZtNQiTYIuv7WJJTWvSZtqcGb0ZJp4P xxQ5+7YNWyyZHadU4Z5vxB1fEe+9KovsCDGkv1YVztP/fu8OcCQ6Ibw68q6Y5+is8g zZgrA19eCHVmriHLWguGGF3uVL2LQ9gMlAuyiTi8= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([94.218.222.9]) by smtp.web.de (mrweb002 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MSIwN-1iKQG73wN9-00TVh1; Fri, 15 Nov 2019 13:16:37 +0100 From: Michael Heerdegen 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> <8736f29dsv.fsf@mail.linkov.net> <87y2wqrxju.fsf@web.de> <87zhh31u55.fsf@mail.linkov.net> <87mud0kcyv.fsf@mail.linkov.net> <87ftir94l8.fsf@web.de> <87h837jvyb.fsf@mail.linkov.net> <875zjmh4vs.fsf@web.de> <87imnmawbv.fsf@mail.linkov.net> Date: Fri, 15 Nov 2019 13:16:47 +0100 In-Reply-To: <87imnmawbv.fsf@mail.linkov.net> (Juri Linkov's message of "Fri, 15 Nov 2019 01:10:12 +0200") Message-ID: <87sgmpwd00.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:rO7xrmdjR32ddHxjxoUDt4ohoDTnhgy6dqyL7ZZPndnIPmqSE6D qrx3tLp/x43QGU+tOIG2hQcvIQs2ZFqeusXOQDBBLVMRWzL1WaN3o2++sbI3JiNspWx/iHY Tk8nkB4sMvqF05ptTiXViQXOZTp2EIGcXo9d3dQ8oRtP4EPDlOR5Y1Ozuxk9pUGcm5MZQTT DblxABzPki/cj2t/EkUJA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:yUsPy7xAh2s=:G3+w8bl2UDYdRbsUvLvimW +cM/EDZRx+w19ghSwaKMmMWCEtiCp2BSEauqEA0RKnk1IYXL9qaZnIpl9Fbfre06jLI0D3qVw QHduZVJXYCtzTRNK39KoTgVIlOWONVftcJmZAEM705cn4EGTEXNs0zRfdBVwAJIR2EC0+GBJM 9ogNLEtFPF7kRHxs6gtvPIVvpW6kg6CpumW9ug1UOHmrpavbvUS6SObtRIiP+j/n4TDLd+RQR 8GXz0ZY5qaYxzmvw5/Vajlv2yAldRSTNGpcyGahwpxZmONwHqglMVzHf/ALNWaZ7zZN5imBSM 94tFDLETjA8WqTXJgg/LIdO86D6nTpkWPrp9zxMX1rFwBbSPnDtPNpRblezq0zAFFVDkSBz6v KFCcsS5CIrFgcqYdmhSpucXtfLYKwqqupascRh7jz865P/C89XbX5tnzTkLLy/ksR5ZoG8mYy cX9z0R1JASf38PNSQ2gPqSfJyBvMhUUPkAjg5EhaDHcqDunZr0ZMLTQrujQ0rnaSGNgd8U5AJ FuyCd537DQRAkqS/mCet9xOlJCo4gxE/kfwlmd3mlKLETigQzWSG50lyqmbMksj2a9iNYFPG7 OjAUKCZ+11mnPgKwPMZeSom3L/6kwK700ceO3WdgFm0zXrFa17G2oGfeaiEaORYZjrECTJoeg Tyt2e6kM0NOt6fpsKAAebFEyBbboGrrrCSUQRGuRCMpetN3ExL8NykxiIuCTbs3C8DzvCEp5+ mDqQ00h1YvEaX8hUhNCwDoDUvgDCmmSkRh/32cBrhmokKqKk0k0DHkb4SPujng6ntgdvJvgzx vgvdnEErQDKDqgqlIx3+C1tIMJaZK30ngdi9wJVUSVkukXT+DlhwRVXeqaGrkGcPn0wy3KeMC s6MUpyI96+Xsc7zdYtvkxB8dqS1JPh5f2F+UzHT5CEvMYVmgp8lvnc5pX44e3w+VsJGegLFPX hAsm+GSBL9C37GBmTEqm8aDG04KtWEHsZjr70bFW/33ZB5dC3ZN4JsjzBZN17ryRczmIF9612 liH6ooj6H6FG4F5vmUaUvxwqOlihKiqybNkzof7bnMM79BDKKcLSLtYSotlVU4rKds8UmBaU8 a9OeyLFACM5+/BDJ7BEd7YN7CyJK6iR4AMdznH2IJt0eBOCcf67bdKR7rP1230+OyLVeA/5Cf zJjxiDOuVqsJ6lC0vEt6V27dd0/wb4qYPu9MBMxf2eI2hNFccVBakgqfbdWaeZj7nxRdz6mxt jTOvso9bgPb0NQJmYEh9YEiKtm74gnzir+VKQ/ODDB56GGf1DuI4Eb+CI3kE= X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: > Maybe the value 't' should use the old behavior. That's what I thought, too. Michael. From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Nov 2019 22:08: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 To: Michael Heerdegen Cc: "Basil L. Contovounesios" , Lars Ingebrigtsen , 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.157394204627748 (code B ref 35385); Sat, 16 Nov 2019 22:08:02 +0000 Received: (at 35385) by debbugs.gnu.org; 16 Nov 2019 22:07:26 +0000 Received: from localhost ([127.0.0.1]:39843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iW6E2-0007DT-3f for submit@debbugs.gnu.org; Sat, 16 Nov 2019 17:07:26 -0500 Received: from crocodile.birch.relay.mailchannels.net ([23.83.209.45]:63258) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iW6Dz-0007DK-Vm for 35385@debbugs.gnu.org; Sat, 16 Nov 2019 17:07:24 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id AEEE63C09E9; Sat, 16 Nov 2019 22:07:22 +0000 (UTC) Received: from pdx1-sub0-mail-a75.g.dreamhost.com (100-96-15-77.trex.outbound.svc.cluster.local [100.96.15.77]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 5B6D43C019D; Sat, 16 Nov 2019 22:07:22 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Received: from pdx1-sub0-mail-a75.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); Sat, 16 Nov 2019 22:07:22 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Slimy-Cooperative: 656907b9616cad70_1573942042439_3949718708 X-MC-Loop-Signature: 1573942042439:1776630652 X-MC-Ingress-Time: 1573942042439 Received: from pdx1-sub0-mail-a75.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a75.g.dreamhost.com (Postfix) with ESMTP id 54A207F722; Sat, 16 Nov 2019 14:07:20 -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=mnqZ8eYYvZuofl0eYolQRVbrec0=; b= 1VEUcVw+EM6J7X/nRba73GvZaSvlI4RUBI2rWQwf3Eg4JjDfDUgjEfIGwANB0r9N UVkfN1REHGt/fAzq1HDavzz8vjtnYbKgFbhMyr/xeCA2LRAK9lmtYw/iAzWFxHU+ BMouuLxEzQDQ+vI0chuJ7qpMFNeKTUCDVPbaqnyratQ= Received: from mail.jurta.org (m91-129-102-1.cust.tele2.ee [91.129.102.1]) (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-a75.g.dreamhost.com (Postfix) with ESMTPSA id A4B2B7F71E; Sat, 16 Nov 2019 14:07:17 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a75 From: Juri Linkov Organization: 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> <8736f29dsv.fsf@mail.linkov.net> <87y2wqrxju.fsf@web.de> <87zhh31u55.fsf@mail.linkov.net> <87mud0kcyv.fsf@mail.linkov.net> <87ftir94l8.fsf@web.de> <87h837jvyb.fsf@mail.linkov.net> <875zjmh4vs.fsf@web.de> <87imnmawbv.fsf@mail.linkov.net> <87sgmpwd00.fsf@web.de> Date: Sun, 17 Nov 2019 00:06:32 +0200 In-Reply-To: <87sgmpwd00.fsf@web.de> (Michael Heerdegen's message of "Fri, 15 Nov 2019 13:16:47 +0100") Message-ID: <87ftinmq6v.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> Maybe the value 't' should use the old behavior. > > That's what I thought, too. Now this is implemented. From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Nov 2019 22:43: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 To: Juri Linkov Cc: "Basil L. Contovounesios" , Lars Ingebrigtsen , 35385@debbugs.gnu.org Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.157394413430860 (code B ref 35385); Sat, 16 Nov 2019 22:43:02 +0000 Received: (at 35385) by debbugs.gnu.org; 16 Nov 2019 22:42:14 +0000 Received: from localhost ([127.0.0.1]:39861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iW6li-00081g-9U for submit@debbugs.gnu.org; Sat, 16 Nov 2019 17:42:14 -0500 Received: from mout.web.de ([212.227.15.3]:36479) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iW6lf-00081Q-RC for 35385@debbugs.gnu.org; Sat, 16 Nov 2019 17:42:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1573944120; bh=0nc9NneLTO7byVI06jSNW7t3FCbq/m+ff1oq7kbE3jU=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=iQrNuqEryjCRU3HcVFKyNZS9om7m48MyRyZbv3ZQY6U3h0sMeFuLntkk+uCojVunM veNA9YzwCz2GTSm2U6dt0or5j9SvkhmYOIchQj+Va8C3iaM8K8cRKzEs+Ddv1gyCot MGWYCAuaXl8OJp3Jxh1nQRrXzSDm07sdmLUsptUw= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([94.218.222.9]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MVXnr-1iMuEJ2LTr-00YvfJ; Sat, 16 Nov 2019 23:42:00 +0100 From: Michael Heerdegen 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> <8736f29dsv.fsf@mail.linkov.net> <87y2wqrxju.fsf@web.de> <87zhh31u55.fsf@mail.linkov.net> <87mud0kcyv.fsf@mail.linkov.net> <87ftir94l8.fsf@web.de> <87h837jvyb.fsf@mail.linkov.net> <875zjmh4vs.fsf@web.de> <87imnmawbv.fsf@mail.linkov.net> <87sgmpwd00.fsf@web.de> <87ftinmq6v.fsf@mail.linkov.net> Date: Sat, 16 Nov 2019 23:42:13 +0100 In-Reply-To: <87ftinmq6v.fsf@mail.linkov.net> (Juri Linkov's message of "Sun, 17 Nov 2019 00:06:32 +0200") Message-ID: <87r227v3y2.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:3DUHTYPzJx2PC6ZNsXFnw08J7HtIToaCGDfbSy1XubghULeTUCk 4cUpoZBC4EX22XGUhTXY8zUCLaTIGK4c+tfRWJUryC7jzZ5r0CHbOCMI3RyEI7n2TEVQxDC Fr0CHN1yYo9pISnK8wqTD+3FeIJJHFnik3KvLc7A6iliBAaSqcHKuw8PoC9vsNFM8XpPIHK 3SQPc/PJq7S3YkbTRXQIA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:sTkI1KEEy2U=:t2Z29axsZfK+ZXYOxnCjvc 6e0TRq7OsvNZdwYNkmIHIvxx/rEY0Gdt+4DmgCYxZgjxhuZuUdmpJO3s0eKw/TpPra6QKj/Y8 1tHkkn64uE7Tz/jqZWyXEQd+yQFiulSwba0T0hpU9NQjF0hKPngc0fvLJzZuFZwJn9rJ7vKqV MShlE5VaR6RJmuZLaHPSVzcgrys6ttlo1YR84b2F1tY5VjFddjCpSaRYjb7CYGYq91yz85Ey6 79G7t3bCztBlIC0hl8MMmriRLzH/28w/r7W5t0sKq5naKcI2sPsNDMTvzanRvk4rm2+1A2LJ8 ueEWzY69IFHQDp9HAY38JG8R/owm8SYdu45yf/X7lojsoxqqbxq+e63lKdHJb6Y5tFpDIOf95 XW+LQKRaxZ7CNZ6XrLW/YCZdyPcyIjmFFO7OZ9aXK7UaVSXA8hh9q72hQ8fOjXn4K7OuZH3/K Y+AYyWIAokwQyFLTblULtLXbnNmT8ZF+FFUPcLkdgdKrQt6lj2Oz2IY4zjy3h2B2kslu65xtw KPSjMsMNXE7C1BGRvRI6nlSm9HA+E4KV/FxkpnRycXWr4u6SdyzuIsdfe52a3A25oJsAcPYv0 PpZsWShLoWn4wfMJePF8FOEL/48rKF1JRXv8h73HPEwEMYO3htdpaOqiVymYABGKuZcjjDm7k dt09iPeIIGfQl/+OCkX9PNrGdEQS4rSDJFNlLofhnxESlg4TPuRCktsd/oujw8c6N5vVc61KD XVXIzS1DEG5Y32tyAhMaMgTlBh3wL/iuc+9Rb88Febo+5X3Hd0mrqBoK7BPMCOKHTQqhGH5A+ q5yLN2898meLznX048JxXF/smYJKw5zmCZ+IpgkcNz/gkvRA9zCPV+8VpZ/73t8sBX6A/iR3p 8zUCoQTpygTIU2B+lbqhmxWJdQeRZ0rOEnuxvrghnBLECF31Nr29AnvAFnnmG0BJxWIQzMdhQ +KZvZewbEWOmG1UfUBrpwyv/KUbJHrMKF/KxDxB7CEbpdBrTEPkxwUzLKX7FUHPhsAWyQS9Jb PFGChesxY8kIAawWdShEnB5poIwE2izJRu5bZnuj43/a86PLiLsuS5L+Gp+3CDiGJ4P95lkmV EINW7bV4ISpH1wQrcgJp8WnH8JrDfD3S/Pqr+An577TlF5nfYG8d8q5o37kRrrX09RxsatJ36 fzlYBlbtsRVsdCXOpyvpq41JO7byRrfotjXBaj7F1K0Sgrdu4kgFXInOcGwL81VzZ5jIl4mPC bD7Ck4VgrhDG4x1DrbZwGW7f2XHCLevYVeZCjTKtbNeWVcFKUxQLRRa6rcSQ= X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: > >> Maybe the value 't' should use the old behavior. > > > > That's what I thought, too. > > Now this is implemented. Tested quickly, seems to work well so far. I'll continue to use it. Thanks, Michael. From unknown Sat Aug 16 16:13:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#35385: 27.0.50; Make dired-dwim-target aware of other frames Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Aug 2020 11:38:01 +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 To: Michael Heerdegen Cc: "Basil L. Contovounesios" , 35385@debbugs.gnu.org, Juri Linkov Received: via spool by 35385-submit@debbugs.gnu.org id=B35385.159705943325998 (code B ref 35385); Mon, 10 Aug 2020 11:38:01 +0000 Received: (at 35385) by debbugs.gnu.org; 10 Aug 2020 11:37:13 +0000 Received: from localhost ([127.0.0.1]:34690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5677-0006lG-AG for submit@debbugs.gnu.org; Mon, 10 Aug 2020 07:37:13 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5675-0006kz-LK for 35385@debbugs.gnu.org; Mon, 10 Aug 2020 07:37:12 -0400 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=F9BA3ZTiNZ4Pz2mkALeY8qmVF6uWRykXfZbhGk2K2s0=; b=Q0aiQ11DJQb06oVdxjzoLlwiay StgQBGOBaz8J0fOETlW+sGizfffH1UL8WAYQqjupqUfvn+bBUOJ0MpD5DyXyEwgpHfVoJ31ACHE/O RQtwH+owiIeDN6yMTeClWFEDh7kXMk3TKSlgg0AYRitFeNSJGfqzXxuuH44YsRWDDZuY=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k566p-0003PA-Dw; Mon, 10 Aug 2020 13:37:05 +0200 From: Lars Ingebrigtsen 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> <8736f29dsv.fsf@mail.linkov.net> <87y2wqrxju.fsf@web.de> <87zhh31u55.fsf@mail.linkov.net> <87mud0kcyv.fsf@mail.linkov.net> <87ftir94l8.fsf@web.de> <87h837jvyb.fsf@mail.linkov.net> <875zjmh4vs.fsf@web.de> <87imnmawbv.fsf@mail.linkov.net> <87sgmpwd00.fsf@web.de> <87ftinmq6v.fsf@mail.linkov.net> <87r227v3y2.fsf@web.de> Date: Mon, 10 Aug 2020 13:36:53 +0200 In-Reply-To: <87r227v3y2.fsf@web.de> (Michael Heerdegen's message of "Sat, 16 Nov 2019 23:42:13 +0100") Message-ID: <877du67mwa.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Michael Heerdegen writes: > Juri Linkov writes: > >> >> Maybe the value 't' should use the old behavior. >> > >> > That's what I thought, too. >> >> Now this is implemented. > > Tested quickly, seems to work [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Michael Heerdegen writes: > Juri Linkov writes: > >> >> Maybe the value 't' should use the old behavior. >> > >> > That's what I thought, too. >> >> Now this is implemented. > > Tested quickly, seems to work well so far. I'll continue to use it. If I understand correctly, this was fixed by extending dired-dwim-target with this: (function-item :tag "Prefer next windows on the same frame" dired-dwim-target-next) (function-item :tag "Prefer next windows on visible frames" dired-dwim-target-next-visible) instead of adding a new variable, as the original patch proposed. So I'm closing this bug report; if there was anything further to fix here, please reopen. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 10 07:37:19 2020 Received: (at control) by debbugs.gnu.org; 10 Aug 2020 11:37:19 +0000 Received: from localhost ([127.0.0.1]:34693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k567D-0006lb-Ih for submit@debbugs.gnu.org; Mon, 10 Aug 2020 07:37:19 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k567B-0006l9-H1 for control@debbugs.gnu.org; Mon, 10 Aug 2020 07:37:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=9tW8SlUkA0yGc19ghvUR7Vm+6kHBW9d6EqYlUZoSMrM=; b=A9Hr3/16trtlYT6bHBy9N69E4W JEvrgCEsPNeYkH2UilufQCgLxswnFdHB/k6LK3gZk6DwXJbFDR4qvWaDFL8t4UNkzw+JL4XPYRfNi jGbmtWRqEDnLGGH+9xcwdltKrnPOkw58CMAamOe/4gugasuJdkHyDZJ7TXSaTt64SNmU=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5673-0003PN-Oq for control@debbugs.gnu.org; Mon, 10 Aug 2020 13:37:11 +0200 Date: Mon, 10 Aug 2020 13:37:08 +0200 Message-Id: <875z9q7mvv.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #35385 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 35385 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 35385 quit