From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.help Subject: Re: how to force find-tag to first show exact hit? Date: Tue, 13 Nov 2012 07:41:44 +0530 Message-ID: <871ufyi74v.fsf@gmail.com> References: <20121112175453.GA11873@boo.workgroup> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352772578 13235 80.91.229.3 (13 Nov 2012 02:09:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Nov 2012 02:09:38 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 13 03:09:49 2012 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 1TY5wh-00048K-BJ for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Nov 2012 03:09:47 +0100 Original-Received: from localhost ([::1]:56010 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TY5wX-0002Tn-5D for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Nov 2012 21:09:37 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TY5wO-0002TK-PX for help-gnu-emacs@gnu.org; Mon, 12 Nov 2012 21:09:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TY5wL-00034C-NM for help-gnu-emacs@gnu.org; Mon, 12 Nov 2012 21:09:28 -0500 Original-Received: from mail-pb0-f41.google.com ([209.85.160.41]:60246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TY5wL-000340-HD for help-gnu-emacs@gnu.org; Mon, 12 Nov 2012 21:09:25 -0500 Original-Received: by mail-pb0-f41.google.com with SMTP id xa7so1055381pbc.0 for ; Mon, 12 Nov 2012 18:09:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=D0Gr3c4yWxkhSYDI2Um6eqqLIyrROn/cE++jEbJl/oc=; b=mcoR3HHL+01xZbNfxNky8s9yhzwaQh3F5VGoQcyzhZeVtfEUCxBOdioc8p9b0hpEDu iCCnNd8H66NKHg4XXQ/rQYJjedNs+p7a+lJ0e6zFL4iOML+UYwW60D9C3GNkohyFUVRK Ius1DZ/T3dQR8IYCoiMgeMRqjJ+7OJqGbIWPoeOp9K+0G7ECMn2U21ViR5ev25GBU/+c UvMAH97ciY+ipG/vmr8+lopJEejSs53tkew4yfP1UER24/l4koy6qCEw0lNWPbOdaw6a EiMRQ9PPY/8d+nRZfWAZXA0NkJu8OiMIs4vtcdQwFRNyFIECM+VnDTcQMZ9E96gtk/DZ K/+Q== Original-Received: by 10.68.253.102 with SMTP id zz6mr62597485pbc.99.1352772564609; Mon, 12 Nov 2012 18:09:24 -0800 (PST) Original-Received: from debian-6.05 ([115.242.163.142]) by mx.google.com with ESMTPS id ms11sm5086956pbc.74.2012.11.12.18.09.21 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Nov 2012 18:09:23 -0800 (PST) In-Reply-To: <20121112175453.GA11873@boo.workgroup> (Gregor Zattler's message of "Mon, 12 Nov 2012 18:54:53 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.160.41 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:87668 Archived-At: Gregor Zattler writes: > Dear Emacs-users, > > if I do find-tag for e.g. `when' the first hit is > `quack-when-xemacs', the second `quack-when-gnuemacs', the third > `magit-commit-all-when-nothing-staged' ... and only the fourth > hit is `when' in subr.el. > > Is there a way to force find-tag to first show an exact hit? As long as your are in .el file, hit C-h f and C-h v while on a function/variable and follow the link to the file from within the Help buffer. Or you can add the following to your .emacs, (find-function-setup-keys) Then you can do `C-x F' to find a function, `C-x V' to find a variable or `C-x K' (for eg, C-x K C-x C-f) will jump directly to the command bound to that particular key sequence. There are other usefuly binding as below, ,---- | (defun find-function-setup-keys () | "Define some key bindings for the find-function family of functions." | (define-key ctl-x-map "F" 'find-function) | (define-key ctl-x-4-map "F" 'find-function-other-window) | (define-key ctl-x-5-map "F" 'find-function-other-frame) | (define-key ctl-x-map "K" 'find-function-on-key) | (define-key ctl-x-map "V" 'find-variable) | (define-key ctl-x-4-map "V" 'find-variable-other-window) | (define-key ctl-x-5-map "V" 'find-variable-other-frame)) `---- > Ciao, Gregor --