GNU bug report logs - #4560
23.1.50; (string-match "string" nil) error when typing `M-x help RET'

Previous Next

Package: emacs;

Reported by: Giorgos Keramidas <keramida <at> ceid.upatras.gr>

Date: Sat, 26 Sep 2009 08:00:04 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4560 in the body.
You can then email your comments to 4560 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4560; Package emacs. (Sat, 26 Sep 2009 08:00:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Giorgos Keramidas <keramida <at> ceid.upatras.gr>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sat, 26 Sep 2009 08:00:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Giorgos Keramidas <keramida <at> ceid.upatras.gr>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.1.50; (string-match "string" nil) error when typing `M-x help RET'
Date: Sat, 26 Sep 2009 10:52:29 +0300
Something seems to have changed in the way string-match works with its
second argument is nil.  By typing `M-x help RET' I expected to see the
same prompt that is displayed by <f1>, but instead of that a snapshot of
Emacs built from the Git mirror of the repository throws me into the
debugger at:

    Debugger entered--Lisp error: (wrong-type-argument stringp nil)
      string-match("%THIS-KEY%" nil)
      help()
      call-interactively(help t nil)
      execute-extended-command(nil)
      call-interactively(execute-extended-command nil nil)

The last changeset I have in my local Git clone is:

    commit f6829d72c1b405d6c43caa554c2123f41917e358
    Author: Chong Yidong <cyd <at> stupidchicken.com>
    Date:   Fri Sep 25 22:04:07 2009 +0000

        * files.el (safe-local-eval-forms): Allow time-stamp in
        before-save-hook (Bug#4554).

I'm updating a local mirror of the CVS repository now to check if this
is an artifact of the Git mirror.  In the meantime, does this seem like
a bug in `M-x help' or like something we recently changed in the
behavior of `string-match'?

In GNU Emacs 23.1.50.1 (i386-unknown-freebsd9.0, GTK+ Version 2.16.6)
 of 2009-09-26 on kobe
configured using `configure  '--prefix=/opt/emacs' '--with-x' '--with-x-toolkit=gtk' '--with-xpm' '--with-jpeg' '--with-tiff' '--with-gif' '--with-png''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: el_GR.ISO8859-7
  value of $LC_CTYPE: el_GR.ISO8859-7
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: C
  value of $XMODIFIERS: nil
  locale-coding-system: greek-iso-8bit-unix
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  erc-list-mode: t
  erc-menu-mode: t
  erc-button-mode: t
  erc-netsplit-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-match-mode: t
  erc-notify-mode: t
  erc-autojoin-mode: t
  erc-services-mode: t
  erc-networks-mode: t
  erc-pcomplete-mode: t
  erc-ring-mode: t
  erc-log-mode: t
  erc-stamp-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-move-to-prompt-mode: t
  erc-readonly-mode: t
  iswitchb-mode: t
  cua-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
