From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.bugs Subject: bug#12347: 24.2.50; doc of `completion-table-subvert' Date: Tue, 11 Sep 2012 16:07:15 +0200 Message-ID: <87mx0wr6uk.fsf@altern.org> References: <8938DB99CE504167B8E9DC48D909DB4B@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1347372467 17146 80.91.229.3 (11 Sep 2012 14:07:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2012 14:07:47 +0000 (UTC) Cc: 12347-done@debbugs.gnu.org To: "Drew Adams" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 11 16:07:49 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TBR7z-0006NI-AD for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Sep 2012 16:07:47 +0200 Original-Received: from localhost ([::1]:41129 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBR7v-0004XC-HG for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Sep 2012 10:07:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57578) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBR7k-0004VV-Nz for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2012 10:07:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TBR7a-0004Zb-8l for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2012 10:07:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBR7a-0004ZR-4s for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2012 10:07:22 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TBR8E-0006Au-G2 for bug-gnu-emacs@gnu.org; Tue, 11 Sep 2012 10:08:02 -0400 Resent-From: Bastien Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Sep 2012 14:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 12347 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 12347@debbugs.gnu.org, bzg@altern.org Original-Received: via spool by 12347-done@debbugs.gnu.org id=D12347.134737248023726 (code D ref 12347); Tue, 11 Sep 2012 14:08:01 +0000 Original-Received: (at 12347-done) by debbugs.gnu.org; 11 Sep 2012 14:08:00 +0000 Original-Received: from localhost ([127.0.0.1]:54746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TBR8B-0006Ad-HV for submit@debbugs.gnu.org; Tue, 11 Sep 2012 10:08:00 -0400 Original-Received: from mail-we0-f172.google.com ([74.125.82.172]:38101) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TBR89-0006AW-Sj for 12347-done@debbugs.gnu.org; Tue, 11 Sep 2012 10:07:58 -0400 Original-Received: by weyu54 with SMTP id u54so326085wey.3 for <12347-done@debbugs.gnu.org>; Tue, 11 Sep 2012 07:07:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type; bh=QdFY36xh23xpmb8kQ/3Nzvv3zNtgnQ9P4oR/B9E5JHs=; b=A6o6Ydv4p4RFMjEk54CtTuqTY09zJnBWdODC5e4XcUTlkxlFXDbLg3SaH64lQlLpjh vttzfvRB/si7a0XaZzIYU2ZFQPgcEDPxa5p8tyBENDXwcp7Tzkq54Eorx2DrjRm+/DKW fJ0ehfNXjbcUH/y/eNPNFHahwyusi6WMmV/2CdMju0raRSTWMB/OoyQZY8HAzOY0s1Ga 74aF8+vWrZN8HhMoIYTpWQJpUlQJ+VsVVACqHlUHop0re5fNRxGC5jMlFlMZlZ/Grhje kF2qI5WppHYFdVuIhdZKpPwATVsRqj8E4JanCodHurpW4QQZ08mUs9Ea19xDfv9ct2sn 3y7A== Original-Received: by 10.216.198.137 with SMTP id v9mr10274020wen.116.1347372435246; Tue, 11 Sep 2012 07:07:15 -0700 (PDT) Original-Received: from myhost.localdomain (mar75-2-81-56-68-112.fbx.proxad.net. [81.56.68.112]) by mx.google.com with ESMTPS id o2sm4158327wiz.11.2012.09.11.07.07.12 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Sep 2012 07:07:14 -0700 (PDT) Original-Received: by myhost.localdomain (Postfix, from userid 1000) id 0ACEC89A2; Tue, 11 Sep 2012 16:07:15 +0200 (CEST) In-Reply-To: <8938DB99CE504167B8E9DC48D909DB4B@us.oracle.com> (Drew Adams's message of "Mon, 3 Sep 2012 20:03:18 -0700") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64106 Archived-At: --=-=-= Content-Type: text/plain "Drew Adams" writes: > "Completion table that replaces the prefix S1 with S2 in STRING." I applied the patch below. Thanks, --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=minibuffer.el.patch === 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)) --=-=-= Content-Type: text/plain -- Bastien --=-=-=--