GNU bug report logs - #16808
24.3.50; an error when completing M-x ... commands.

Previous Next

Package: emacs;

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

Date: Wed, 19 Feb 2014 11:25:03 UTC

Severity: normal

Merged with 16716

Found in version 24.3.50

Done: Juanma Barranquero <lekktu <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andreas Schwab <schwab <at> suse.de>
To: Nicolas Richard <theonewiththeevillook <at> yahoo.fr>
Cc: 16808 <at> debbugs.gnu.org
Subject: bug#16808: 24.3.50; an error when completing M-x ... commands.
Date: Wed, 19 Feb 2014 12:40:15 +0100
Nicolas Richard <theonewiththeevillook <at> yahoo.fr> writes:

> This is not from emacs -Q, but the patch seems obvious. If you want an
> actual reproducible recipe, I can try to make one.
>
> Here's a diff :
>
> --- a/lisp/minibuffer.el
> +++ b/lisp/minibuffer.el
> @@ -1371,7 +1371,7 @@ appear to be a match."
>  				   (concat before ext after)
>  				   table predicate (1+ point) md))
>  				exts))))
> -	  (when (and (= 1 (length comps) (consp (car comps))))
> +	  (when (and (= 1 (length comps)) (consp (car comps)))

(= 1 (length comps)) would be better written as (not (cdr comps)) in
this context.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab <at> suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."




This bug report was last modified 10 years and 313 days ago.

Previous Next


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