[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Launch application with region as a parameter

From: Alexander Baier
Subject: Re: Launch application with region as a parameter
Date: Tue, 07 Oct 2014 18:28:11 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux)

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

Alexander Baier

reply via email to

[Prev in Thread] Current Thread [Next in Thread]