GNU bug report logs - #16837
24.3.50; Allow a HISTORY arg for `read-file-name', `read-file-name-default'

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Fri, 21 Feb 2014 18:36:01 UTC

Severity: wishlist

Tags: wontfix

Found in version 24.3.50

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 16837 in the body.
You can then email your comments to 16837 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#16837; Package emacs. (Fri, 21 Feb 2014 18:36:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Drew Adams <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 21 Feb 2014 18:36:02 GMT) Full text and rfc822 format available.

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

From: Drew Adams <drew.adams <at> oracle.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; Allow a HISTORY arg for `read-file-name',
 `read-file-name-default'
Date: Fri, 21 Feb 2014 10:34:37 -0800 (PST)
An enhancement request -

Please consider allowing an optional HISTORY arg to these functions
(with the default value being of course `file-name-history').

It can happen that someone wants the behavior of one of these functions,
but with a different file-name history, such as `shell-command-history'.


In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
 of 2014-02-11 on ODIEONE
Bzr revision: 116410 lekktu <at> gmail.com-20140211204823-l9l2s6tktfitq266
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/Devel/emacs/binary --enable-checking=yes,glyphs
 'CFLAGS=-O0 -g3' LDFLAGS=-Lc:/Devel/emacs/lib
 CPPFLAGS=-Ic:/Devel/emacs/include'




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16837; Package emacs. (Fri, 29 Apr 2016 17:40:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 16837 <at> debbugs.gnu.org
Subject: Re: bug#16837: 24.3.50;
 Allow a HISTORY arg for `read-file-name', `read-file-name-default'
Date: Fri, 29 Apr 2016 19:39:13 +0200
Drew Adams <drew.adams <at> oracle.com> writes:

> Please consider allowing an optional HISTORY arg to these functions
> (with the default value being of course `file-name-history').
>
> It can happen that someone wants the behavior of one of these functions,
> but with a different file-name history, such as `shell-command-history'.

Yes, that seems potentially useful.  It currently uses the hard-coded
`file-name-history' history.

Anybody have any objections to adding this?  I see one possible
complication -- it'll be Yet Another Optional Parameter that has to be
passed on to `read-file-name-function', and if somebody has defined that
to take fewer parameters, it'll bomb...

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16837; Package emacs. (Sun, 30 May 2021 04:47:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 16837 <at> debbugs.gnu.org
Subject: Re: bug#16837: 24.3.50; Allow a HISTORY arg for `read-file-name',
 `read-file-name-default'
Date: Sun, 30 May 2021 06:45:58 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Yes, that seems potentially useful.  It currently uses the hard-coded
> `file-name-history' history.
>
> Anybody have any objections to adding this?  I see one possible
> complication -- it'll be Yet Another Optional Parameter that has to be
> passed on to `read-file-name-function', and if somebody has defined that
> to take fewer parameters, it'll bomb...

And thinking about this for five more years, I think that's a pretty
serious objection -- the argument list is part of the API here, so we
can't really just add another parameter here.

So people that want a different history variable here will have to make
their own `read-file-name-function' function.

Closing.

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




Added tag(s) wontfix. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 30 May 2021 04:47:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 16837 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 30 May 2021 04:47: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. (Sun, 27 Jun 2021 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 275 days ago.

Previous Next


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