From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Leo Vivier Newsgroups: gmane.emacs.bugs Subject: bug#41261: 27.0.90; Dired default file operation target no longer guessed Date: Fri, 15 May 2020 00:09:18 +0200 Message-ID: <87sgg2jhip.fsf@hidden> References: <875zcyhhtd.fsf@localhost> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="84625"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41261@debbugs.gnu.org To: wojciech.siewierski@onet.pl Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 15 00:30:17 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZMMq-000LxJ-NG for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 00:30:16 +0200 Original-Received: from localhost ([::1]:34582 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZMMp-0003Bc-7U for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 May 2020 18:30:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZMMd-0003BI-Lz for bug-gnu-emacs@gnu.org; Thu, 14 May 2020 18:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51832) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZMMd-0003tg-CR for bug-gnu-emacs@gnu.org; Thu, 14 May 2020 18:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jZMMd-0000sL-6H for bug-gnu-emacs@gnu.org; Thu, 14 May 2020 18:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leo Vivier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 May 2020 22:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41261 X-GNU-PR-Package: emacs Original-Received: via spool by 41261-submit@debbugs.gnu.org id=B41261.15894953663276 (code B ref 41261); Thu, 14 May 2020 22:30:03 +0000 Original-Received: (at 41261) by debbugs.gnu.org; 14 May 2020 22:29:26 +0000 Original-Received: from localhost ([127.0.0.1]:35145 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZMM2-0000qm-FW for submit@debbugs.gnu.org; Thu, 14 May 2020 18:29:26 -0400 Original-Received: from mail-wm1-f50.google.com ([209.85.128.50]:36300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZM2s-0006cR-Br for 41261@debbugs.gnu.org; Thu, 14 May 2020 18:09:39 -0400 Original-Received: by mail-wm1-f50.google.com with SMTP id u188so49308wmu.1 for <41261@debbugs.gnu.org>; Thu, 14 May 2020 15:09:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:in-reply-to:date:message-id:mime-version; bh=VVg+rZk5xDP0fSaeZNE4pRzDqkjXMb7uKstEC8uiWNw=; b=gxhgDzudEkXPZ1G+YvaUxJieeqG5r8HwBPOKHkz4rs3FqM8pktukzdq1eEx0DeLPa/ c/aACFIOPRwu1UiRwGheKaCWbv1BVw9mu2+cnejc1AK+iMCIPoepSR7m619kFigUNIbJ h7F8+uZpTcSyGRgSJYoR1SE3+FvlW+irHbcaV40uG38AdqAsqZqhc9Mb2ffx2XuXidot GyL4MeLu4doY/XrBsVGRwepSU0vsX9EMXAaNdv1mB8Js/RyxicycjLFywTPI3Cz3OZeq R7/a9S0WgFuILunSuIoO2Q11RQ4NyI4QsDkBxS/onKrgiIPq7J9TfeX+zlmET4WMpe2h bjsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=VVg+rZk5xDP0fSaeZNE4pRzDqkjXMb7uKstEC8uiWNw=; b=YMP65W1D6wuUBUcc2UJuxwdMIe8/cfceON9ZspxVZ+F0rVXkiBBO4MADaYIPtPyUdK rkmvPkb9p3UV2z+99TISXPx05fiVe9BKGPnvNldYz5QL62MOPKI/KsDcD7jDdEcpQxJZ t4GphAYDATm6ojWRWgxbREGaVGbEXafEBV5ykOUN/7uREzmempkFNymq24jobPJIKkow MOnB20ibPCYO8UnEb9TvRPH9AKdLuCFagghS7BXnBU83j6WYA4nI3bRN9G4jmB2+ivWX pTsLHDnkv7TjyaOaFarbc2YWxVJEgSBWZRvoDJpl90yGOcR7Xq+vvvLtIF50EwgSSneb scVg== X-Gm-Message-State: AOAM531Vs2p+DMx65YYvRevsKL90iSs/JhT/MO7lrmZz868Q3kiDwzj0 dXRoES6eDYgE/LNjlfI2AbGLqxs= X-Google-Smtp-Source: ABdhPJxS/2c9pmj5LxxVxosKVnEC+b9fTg3Iis3hInx7bz7UbofkR69KM+hE1Dg43a/6h32Yx28MBg== X-Received: by 2002:a05:600c:2043:: with SMTP id p3mr429898wmg.187.1589494171739; Thu, 14 May 2020 15:09:31 -0700 (PDT) Original-Received: from thinkpad.localdomain ([37.165.225.122]) by smtp.gmail.com with ESMTPSA id u10sm623212wmc.31.2020.05.14.15.09.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2020 15:09:30 -0700 (PDT) In-Reply-To: 87k11echzx.fsf@localhost X-Mailman-Approved-At: Thu, 14 May 2020 18:29:25 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:180281 Archived-At: --=-=-= Content-Type: text/plain Hi there, I went ahead and wrote the patch. HTH, -- Leo Vivier --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Fix-dired-default-file-operation-bug-41261.patch >From 8169360984fea404d3cacc4e17124c27c0a18a79 Mon Sep 17 00:00:00 2001 From: Leo Vivier 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 --=-=-=--