GNU bug report logs - #13242
24.2.91; dired-goto-file: read-file-name with nil MUSTMATCH

Previous Next

Package: emacs;

Reported by: Christopher Schmidt <christopher <at> ch.ristopher.com>

Date: Thu, 20 Dec 2012 17:02:02 UTC

Severity: minor

Found in version 24.2.91

Done: Lars Ingebrigtsen <larsi <at> gnus.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 13242 in the body.
You can then email your comments to 13242 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#13242; Package emacs. (Thu, 20 Dec 2012 17:02:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christopher Schmidt <christopher <at> ch.ristopher.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 20 Dec 2012 17:02:02 GMT) Full text and rfc822 format available.

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

From: Christopher Schmidt <christopher <at> ch.ristopher.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2.91; dired-goto-file: read-file-name with nil MUSTMATCH
Date: Thu, 20 Dec 2012 17:01:14 +0000 (GMT)
The interactive form of dired-goto-file reads a file name using
read-file-name.  Arg MUSMATCH of this call is nil, though.  This does
not make sense to me.  I think this arg should be t.

        Christopher




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13242; Package emacs. (Thu, 20 Dec 2012 17:08:01 GMT) Full text and rfc822 format available.

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

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#13242: 24.2.91;
	dired-goto-file: read-file-name with nil MUSTMATCH
Date: Thu, 20 Dec 2012 18:06:35 +0100
Christopher Schmidt <christopher <at> ch.ristopher.com> writes:

> The interactive form of dired-goto-file reads a file name using
> read-file-name.  Arg MUSMATCH of this call is nil, though.  This does
> not make sense to me.  I think this arg should be t.

The file may not exist any more, but still listed in the dired buffer.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13242; Package emacs. (Thu, 20 Dec 2012 17:10:02 GMT) Full text and rfc822 format available.

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

From: Bastien <bzg <at> altern.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#13242: 24.2.91;
	dired-goto-file: read-file-name with nil MUSTMATCH
Date: Thu, 20 Dec 2012 18:08:58 +0100
[Message part 1 (text/plain, inline)]
Christopher Schmidt <christopher <at> ch.ristopher.com> writes:

> The interactive form of dired-goto-file reads a file name using
> read-file-name.  Arg MUSMATCH of this call is nil, though.  This does
> not make sense to me.  I think this arg should be t.

Agreed.  This trivial patch does this.

This is not really a bug to me, so I'm not sure if this should go
to emacs-24 or to trunk.  I'll let another maintainer decide on this.

Thanks,

[dired.el.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
-- 
 Bastien

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13242; Package emacs. (Thu, 20 Dec 2012 17:11:02 GMT) Full text and rfc822 format available.

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

From: Bastien <bzg <at> altern.org>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 13242 <at> debbugs.gnu.org
Subject: Re: bug#13242: 24.2.91;
	dired-goto-file: read-file-name with nil MUSTMATCH
Date: Thu, 20 Dec 2012 18:10:05 +0100
Andreas Schwab <schwab <at> linux-m68k.org> writes:

> Christopher Schmidt <christopher <at> ch.ristopher.com> writes:
>
>> The interactive form of dired-goto-file reads a file name using
>> read-file-name.  Arg MUSMATCH of this call is nil, though.  This does
>> not make sense to me.  I think this arg should be t.
>
> The file may not exist any more, but still listed in the dired buffer.

Why would a user put the cursor on that file on this case?

-- 
 Bastien




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13242; Package emacs. (Thu, 20 Dec 2012 17:17:01 GMT) Full text and rfc822 format available.

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

From: Christopher Schmidt <christopher <at> ch.ristopher.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#13242: 24.2.91;
	dired-goto-file: read-file-name with nil MUSTMATCH
Date: Thu, 20 Dec 2012 17:15:48 +0000 (GMT)
Andreas Schwab <schwab <at> linux-m68k.org> writes:
> Christopher Schmidt <christopher <at> ch.ristopher.com> writes:
>
>> The interactive form of dired-goto-file reads a file name using
>> read-file-name.  Arg MUSMATCH of this call is nil, though.  This does
>> not make sense to me.  I think this arg should be t.
>
> The file may not exist any more, but still listed in the dired buffer.

I see your point, although this is an odd corner case.

I am still in favour of changing the argument to t so one gets implicit
completion of incomplete filenames.  E.g. j in RET would jump to my
init.el if I am direding my .emacs.d.

Maybe completing-read could be used here, completing to all filenames in
the dired buffer?  That's seems like a useful idea considering
virtual-dired and find-dired.

        Christopher




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13242; Package emacs. (Thu, 20 Dec 2012 17:28:01 GMT) Full text and rfc822 format available.

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

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Bastien <bzg <at> altern.org>
Cc: 13242 <at> debbugs.gnu.org
Subject: Re: bug#13242: 24.2.91;
	dired-goto-file: read-file-name with nil MUSTMATCH
Date: Thu, 20 Dec 2012 18:27:31 +0100
Bastien <bzg <at> altern.org> writes:

> Why would a user put the cursor on that file on this case?

Why not?

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13242; Package emacs. (Thu, 20 Dec 2012 17:37:01 GMT) Full text and rfc822 format available.

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

From: Bastien <bzg <at> altern.org>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 13242 <at> debbugs.gnu.org
Subject: Re: bug#13242: 24.2.91;
	dired-goto-file: read-file-name with nil MUSTMATCH
Date: Thu, 20 Dec 2012 18:36:39 +0100
Andreas Schwab <schwab <at> linux-m68k.org> writes:

> Bastien <bzg <at> altern.org> writes:
>
>> Why would a user put the cursor on that file on this case?
>
> Why not?

Someone offers to take you to a place, you accept, he takes
you to that place; you're entitled to think the place exists,
aren't you?

If `dired-goto-file' takes you to a file, you're led into
thinking this file exists, which is wrong.

In fact, perhaps dired could highlight non-existing files
on the fly.

-- 
 Bastien




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13242; Package emacs. (Tue, 25 Aug 2020 12:01:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 13242 <at> debbugs.gnu.org
Subject: Re: bug#13242: 24.2.91; dired-goto-file: read-file-name with nil
 MUSTMATCH
Date: Tue, 25 Aug 2020 14:00:11 +0200
Andreas Schwab <schwab <at> linux-m68k.org> writes:

> Christopher Schmidt <christopher <at> ch.ristopher.com> writes:
>
>> The interactive form of dired-goto-file reads a file name using
>> read-file-name.  Arg MUSMATCH of this call is nil, though.  This does
>> not make sense to me.  I think this arg should be t.
>
> The file may not exist any more, but still listed in the dired buffer.

I think that's a good point, and the dired command should allow you to
jump there anyway.  So I don't think there's anything to fix here, and
I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 13242 <at> debbugs.gnu.org and Christopher Schmidt <christopher <at> ch.ristopher.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 25 Aug 2020 12:01:02 GMT) Full text and rfc822 format available.

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

This bug report was last modified 3 years and 214 days ago.

Previous Next


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