From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
To: 16935@debbugs.gnu.org
Subject: bug#16935: 24.3.50; when tab-completing in 'M-x' : "Wrong type argument: numberp, nil"
Date: Tue, 04 Mar 2014 15:12:42 +0100 [thread overview]
Message-ID: <871tyiyrvp.fsf@yahoo.fr> (raw)
Hi,
Reproduce:
emacs -Q -f toggle-debug-on-error --eval '(execute-kbd-macro (kbd "M-x f o o C-a <tab>"))'
backtrace:
Debugger entered--Lisp error: (wrong-type-argument numberp nil)
zerop(nil)
minibuffer-completion-help(5 8)
[the rest is of no particular interest]
Possible fix (i.e. Work© Fo® Me™):
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -1753,7 +1753,7 @@ variables.")
(if completions "Sole completion" "No completions")))
(let* ((last (last completions))
- (base-size (cdr last))
+ (base-size (or (cdr last) 0))
(prefix (unless (zerop base-size) (substring string 0 base-size)))
(all-md (completion--metadata (buffer-substring-no-properties
start (point))
--
Nico.
next reply other threads:[~2014-03-04 14:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-04 14:12 Nicolas Richard [this message]
2014-03-04 14:27 ` bug#16935: 24.3.50; when tab-completing in 'M-x' : "Wrong type argument: numberp, nil" Leo Liu
2014-03-04 14:39 ` Bastien
2014-03-04 15:03 ` Nicolas Richard
2014-03-04 15:13 ` Bastien
2014-03-04 17:03 ` Glenn Morris
2014-03-04 17:21 ` Bastien
2014-03-05 0:15 ` Leo Liu
2014-03-05 7:08 ` Bastien
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=871tyiyrvp.fsf@yahoo.fr \
--to=theonewiththeevillook@yahoo.fr \
--cc=16935@debbugs.gnu.org \
/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.