GNU bug report logs - #23533
24.5; test-completion with completion-regexp-list

Previous Next

Package: emacs;

Reported by: ynyaaa <at> gmail.com

Date: Fri, 13 May 2016 17:09:01 UTC

Severity: normal

Tags: confirmed, patch

Found in versions 24.5, 25.0.95

Fixed in version 26.0.50

Done: Noam Postavsky <npostavs <at> users.sourceforge.net>

Bug is archived. No further changes may be made.

Full log


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

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: 23533 <at> debbugs.gnu.org
Cc: ynyaaa <at> gmail.com
Subject: 24.5; test-completion with completion-regexp-list
Date: Fri, 17 Jun 2016 00:06:44 -0400
found 23533 25.0.95
tag 23533 + confirmed patch
quit

Yup, test-completion doesn't handle testing an alist against
completion-regexp-list. Easy to fix:

diff --git i/src/minibuf.c w/src/minibuf.c
index d85a7a9..74be5d8 100644
--- i/src/minibuf.c
+++ w/src/minibuf.c
@@ -1665,6 +1665,8 @@ DEFUN ("test-completion", Ftest_completion,
Stest_completion, 2, 3, 0,
       tem = Fassoc_string (string, collection, completion_ignore_case
? Qt : Qnil);
       if (NILP (tem))
     return Qnil;
+      else if (CONSP (tem))
+        tem = XCDR (tem);
     }
   else if (VECTORP (collection))
     {




This bug report was last modified 8 years and 268 days ago.

Previous Next


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