GNU bug report logs - #16935
24.3.50; when tab-completing in 'M-x' : "Wrong type argument: numberp, nil"

Previous Next

Package: emacs;

Reported by: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>

Date: Tue, 4 Mar 2014 14:13:02 UTC

Severity: normal

Tags: patch

Merged with 16933, 16934

Found in version 24.3.50

Done: Bastien <bzg <at> altern.org>

Bug is archived. No further changes may be made.

Full log


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

From: Leo Liu <sdl.web <at> gmail.com>
To: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
Cc: 16935 <at> debbugs.gnu.org
Subject: Re: bug#16935: 24.3.50;
 when tab-completing in 'M-x' : "Wrong type argument: numberp, nil"
Date: Tue, 04 Mar 2014 22:27:22 +0800
On 2014-03-04 22:12 +0800, Nicolas Richard wrote:
> --- 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))

I noticed this error too. (base-size (cdr last)) is used in 24.3 and no
errors there. So it will be good to know where the problem originated
and fix it.

Leo




This bug report was last modified 11 years and 140 days ago.

Previous Next


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