[comp.archives] [gnu.emacs.sources] Re: gmhist - generic minibuffer history

sk@thp.uni-koeln.de (Sebastian Kremer) (05/06/91)

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