From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Baier Newsgroups: gmane.emacs.help Subject: Re: Launch application with region as a parameter Date: Tue, 07 Oct 2014 18:28:11 +0200 Message-ID: <87bnpn26as.fsf@mailbox.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412699342 22191 80.91.229.3 (7 Oct 2014 16:29:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2014 16:29:02 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: twiki Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 07 18:28:56 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 1XbXd8-0007lW-5n for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Oct 2014 18:28:54 +0200 Original-Received: from localhost ([::1]:59835 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbXd7-00032S-Pn for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Oct 2014 12:28:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbXcq-00030L-3U for help-gnu-emacs@gnu.org; Tue, 07 Oct 2014 12:28:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbXcj-0008Ml-R2 for help-gnu-emacs@gnu.org; Tue, 07 Oct 2014 12:28:36 -0400 Original-Received: from mx1.mailbox.org ([80.241.60.212]:50358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbXcj-0008Mc-H9 for help-gnu-emacs@gnu.org; Tue, 07 Oct 2014 12:28:29 -0400 Original-Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 6C14342513; Tue, 7 Oct 2014 18:28:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mailbox.org; h= content-type:content-type:mime-version:user-agent:message-id :in-reply-to:date:date:references:subject:subject:from:from :received; s=mail20140220; t=1412699305; bh=R5a10flOo7aqPMlLViDU 9JY5wsYPPYfi0B+H5ecwFIQ=; b=ASZic89kNA8vY9bqiDEhMJKghEtIGAwEySgb mpx834Os7Z15Si8Jpadznzv6gBhpU1zXhui4oMPLKfxW2ccFhbxzy/PkX0nd5EJy 4d8NsLkcGdN7tE6Sc2toMvBJJ0qmOGAOGR3EXWzrBXDT1yhDMoKwqSgNb0SlOBgK nJ9YkOA7DoPILse8sMPVtzatB24erCooNrrM3y4FUjmhCvaGA+4GNtUfaRVvvLK1 HZgiMkcW6q76drPmFF6qeYBBuXHUVKe1ZEJRrO0ZAg8BPuOV5Jbkqte2eYBQnhny VIlUDou3zuTHlDcH0k9a2NqfLb19U6xMr7vR2WxilPqbsGi1kRpNr4rnF2Azp27H hC3iUWNT6JgiGE4PMkGFUxB7gTm0bVYZgAISBFgsdu8kWy8AApVjTvPWeZV1r01E Atb9KiywC8Ds8OShjToByHAMyDXsenELaJqD6kWBF8qW7J04UFuGvS6Pn3rgxWJq l0hVANVcvl8DPOtJrT65pmSZhGan0bdnztrBCBGFaNgSor684DcOfmDrUhcq19PA j9NSRELCgjbHnH+KUpbgSvKC9HfahShe5F2Wov+ZipwN7 X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp1.mailbox.org ([80.241.60.240]) (using TLS with cipher AES256-GCM-SHA384) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTPS id TtFnLkaQ0d8E; Tue, 7 Oct 2014 18:28:25 +0200 (CEST) Mail-Followup-To: twiki , help-gnu-emacs@gnu.org In-Reply-To: (twiki's message of "Tue, 7 Oct 2014 08:54:11 -0700 (PDT)") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.241.60.212 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:100326 Archived-At: On 2014-10-07 17:54 twiki wrote: > 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 > ... I am not completely sure what it is that you are trying to do. If you want to get the entire line you can do (thing-at-point 'line). I don't know what you mean by "quoted". Regards, -- Alexander Baier