unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Vivier <leo.vivier+dev@gmail.com>
To: wojciech.siewierski@onet.pl
Cc: 41261@debbugs.gnu.org
Subject: bug#41261: 27.0.90; Dired default file operation target no longer guessed
Date: Fri, 15 May 2020 00:09:18 +0200	[thread overview]
Message-ID: <87sgg2jhip.fsf@hidden> (raw)
In-Reply-To: 87k11echzx.fsf@localhost

[-- Attachment #1: Type: text/plain, Size: 68 bytes --]

Hi there,

I went ahead and wrote the patch.

HTH,

-- 
Leo Vivier


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-dired-default-file-operation-bug-41261.patch --]
[-- Type: text/x-patch, Size: 981 bytes --]

From 8169360984fea404d3cacc4e17124c27c0a18a79 Mon Sep 17 00:00:00 2001
From: Leo Vivier <leo.vivier+dev@gmail.com>
Date: Fri, 15 May 2020 00:03:18 +0200
Subject: [PATCH] Fix dired default file operation (bug#41261)

---
 lisp/dired-aux.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index 0069c1744d..7f988540c2 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -2002,10 +2002,9 @@ 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-next))))
+  (if (functionp dired-dwim-target)
+      (funcall dired-dwim-target)
+    (dired-dwim-target-next)))
 
 (defun dired-dwim-target-next (&optional all-frames)
   ;; Return directories from all next windows with dired-mode buffers.
-- 
2.26.2


  parent reply	other threads:[~2020-05-14 22:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-14 11:33 bug#41261: 27.0.90; Dired default file operation target no longer guessed Wojciech Siewierski
2020-05-14 15:20 ` Kévin Le Gouguec
2020-05-14 17:55   ` Eli Zaretskii
2020-05-14 21:40     ` Wojciech Siewierski
2020-05-14 22:09 ` Leo Vivier [this message]
2020-05-14 22:41   ` Juri Linkov
2020-05-15  7:20   ` Eli Zaretskii
2020-05-15  7:21     ` Leo Vivier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sgg2jhip.fsf@hidden \
    --to=leo.vivier+dev@gmail.com \
    --cc=41261@debbugs.gnu.org \
    --cc=wojciech.siewierski@onet.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).