From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: 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 Message-ID: <871t5oz54u.fsf@gnus.org> References: <89c479a5-be61-468c-81d2-f8ffe115560d@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1461951728 10536 80.91.229.3 (29 Apr 2016 17:42:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Apr 2016 17:42:08 +0000 (UTC) Cc: 16837@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 29 19:41:57 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1awCQP-0003OE-82 for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 19:41:57 +0200 Original-Received: from localhost ([::1]:55693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awCQL-0002dv-BF for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Apr 2016 13:41:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awCOs-00005N-A2 for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 13:40:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awCOb-0006wZ-U7 for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 13:40:16 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awCOb-0006sq-RP for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 13:40:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1awCOY-00089L-Fl for bug-gnu-emacs@gnu.org; Fri, 29 Apr 2016 13:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Apr 2016 17:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16837 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16837-submit@debbugs.gnu.org id=B16837.146195155831271 (code B ref 16837); Fri, 29 Apr 2016 17:40:02 +0000 Original-Received: (at 16837) by debbugs.gnu.org; 29 Apr 2016 17:39:18 +0000 Original-Received: from localhost ([127.0.0.1]:55685 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awCNq-00088J-Da for submit@debbugs.gnu.org; Fri, 29 Apr 2016 13:39:18 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:47427) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awCNo-00088B-Is for 16837@debbugs.gnu.org; Fri, 29 Apr 2016 13:39:16 -0400 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1awCNl-0000IZ-Nr; Fri, 29 Apr 2016 19:39:15 +0200 In-Reply-To: <89c479a5-be61-468c-81d2-f8ffe115560d@default> (Drew Adams's message of "Fri, 21 Feb 2014 10:34:37 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:117225 Archived-At: Drew Adams 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