From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: twiki Newsgroups: gmane.emacs.help Subject: Re: Launch application with region as a parameter Date: Tue, 7 Oct 2014 08:54:11 -0700 (PDT) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1412697333 25093 80.91.229.3 (7 Oct 2014 15:55:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2014 15:55:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 07 17:55:27 2014 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 1XbX6l-0008E1-2R for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Oct 2014 17:55:27 +0200 Original-Received: from localhost ([::1]:59517 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbX6k-00033F-Pq for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Oct 2014 11:55:26 -0400 X-Received: by 10.236.148.2 with SMTP id u2mr1508299yhj.55.1412697251666; Tue, 07 Oct 2014 08:54:11 -0700 (PDT) X-Received: by 10.140.19.2 with SMTP id 2mr16043qgg.35.1412697251502; Tue, 07 Oct 2014 08:54:11 -0700 (PDT) Original-Path: usenet.stanford.edu!uq10no5806731igb.0!news-out.google.com!rp1ni22143igb.0!nntp.google.com!uq10no5806724igb.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=31.199.112.21; posting-account=wjp2oAoAAACzI4pv18VQXMxteESeFgB_ Original-NNTP-Posting-Host: 31.199.112.21 User-Agent: G2/1.0 Injection-Date: Tue, 07 Oct 2014 15:54:11 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:208049 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:100325 Archived-At: Ok... thax for suggestion... i've defined launch-command-at-point... (defun launch-command-at-point() "Launch associated application for current thing-at-point string" (interactive) (async-shell-command (thing-at-point 'filename))) (global-set-key (kbd "") 'launch-command-at-point) ...but i don't know how to grab the quoted entire line: i need/want to pass the entire line to async-shell-command: ... c:\dir1\subdir a\p1.pdf ... (grace for my english!)