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: Mon, 06 Oct 2014 19:01:01 +0200 Message-ID: <877g0djfoy.fsf@mailbox.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412614924 11204 80.91.229.3 (6 Oct 2014 17:02:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Oct 2014 17:02:04 +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 Mon Oct 06 19:01:58 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 1XbBfa-0002d5-H7 for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Oct 2014 19:01:58 +0200 Original-Received: from localhost ([::1]:53115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbBfa-0004g4-6t for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Oct 2014 13:01:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbBfJ-0004fS-Qz for help-gnu-emacs@gnu.org; Mon, 06 Oct 2014 13:01:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbBfD-0001Wp-J1 for help-gnu-emacs@gnu.org; Mon, 06 Oct 2014 13:01:41 -0400 Original-Received: from mx2.mailbox.org ([80.241.60.215]:40854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbBfD-0001WT-A7 for help-gnu-emacs@gnu.org; Mon, 06 Oct 2014 13:01:35 -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 mx2.mailbox.org (Postfix) with ESMTPS id 94697456C8; Mon, 6 Oct 2014 19:01:32 +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=1412614876; bh=7hpYuoFr1ru0dv9FTZsh KS+gAwnA+B+CbcHH4CPBIG8=; b=xH5yegNhM6og9Ju6WiR1daRFEnhg7W6nKnOL BzthpnTg/+RHE83iNMJWXUlOMCNkEp8Hf1HxufqSN3MSsSvKrl4YBs+CPqDcAsFV ZkVfstYftY006Keke3DYBG32XG0dT9wzTQelR/aiQACYxY38HgVHEwAZwx/4BTxr taHKekNWqumCV9A8626RSzI/8V5zQ1RskVtlo6LiixQN3o7vcdrPeZYvSxIyCTrj dfH8yXjDtM45jOsVFO/Wvz9bNTX6tR3nf1ebCnA0VRxVRb71giDAqx9OqYd6TAZq CB/p4Nx3Id72ZbIm+M6tzmVqxYDaUhDm24vtR8MXxJl5U0ldPWR1hZ1QCP3BTMuR UGZoXboBqllUlwpfY+MsmzzZbQlr6Nt0GIupogFNqfk63nXL0ZQ16Eynx6Wvi5Jy alccywqZm/0IuJFkQ+blJDS+HsQsy3L1kcHeyDdkV4yP7LSUl/Ty4AQdO0+4Y5Vk Twpt11R81b6NMDdFwNFxLm02wWXP1feI4G1Zl3XExUUz+eO1Nbry5ocVrwIE/xbp mD2HDDnqAi0CCIyRU4jYoHbq5aBeYE1RCdUzCwQxW/r0f 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 YNRkVXiuE6-b; Mon, 6 Oct 2014 19:01:16 +0200 (CEST) Mail-Followup-To: twiki , help-gnu-emacs@gnu.org In-Reply-To: (twiki's message of "Mon, 6 Oct 2014 08:33:10 -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.215 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:100312 Archived-At: On 2014-10-06 17:33 twiki wrote: > I've text-buffer and the cursor is here... > > ... > > bla bla bla c:\tmp\doc1.pdf bla bla bla > ^ > ... > > I want select this line and launch (with =C-c o=) Adobe Reader (or also) > on c:\tmp\doc1.pdf You could use (thing-at-point 'filename) to get the filename and then start-process or maybe async-shell-command to start Adobe Reader. HTH, -- Alexander Baier