From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gregor Zattler Newsgroups: gmane.emacs.help Subject: solved!, thanks (was: Re: how to force find-tag to first show exact hit?) Date: Tue, 13 Nov 2012 22:12:20 +0100 Message-ID: <20121113211220.GD2138@boo.workgroup> References: <20121112175453.GA11873@boo.workgroup> <871ufyi74v.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1352841350 5816 80.91.229.3 (13 Nov 2012 21:15:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Nov 2012 21:15:50 +0000 (UTC) To: Jambunathan K Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 13 22:16:01 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 1TYNpw-0006r9-Qd for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Nov 2012 22:16:00 +0100 Original-Received: from localhost ([::1]:59253 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYNpn-0006L3-0S for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Nov 2012 16:15:51 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYNpe-0006Ky-Jp for help-gnu-emacs@gnu.org; Tue, 13 Nov 2012 16:15:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYNpb-0007hP-Hi for help-gnu-emacs@gnu.org; Tue, 13 Nov 2012 16:15:42 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:47087) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TYNpb-0007gu-8W for help-gnu-emacs@gnu.org; Tue, 13 Nov 2012 16:15:39 -0500 Original-Received: (qmail invoked by alias); 13 Nov 2012 21:15:38 -0000 Original-Received: from p57BBB6A8.dip.t-dialin.net (EHLO boo.workgroup) [87.187.182.168] by mail.gmx.net (mp069) with SMTP; 13 Nov 2012 22:15:38 +0100 X-Authenticated: #19296480 X-Provags-ID: V01U2FsdGVkX18cHZsdIS4cPa3JlrgKCm/wu/e9cXOi9EPHjB3qJG FrDGQ3UVayfTP7 Original-Received: from grfz by boo.workgroup with local (Exim 4.80) (envelope-from ) id 1TYNpQ-0005Xv-JZ for help-gnu-emacs@gnu.org; Tue, 13 Nov 2012 22:15:28 +0100 Resent-From: Gregor Zattler Resent-Date: Tue, 13 Nov 2012 22:14:38 +0100 Resent-Message-ID: <20121113211438.GE2138@boo.workgroup> Resent-To: help-gnu-emacs@gnu.org X-Spam-grfz-Status: No, hits=-2.6 required=2.0 bayes=0.0000 tests=BAYES_00=-3.599, FREEMAIL_FROM=0.001, NO_RELAYS=-0.001, PLING_QUERY=0.994 autolearn=no version=3.3.2 date="Tue, 13 Nov 2012 22:13:14 +0100" languages= Original-Received: from grfz by boo.workgroup with local (Exim 4.80) (envelope-from ) id 1TYNnC-0005QF-Jx; Tue, 13 Nov 2012 22:13:10 +0100 Content-Disposition: inline In-Reply-To: <871ufyi74v.fsf@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-PROCMAIL-LASTFOLDER: /home/grfz/Mail/outbox/new/1352841194.20859_2.boo /home/grfz/Mail/inbox/new/1352841194.20859_3.boo /home/grfz/Mail/../.procmail/backup-post-mailmunge/new/1352841195.20859_0.boo X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 213.165.64.23 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:87677 Archived-At: Hi Jambunathan, Emacs users, * Jambunathan K [13. Nov. 2012]: > Gregor Zattler writes: >> 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) Great, that's it, especially C-x 4 F. Thanks a bundle, Gregor > 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 > Ciao, Gregor -- -... --- .-. . -.. ..--.. ...-.-