From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rami A Newsgroups: gmane.emacs.help Subject: Re: Shortcut to compile "highlighted Text/Tag" Date: Fri, 19 Apr 2013 13:46:27 -0700 (PDT) Message-ID: <4b900f10-5c84-44c0-8ad0-4330995710b3@googlegroups.com> References: <77c0a5fe-681f-450f-8a43-086d664fcd83@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1366406646 6526 80.91.229.3 (19 Apr 2013 21:24:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Apr 2013 21:24:06 +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:24:10 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 1UTIms-0004bp-RW for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Apr 2013 23:24:06 +0200 Original-Received: from localhost ([::1]:44823 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTIms-0005XP-DC for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Apr 2013 17:24:06 -0400 X-Received: by 10.224.88.200 with SMTP id b8mr11888947qam.8.1366404388162; Fri, 19 Apr 2013 13:46:28 -0700 (PDT) X-Received: by 10.50.41.67 with SMTP id d3mr2718249igl.4.1366404388125; Fri, 19 Apr 2013 13:46:28 -0700 (PDT) Original-Path: usenet.stanford.edu!cj1no7030820qab.0!news-out.google.com!ef9ni2qab.0!nntp.google.com!gp5no3127558qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=148.87.19.198; posting-account=HZ4YzgoAAABkTSCruZ7Bs4hufjlOUmBF Original-NNTP-Posting-Host: 148.87.19.198 User-Agent: G2/1.0 Injection-Date: Fri, 19 Apr 2013 20:46:28 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:197997 X-Mailman-Approved-At: Fri, 19 Apr 2013 17:23:41 -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:90263 Archived-At: 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.