all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jari Aalto <jari.aalto@cante.net>
To: submit@emacsbugs.donarmstrong.com
Subject: bug#4142: [PATCH] 23.1 info.el::Info-goto-node - Wrong type argument: stringp, nil
Date: Fri, 14 Aug 2009 20:35:39 +0300	[thread overview]
Message-ID: <y6pmjo2c.fsf@jondo.cante.net> (raw)


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





             reply	other threads:[~2009-08-14 17:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-14 17:35 Jari Aalto [this message]
2009-08-14 22:29 ` bug#4142: [PATCH] 23.1 info.el::Info-goto-node - Wrong type argument: stringp, nil 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=y6pmjo2c.fsf@jondo.cante.net \
    --to=jari.aalto@cante.net \
    --cc=4142@emacsbugs.donarmstrong.com \
    --cc=submit@emacsbugs.donarmstrong.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.