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.

Full log


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

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.