From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: scame@fastmail.fm Newsgroups: gmane.emacs.help Subject: Re: Run Shell Command on Buffer Date: Thu, 25 Jan 2007 01:01:01 +0100 Message-ID: <1169683261.8948.1171086063@webmail.messagingengine.com> References: <51q2rgF1l2pk6U1@mid.individual.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1169684287 11285 80.91.229.12 (25 Jan 2007 00:18:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Jan 2007 00:18:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 25 01:18:06 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H9sJZ-0004Jh-V2 for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jan 2007 01:18:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H9sJZ-0003yB-Bv for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Jan 2007 19:18:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H9sJN-0003y5-Hl for help-gnu-emacs@gnu.org; Wed, 24 Jan 2007 19:17:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H9sJM-0003xt-2n for help-gnu-emacs@gnu.org; Wed, 24 Jan 2007 19:17:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H9sJL-0003xq-VO for help-gnu-emacs@gnu.org; Wed, 24 Jan 2007 19:17:51 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H9sJL-0000Rn-MZ for help-gnu-emacs@gnu.org; Wed, 24 Jan 2007 19:17:51 -0500 Original-Received: from out4.smtp.messagingengine.com ([66.111.4.28]) by mx20.gnu.org with esmtp (Exim 4.52) id 1H9sJL-0005km-5A for help-gnu-emacs@gnu.org; Wed, 24 Jan 2007 19:17:51 -0500 Original-Received: from out1.internal (unknown [10.202.2.149]) by out1.messagingengine.com (Postfix) with ESMTP id 3CBF495E7F for ; Wed, 24 Jan 2007 19:01:01 -0500 (EST) Original-Received: from web2.messagingengine.com ([10.202.2.211]) by out1.internal (MEProxy); Wed, 24 Jan 2007 19:01:01 -0500 Original-Received: by web2.messagingengine.com (Postfix, from userid 99) id 243BA119F8; Wed, 24 Jan 2007 19:01:01 -0500 (EST) X-Sasl-Enc: TyaUJtR8eNd/hDN9JdUoqSIl9y0dHcmpdSswnKEpDIvJ 1169683261 Content-Disposition: inline X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <51q2rgF1l2pk6U1@mid.individual.net> X-detected-kernel: Solaris 8 (1) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40619 Archived-At: That looks promising... is it possible to use the variable "inside" shell-command? I'm thinking of something like M-x shell-command grep 'bla' $buffer-file-name Thx, super-nub On Wed, 24 Jan 2007 22:58:57 +0100, "Marc Tfardy" said: > super-nub wrote: > > Hi! > > > > is there a shortcut to the file name of the current buffer > > (buffer-file-name) ;; function > > or > > buffer-file-name ;; variable > > > regards > > Marc > > _______________________________________________ > help-gnu-emacs mailing list > help-gnu-emacs@gnu.org > http://lists.gnu.org/mailman/listinfo/help-gnu-emacs