From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: How to highlight matches in tab-completion? Date: Sat, 31 Jan 2015 18:37:54 -0800 (PST) Message-ID: <26b23cf0-06a3-4d29-af4a-23f3a7cc6cef@default> References: <87lhki8mdc.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1422758299 14216 80.91.229.3 (1 Feb 2015 02:38:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2015 02:38:19 +0000 (UTC) To: jenia.ivlev@gmail.com, help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 01 03:38:17 2015 Return-path: Envelope-to: geh-help-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 1YHkQT-0000dJ-DN for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Feb 2015 03:38:17 +0100 Original-Received: from localhost ([::1]:43363 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHkQS-00083A-OS for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jan 2015 21:38:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHkQH-00082C-KC for help-gnu-emacs@gnu.org; Sat, 31 Jan 2015 21:38:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHkQE-0002qh-AC for help-gnu-emacs@gnu.org; Sat, 31 Jan 2015 21:38:05 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:33699) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHkQE-0002qT-3u for help-gnu-emacs@gnu.org; Sat, 31 Jan 2015 21:38:02 -0500 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t112buSa006721 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 1 Feb 2015 02:37:56 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id t112btbf000296 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sun, 1 Feb 2015 02:37:55 GMT Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t112btJ9000510; Sun, 1 Feb 2015 02:37:55 GMT In-Reply-To: <87lhki8mdc.fsf@gmail.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102408 Archived-At: > How do I highlight the matched text in the tab-completion buffer? > For exmaple, when you press C-x b and then tab, you get a list of > possible matches in a buffer. How do highlight the matched text in each > suggestion? You should see a highlight using face `completions-common-part'. This highlights the longest prefix that matches each candidate, separately. It is thus not really a "common-part" match, in spite of its name. That is, the text highlighted for each candidate is not necessarily the same. You can use `M-x customize-face RET completions-common-part' to customize the appearance of the face. You can also customize face `completions-first-difference', which shows the first character after the common prefix. If you want to see something closer to highlighting of the longest common match among all candidates, this is provided by Icicles. http://www.emacswiki.org/emacs/Icicles_-_Expanded-Common-Match_Completion