RET C-x C-b s a RET C-x b d e m o RET C-x b n u x RET
C-x b d a r k RET C-l C-x b n u x RET C-x b s c r a
RET ESC x t o g g TAB d e b u TAB e TAB RET ESC x h
e l p RET ESC O A ESC [ 1 ; 2 B ESC [ 1 ; 2 B ESC [
1 ; 2 B ESC [ 1 ; 2 B ESC [ 1 ; 2 B ESC [ 1 ; 2 B ESC
[ 1 ; 2 B ESC w C-] RET C-y RET ESC x r e p o r t -
TAB b u TAB RET

Recent messages:
#Linux modes: +nc
#Linux was created on Tuesday 1999/03/30 04:13:13
Updating buffer list...
Formats have changed, recompiling...done
Updating buffer list...done
Commands: m, u, t, RET, g, k, S, D, Q; q to quit; h for help
Debug on Error enabled globally
Entering debugger...
Quit
Mark set

Load-path shadows:
None found.



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4560; Package emacs. (Sun, 27 Sep 2009 00:35:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sun, 27 Sep 2009 00:35:04 GMT) Full text and rfc822 format available.

Message #10 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Giorgos Keramidas <keramida <at> ceid.upatras.gr>
Cc: 4560 <at> debbugs.gnu.org, emacs-pretest-bug <at> gnu.org
Subject: Re: bug#4560: 23.1.50; (string-match "string" nil) error when typing `M-x help RET'
Date: Sat, 26 Sep 2009 20:28:08 -0400
> Something seems to have changed in the way string-match works with its
> second argument is nil.

Actually, the problem was in help.el's use of make-help-screen.
I've installed the patch below, which should fix it,


        Stefan


--- lisp/help.el	14 Sep 2009 23:28:43 -0000	1.348
+++ lisp/help.el	27 Sep 2009 00:27:00 -0000
@@ -203,7 +203,9 @@
 ;; It can't find this, but nobody will look.
 (make-help-screen help-for-help-internal
   (purecopy "Type a help option: [abcCdefFgiIkKlLmnprstvw.] C-[cdefmnoptw] or ?")
-  (purecopy
+  ;; Don't purecopy this one, because it's not evaluated (it's
+  ;; directly used as a docstring in a function definition, so it'll
+  ;; be moved to the DOC file anyway: no need for purecopying it).
   "You have typed %THIS-KEY%, the help character.  Type a Help option:
 \(Use SPC or DEL to scroll through this text.  Type \\<help-map>\\[help-quit] to exit the Help command.)
 
@@ -248,7 +250,7 @@
 C-o         Emacs ordering and distribution information.
 C-p         Info about known Emacs problems.
 C-t         Emacs TODO list.
-C-w         Information on absence of warranty for GNU Emacs.")
+C-w         Information on absence of warranty for GNU Emacs."
   help-map)
 
 



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4560; Package emacs. (Sun, 27 Sep 2009 00:35:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sun, 27 Sep 2009 00:35:06 GMT) Full text and rfc822 format available.

Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4560; Package emacs. (Sun, 27 Sep 2009 02:25:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Giorgos Keramidas <keramida <at> ceid.upatras.gr>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sun, 27 Sep 2009 02:25:06 GMT) Full text and rfc822 format available.

Message #20 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Giorgos Keramidas <keramida <at> ceid.upatras.gr>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 4560 <at> debbugs.gnu.org, emacs-pretest-bug <at> gnu.org
Subject: Re: bug#4560: 23.1.50; (string-match "string" nil) error when typing `M-x help RET'
Date: Sun, 27 Sep 2009 05:17:57 +0300
On Sat, 26 Sep 2009 20:28:08 -0400, Stefan Monnier <monnier <at> iro.umontreal.ca> wrote:
>> Something seems to have changed in the way string-match works with its
>> second argument is nil.
>
> Actually, the problem was in help.el's use of make-help-screen.
> I've installed the patch below, which should fix it,

> --- lisp/help.el	14 Sep 2009 23:28:43 -0000	1.348
> +++ lisp/help.el	27 Sep 2009 00:27:00 -0000
> @@ -203,7 +203,9 @@
>  ;; It can't find this, but nobody will look.
>  (make-help-screen help-for-help-internal
>    (purecopy "Type a help option: [abcCdefFgiIkKlLmnprstvw.] C-[cdefmnoptw] or ?")
> -  (purecopy
> +  ;; Don't purecopy this one, because it's not evaluated (it's
> +  ;; directly used as a docstring in a function definition, so it'll
> +  ;; be moved to the DOC file anyway: no need for purecopying it).
>    "You have typed %THIS-KEY%, the help character.  Type a Help option:
>  \(Use SPC or DEL to scroll through this text.  Type \\<help-map>\\[help-quit] to exit the Help command.)
>
> @@ -248,7 +250,7 @@
>  C-o         Emacs ordering and distribution information.
>  C-p         Info about known Emacs problems.
>  C-t         Emacs TODO list.
> -C-w         Information on absence of warranty for GNU Emacs.")
> +C-w         Information on absence of warranty for GNU Emacs."
>    help-map)

Thanks!  This seems to have fixed the bug :-)




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4560; Package emacs. (Sun, 27 Sep 2009 02:25:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Giorgos Keramidas <keramida <at> ceid.upatras.gr>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sun, 27 Sep 2009 02:25:08 GMT) Full text and rfc822 format available.

Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Sun, 27 Sep 2009 19:05:04 GMT) Full text and rfc822 format available.

Notification sent to Giorgos Keramidas <keramida <at> ceid.upatras.gr>:
bug acknowledged by developer. (Sun, 27 Sep 2009 19:05:04 GMT) Full text and rfc822 format available.

Message #30 received at 4560-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Giorgos Keramidas <keramida <at> ceid.upatras.gr>
Subject: Re: bug#4560: 23.1.50; (string-match "string" nil) error when typing `M-x help RET'
Date: Sun, 27 Sep 2009 14:56:12 -0400
>>> Something seems to have changed in the way string-match works with its
>>> second argument is nil.
>> Actually, the problem was in help.el's use of make-help-screen.
>> I've installed the patch below, which should fix it,
> Thanks!  This seems to have fixed the bug :-)

Thank you for confirming,


        Stefan



bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> emacsbugs.donarmstrong.com. (Mon, 26 Oct 2009 14:24:23 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 300 days ago.

Previous Next


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