GNU bug report logs - #12347
24.2.50; doc of `completion-table-subvert'

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Tue, 4 Sep 2012 03:06:02 UTC

Severity: minor

Found in version 24.2.50

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 12347 in the body.
You can then email your comments to 12347 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#12347; Package emacs. (Tue, 04 Sep 2012 03:06:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Drew Adams" <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 04 Sep 2012 03:06:02 GMT) Full text and rfc822 format available.

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

From: "Drew Adams" <drew.adams <at> oracle.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 24.2.50; doc of `completion-table-subvert'
Date: Mon, 3 Sep 2012 20:03:18 -0700
Doc string:
 
"Completion table that replaces the prefix S1 with S2 in STRING."
 
What's STRING?  STRING is described/defined nowhere.  And this is the
first sentence of the doc string, which should be able to stand alone.

In GNU Emacs 24.2.50.1 (i386-mingw-nt5.1.2600)
 of 2012-09-02 on MARVIN
Bzr revision: 109861 eggert <at> cs.ucla.edu-20120902171035-7mzihil3xd6bjfiy
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
 `configure --with-gcc (4.6) --no-opt --enable-checking --cflags
 -ID:/devel/emacs/libs/libXpm-3.5.8/include
 -ID:/devel/emacs/libs/libXpm-3.5.8/src
 -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
 -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
 -ID:/devel/emacs/libs/giflib-4.1.4-1/include
 -ID:/devel/emacs/libs/jpeg-6b-4/include
 -ID:/devel/emacs/libs/tiff-3.8.2-1/include
 -ID:/devel/emacs/libs/gnutls-3.0.9/include
 -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include
 -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2'
 





Reply sent to Bastien <bzg <at> altern.org>:
You have taken responsibility. (Tue, 11 Sep 2012 14:08:02 GMT) Full text and rfc822 format available.

Notification sent to "Drew Adams" <drew.adams <at> oracle.com>:
bug acknowledged by developer. (Tue, 11 Sep 2012 14:08:02 GMT) Full text and rfc822 format available.

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

From: Bastien <bzg <at> altern.org>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 12347-done <at> debbugs.gnu.org
Subject: Re: bug#12347: 24.2.50; doc of `completion-table-subvert'
Date: Tue, 11 Sep 2012 16:07:15 +0200
[Message part 1 (text/plain, inline)]
"Drew Adams" <drew.adams <at> oracle.com> writes:

> "Completion table that replaces the prefix S1 with S2 in STRING."

I applied the patch below.

Thanks,

[minibuffer.el.patch (text/x-patch, inline)]
=== modified file 'lisp/minibuffer.el'
--- lisp/minibuffer.el	2012-09-01 04:28:24 +0000
+++ lisp/minibuffer.el	2012-09-11 14:05:33 +0000
@@ -211,10 +211,10 @@
       (complete-with-action action table string pred))))
 
 (defun completion-table-subvert (table s1 s2)
-  "Completion table that replaces the prefix S1 with S2 in STRING.
+  "Return a completion table from TABLE with S1 replaced by S2.
 The result is a completion table which completes strings of the
-form (concat S1 S) in the same way as TABLE completes strings of
-the form (concat S2 S)."
+form (concat S2 S) in the same way as TABLE completes strings of
+the form (concat S1 S)."
   (lambda (string pred action)
     (let* ((str (if (eq t (compare-strings string 0 (length s1) s1 nil nil
                                            completion-ignore-case))

[Message part 3 (text/plain, inline)]
-- 
 Bastien

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12347; Package emacs. (Tue, 11 Sep 2012 14:30:02 GMT) Full text and rfc822 format available.

Message #13 received at 12347-done <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Bastien'" <bzg <at> altern.org>
Cc: 12347-done <at> debbugs.gnu.org
Subject: RE: bug#12347: 24.2.50; doc of `completion-table-subvert'
Date: Tue, 11 Sep 2012 07:28:18 -0700
> I applied the patch below.

Looks good; thanks.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12347; Package emacs. (Tue, 11 Sep 2012 17:29:01 GMT) Full text and rfc822 format available.

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

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: 12347 <at> debbugs.gnu.org
Cc: bzg <at> altern.org
Subject: Re: bug#12347: 24.2.50; doc of `completion-table-subvert'
Date: Tue, 11 Sep 2012 13:27:36 -0400
> -form (concat S1 S) in the same way as TABLE completes strings of
> -the form (concat S2 S)."
> +form (concat S2 S) in the same way as TABLE completes strings of
> +the form (concat S1 S)."

That's wrong.  Check the code: it's (concat S2 S), aka `str', which is
passed to TABLE, not (concat S1 S).


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#12347; Package emacs. (Tue, 11 Sep 2012 17:45:01 GMT) Full text and rfc822 format available.

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

From: Bastien <bzg <at> altern.org>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: 12347 <at> debbugs.gnu.org
Subject: Re: bug#12347: 24.2.50; doc of `completion-table-subvert'
Date: Tue, 11 Sep 2012 19:43:38 +0200
Stefan Monnier <monnier <at> IRO.UMontreal.CA> writes:

>> -form (concat S1 S) in the same way as TABLE completes strings of
>> -the form (concat S2 S)."
>> +form (concat S2 S) in the same way as TABLE completes strings of
>> +the form (concat S1 S)."
>
> That's wrong.  Check the code: it's (concat S2 S), aka `str', which is
> passed to TABLE, not (concat S1 S).

Indeed.  Fixed,

-- 
 Bastien




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 10 Oct 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 253 days ago.

Previous Next


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