From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Espen Newsgroups: gmane.emacs.help Subject: Re: Shortcut to compile "highlighted Text/Tag" Date: Fri, 19 Apr 2013 17:07:38 -0400 Organization: A noiseless patient Spider Message-ID: References: <77c0a5fe-681f-450f-8a43-086d664fcd83@googlegroups.com> <4b900f10-5c84-44c0-8ad0-4330995710b3@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1366406735 7425 80.91.229.3 (19 Apr 2013 21:25:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Apr 2013 21:25:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 19 23:25:40 2013 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 1UTIoM-0005mR-Nt for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Apr 2013 23:25:38 +0200 Original-Received: from localhost ([::1]:49919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTIoM-0008QW-9j for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Apr 2013 17:25:38 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Injection-Info: mx05.eternal-september.org; posting-host="b8816fa7300cd668c1c8ea38fc847e8a"; logging-data="2992"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Y1aHdM7Ix8de+vIAKvkjjRZAvdA+IHuM=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) Cancel-Lock: sha1:0eboGRm6ab5mqJlobJrGG5GX158= sha1:QGCenuz4fnHPEHeOa+1/dPU3ShU= Original-Xref: usenet.stanford.edu gnu.emacs.help:197998 X-Mailman-Approved-At: Fri, 19 Apr 2013 17:23:45 -0400 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:90264 Archived-At: Rami A writes: > Kevin, Dan, > Thanks for the information. > I am afraid my description of the problem was not clear. > > So I have F4 configured as to do compile. > (global-set-key [f4] 'compile) > > And I am setting the default compile command to be gid. > (setq compile-command "gid ") > > I am using mkid to create IDs for all variables, structures and functions. > > So now when I want to search for something I would hit F4 and then I see this in the command line: > compile command: gid > > Then I can insert what I want to search for in the source code right after gid. > > What I would like to achieve is a way to highlight the thing I want to > search for in the source code, hit F4 or something and have it apply > "compile command: gid " on the highlighted text. > > I hope this makes it more clear. I'm not familiar with mkid/gid.el Reading the instructions, it looks like they want you to type M-x gid not M-x compile so try: (global-set-key [f4] 'gid) -- Dan Espen