GNU bug report logs - #14120
invalid load-history in emacsen that CANNOT_DUMP

Previous Next

Package: emacs;

Reported by: BT Templeton <bt <at> hcoop.net>

Date: Mon, 1 Apr 2013 22:55:01 UTC

Severity: normal

Found in version 27.0.50

Fixed in version 27.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: 14120 <at> debbugs.gnu.org
Subject: [Robert Weiner] Emacs history selection non-string arguments
 causing failures for a long time
Date: Sun, 16 Feb 2020 15:55:12 -0500
[Message part 1 (message/rfc822, inline)]
From: Robert Weiner <rsw <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 14120 <at> debbugs.gnu.org
Subject: Emacs history selection non-string arguments causing failures for a
 long time
Date: Sun, 16 Feb 2020 01:14:48 -0500
[Message part 2 (text/plain, inline)]
Hi Stefan:

This bug #14120 in subr.el is still occurring in Emacs 27.0.50 because
leading entries like (require . info) rather than strings are being
injected into the history.  Since this has affected people for quite a
while, I hope you or someone else can add this one line change to the Emacs
27 branch and resolve it.

Bob

---------

*** subr-old.el 2020-02-16 01:05:56.000000000 -0500
--- subr.el 2020-02-16 01:06:28.000000000 -0500
***************
*** 4490,4496 ****
  (load-elt (and loads (car loads))))
      (save-match-data
        (while (and loads
!  (or (null (car load-elt))
       (not (string-match file-regexp (car load-elt)))))
  (setq loads (cdr loads)
       load-elt (and loads (car loads)))))
--- 4490,4499 ----
  (load-elt (and loads (car loads))))
      (save-match-data
        (while (and loads
!  ;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=14120
!  ;; Avoid this bug still occuring in Emacs 27.0.50 by checking
!  ;; if load-elt is a string or not.
!  (or (not (stringp (car load-elt)))
       (not (string-match file-regexp (car load-elt)))))
  (setq loads (cdr loads)
       load-elt (and loads (car loads)))))

This bug report was last modified 5 years and 152 days ago.

Previous Next


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