GNU bug report logs - #58786
29.0.50; Error with Info-minibuf-history not declared

Previous Next

Package: emacs;

Reported by: Thierry Volpiatto <thievol <at> posteo.net>

Date: Wed, 26 Oct 2022 03:54:02 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Drew Adams <drew.adams <at> oracle.com>
To: Thierry Volpiatto <thievol <at> posteo.net>, Stefan Kangas
 <stefankangas <at> gmail.com>
Cc: "58786 <at> debbugs.gnu.org" <58786 <at> debbugs.gnu.org>
Subject: RE: [External] : bug#58786: 29.0.50; Error with Info-minibuf-history
 not declared
Date: Wed, 26 Oct 2022 16:11:27 +0000
My code includes just a vacuous defvar, to
declare the var but not initialize it to nil.

  (defvar Info-minibuf-history)

That works, and in all Emacs versions, AFAIK.

On the other hand, we still have this in the
Elisp manual, node `Minibuffer History'.  It
says that you must initialize a history var
to nil.  I don't think that's correct (and I
don't think that should be needed).

   If you don't specify HISTORY, then the
   default history list 'minibuffer-history'
   is used.  For other standard history lists,
   see below.  You can also create your own
   history list variable; just initialize it
   to 'nil' before the first use.

I think the last sentence can/should be
changed to tell users to declare the var,
not that they need to initialize it to nil.




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

Previous Next


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