From: Bastien <bzg@altern.org>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 12347-done@debbugs.gnu.org
Subject: bug#12347: 24.2.50; doc of `completion-table-subvert'
Date: Tue, 11 Sep 2012 16:07:15 +0200 [thread overview]
Message-ID: <87mx0wr6uk.fsf@altern.org> (raw)
In-Reply-To: <8938DB99CE504167B8E9DC48D909DB4B@us.oracle.com> (Drew Adams's message of "Mon, 3 Sep 2012 20:03:18 -0700")
[-- Attachment #1: Type: text/plain, Size: 152 bytes --]
"Drew Adams" <drew.adams@oracle.com> writes:
> "Completion table that replaces the prefix S1 with S2 in STRING."
I applied the patch below.
Thanks,
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: minibuffer.el.patch --]
[-- Type: text/x-patch, Size: 826 bytes --]
=== 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))
[-- Attachment #3: Type: text/plain, Size: 14 bytes --]
--
Bastien
next prev parent reply other threads:[~2012-09-11 14:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-04 3:03 bug#12347: 24.2.50; doc of `completion-table-subvert' Drew Adams
2012-09-11 14:07 ` Bastien [this message]
2012-09-11 14:28 ` Drew Adams
2012-09-11 17:27 ` Stefan Monnier
2012-09-11 17:43 ` Bastien
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mx0wr6uk.fsf@altern.org \
--to=bzg@altern.org \
--cc=12347-done@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.