all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alexander Baier <alexander.baier@mailbox.org>
To: twiki <lap7619@yahoo.it>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Launch application with region as a parameter
Date: Tue, 07 Oct 2014 18:28:11 +0200	[thread overview]
Message-ID: <87bnpn26as.fsf@mailbox.org> (raw)
In-Reply-To: <a7ba4764-462c-480e-b98d-402eed52b989@googlegroups.com> (twiki's message of "Tue, 7 Oct 2014 08:54:11 -0700 (PDT)")

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 "<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
> ...

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



  reply	other threads:[~2014-10-07 16:28 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
2014-10-07 16:28     ` Alexander Baier [this message]
     [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=87bnpn26as.fsf@mailbox.org \
    --to=alexander.baier@mailbox.org \
    --cc=help-gnu-emacs@gnu.org \
    --cc=lap7619@yahoo.it \
    /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.