GNU bug report logs - #61718
[PATCH] Fill minibuffer when dired renaming one file

Previous Next

Package: emacs;

Reported by: Sandra Snan <sandra.snan <at> idiomdrottning.org>

Date: Wed, 22 Feb 2023 20:35:02 UTC

Severity: normal

Tags: patch

Done: Sandra Snan <sandra.snan <at> idiomdrottning.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 61718 in the body.
You can then email your comments to 61718 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#61718; Package emacs. (Wed, 22 Feb 2023 20:35:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sandra Snan <sandra.snan <at> idiomdrottning.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 22 Feb 2023 20:35:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Sandra Snan <sandra.snan <at> idiomdrottning.org>
To: bug-gnu-emacs <at> gnu.org
Cc: Sandra Snan <sandra.snan <at> idiomdrottning.org>
Subject: [PATCH] Fill minibuffer when dired renaming one file
Date: Wed, 22 Feb 2023 21:07:34 +0100
When renaming a file in dired it's sometimes annoying to have to
retype the entire name even when we're only changing a single
character. With this tiny li'l one word patch, the minibuffer gets
pre-filled by the old name.
---
 lisp/dired-aux.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index 6cb097f6bb3..908e43af091 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -2570,7 +2570,7 @@ Optional arg HOW-TO determines how to treat the target.
   (dired-mark-pop-up
    nil op-symbol files
    #'read-file-name
-   (format prompt (dired-mark-prompt arg files)) dir default))
+   (format prompt (dired-mark-prompt arg files)) dir default nil default))
 
 (defun dired-dwim-target-directories ()
   (if (functionp dired-dwim-target)
-- 
2.30.2





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#61718; Package emacs. (Wed, 22 Feb 2023 23:28:01 GMT) Full text and rfc822 format available.

Message #8 received at 61718 <at> debbugs.gnu.org (full text, mbox):

From: Daniel Martín <mardani29 <at> yahoo.es>
To: Sandra Snan <sandra.snan <at> idiomdrottning.org>
Cc: 61718 <at> debbugs.gnu.org
Subject: Re: bug#61718: [PATCH] Fill minibuffer when dired renaming one file
Date: Thu, 23 Feb 2023 00:26:47 +0100
Sandra Snan <sandra.snan <at> idiomdrottning.org> writes:

> When renaming a file in dired it's sometimes annoying to have to
> retype the entire name even when we're only changing a single
> character. With this tiny li'l one word patch, the minibuffer gets
> pre-filled by the old name.
> ---
>  lisp/dired-aux.el | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
> index 6cb097f6bb3..908e43af091 100644
> --- a/lisp/dired-aux.el
> +++ b/lisp/dired-aux.el
> @@ -2570,7 +2570,7 @@ Optional arg HOW-TO determines how to treat the target.
>    (dired-mark-pop-up
>     nil op-symbol files
>     #'read-file-name
> -   (format prompt (dired-mark-prompt arg files)) dir default))
> +   (format prompt (dired-mark-prompt arg files)) dir default nil default))
>  
>  (defun dired-dwim-target-directories ()
>    (if (functionp dired-dwim-target)

The name of the file you want to rename can be retrieved by typing M-n
in the minibuffer.




Reply sent to Sandra Snan <sandra.snan <at> idiomdrottning.org>:
You have taken responsibility. (Thu, 23 Feb 2023 00:47:02 GMT) Full text and rfc822 format available.

Notification sent to Sandra Snan <sandra.snan <at> idiomdrottning.org>:
bug acknowledged by developer. (Thu, 23 Feb 2023 00:47:02 GMT) Full text and rfc822 format available.

Message #13 received at 61718-done <at> debbugs.gnu.org (full text, mbox):

From: Sandra Snan <sandra.snan <at> idiomdrottning.org>
To: 61718-done <at> debbugs.gnu.org
Subject: Not needed
Date: Thu, 23 Feb 2023 01:46:15 +0100
OK, I'm satisfied with the M-n solution! Thank you♥




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 23 Mar 2023 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 28 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.