all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#4142: [PATCH] 23.1 info.el::Info-goto-node - Wrong type argument: stringp, nil
@ 2009-08-14 17:35 Jari Aalto
  2009-08-14 22:29 ` Juri Linkov
  0 siblings, 1 reply; 12+ messages in thread
From: Jari Aalto @ 2009-08-14 17:35 UTC (permalink / raw)
  To: submit


Cf. Debian bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=531094

    apt-get install w3m-el emacs23 emacs23-el

    $ emacs -Q
    M-: (setq debug-on-error t) <return>
    C-h i   m   Emacs - w3m <return> i <return> 3

    Debugger entered--Lisp error: (wrong-type-argument stringp nil)
      string-match("\\s *\\((\\s *\\([^     )]*\\)\\s *)\\s
      *\\|\\)\\(.*\\)"
      nil)
      Info-goto-node(nil)
      Info-nth-menu-item()
      call-interactively(Info-nth-menu-item nil nil)

    Original bug submitter said:

    I'm there on
    (info "(emacs-w3m)Index")
    and I can't enter
    "3" which runs the command Info-nth-menu-item

The problem seems to be in lisp/info.el

    (defun Info-nth-menu-item ()
      "Go to the node of the Nth menu item.
    N is the digit argument used to invoke this command."
      (interactive)
      (Info-goto-node
       (Info-extract-menu-counting
        (- (aref (this-command-keys) (1- (length (this-command-keys))))
      ?0))))

The value of Info-extract-menu-counting isn't checked for nil before
passing it to Info-goto-node.

Jari

2009-08-14  Jari Aalto  <jari.aalto@cante.net>

        * info.el (Info-nth-menu-item): Check return value
        of `Info-extract-menu-counting' for nil.

PATCH: http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=10;filename=0001-info.el-Info-nth-menu-item-Check-return-value-of-Inf.patch;att=1;bug=531094





^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-09-18 21:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-14 17:35 bug#4142: [PATCH] 23.1 info.el::Info-goto-node - Wrong type argument: stringp, nil Jari Aalto
2009-08-14 22:29 ` Juri Linkov
2011-09-17  7:12   ` Lars Magne Ingebrigtsen
2011-09-17 14:19     ` bug#4142: [PATCH] 23.1 info.el::Info-goto-node - Wrong type argument:stringp, nil Drew Adams
2011-09-17 18:17       ` Juri Linkov
2011-09-18  7:32         ` Lars Magne Ingebrigtsen
2011-09-18  7:54           ` Drew Adams
2011-09-18 19:51             ` Juri Linkov
2011-09-18 21:07               ` Andreas Schwab
2011-09-18  8:05         ` Andreas Schwab
2011-09-18  8:06     ` bug#4142: [PATCH] 23.1 info.el::Info-goto-node - Wrong type argument: stringp, nil Andreas Schwab
2011-09-18 19:52       ` Juri Linkov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.