Article View: comp.archives
Article #4602[gnu.emacs.sources] Re: gmhist - generic minibuffer history
From: Sebastian Kremer
Date: Mon, 06 May 1991 13:50
Date: Mon, 06 May 1991 13:50
48 lines
2594 bytes
2594 bytes
Archive-name: emacs/elisp/gmhist/1991-05-05
Archive: ftp.thp.uni-koeln.de:/pub/gnu/emacs/gmhist.tar.Z [134.95.64.1]
Original-posting-by: sk@thp.uni-koeln.de (Sebastian Kremer)
Original-subject: Re: gmhist - generic minibuffer history
Reposted-by: emv@msen.com (Edward Vielmetti, MSEN)
After I posted this I was informed that Emacs 19's read-file-name has
a new, additional argument `INITIAL' for an initial text.
Gmhist already had an internal function (called
`gmhist-read-file-name') with that kind of arg, even for Emacs 18.
Unfortunately the order of arguments differs: while I inserted the
INITIAL directly after the PROMPT argument (like in function
read-from-minibuffer), read-file-name appends it at the end after all
the other optional args (obviously for backward compatibility with
Emacs 18).
I've decided to change gmhist-read-file-name to use the same order as
Emacs 19's read-file-name will and herewith post a patch to upgrade to
3.43 before anybody uses the gmhist-read-file-name function with that
incompatible arglist.
Note that this patch affects only the uses of the internal
`gmhist-read-file-name' function, which is not normally used in
applications of gmhist. The function you usually use,
`read-file-name-with-history-in', can still be called as before .
Gmhist is available via anonymous ftp from
ftp.thp.uni-koeln.de[134.95.64.1]:/pub/gnu/emacs/gmhist.tar.Z
which is already updated to the new version and will continue to have
the latest version.
-Sebastian
Sebastian Kremer <sk@thp.Uni-Koeln.DE>
Institute of Theoretical Physics, University of Cologne, F. R. of Germany
[253 lines of patches deleted. --Ed.]
-- comp.archives file verification
ftp.thp.uni-koeln.de
-rw-r--r-- 1 5035 1010 27907 May 5 14:41 /pub/gnu/emacs/gmhist.tar.Z
found gmhist ok
ftp.thp.uni-koeln.de:/pub/gnu/emacs/gmhist.tar.Z
Technical Details
Message-ID:
<1991May6.135059.7298@ox.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!rphroy!ox.com!msen.com!emvReferences:
<9105031013.AA00299@sun0.thp.Uni-Koeln.DE>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!rphroy!ox.com!msen.com!emv From: sk@thp.uni-koeln.de (Sebastian Kremer) Newsgroups: comp.archives Subject: [gnu.emacs.sources] Re: gmhist - generic minibuffer history Message-ID: <1991May6.135059.7298@ox.com> Date: 6 May 91 13:50:59 GMT References: <9105031013.AA00299@sun0.thp.Uni-Koeln.DE> Sender: emv@msen.com (Edward Vielmetti, MSEN) Reply-To: sk@thp.uni-koeln.de (Sebastian Kremer) Followup-To: gnu.emacs.sources Organization: Institute of Theoretical Physics, University of Cologne, F. R. Lines: 48 Approved: emv@msen.com (Edward Vielmetti, MSEN) X-Original-Newsgroups: gnu.emacs.sources