all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: twiki <lap7619@yahoo.it>
To: help-gnu-emacs@gnu.org
Subject: Re: Launch application with region as a parameter
Date: Tue, 7 Oct 2014 08:54:11 -0700 (PDT)	[thread overview]
Message-ID: <a7ba4764-462c-480e-b98d-402eed52b989@googlegroups.com> (raw)
In-Reply-To: <mailman.10602.1412638553.1147.help-gnu-emacs@gnu.org>

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 "<f11>") '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!)


  parent reply	other threads:[~2014-10-07 15:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-06 15:33 Launch application with region as a parameter twiki
2014-10-06 17:01 ` Alexander Baier
2014-10-06 23:35 ` Tak Kunihiro
     [not found] ` <mailman.10602.1412638553.1147.help-gnu-emacs@gnu.org>
2014-10-07 15:54   ` twiki [this message]
2014-10-07 16:28     ` Alexander Baier
     [not found]     ` <mailman.10652.1412699323.1147.help-gnu-emacs@gnu.org>
2014-10-07 16:54       ` twiki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a7ba4764-462c-480e-b98d-402eed52b989@googlegroups.com \
    --to=lap7619@yahoo.it \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.