On Jan 3, 2008, at 1:41 PM, Adam Spiers wrote:
On Thu, Jan 03, 2008 at 01:33:16PM +0100, Carsten Dominik wrote:
On Dec 22, 2007, at 1:30 PM, Adam Spiers wrote:
The use of format in org-open-file assumes that there will only ever
be a single '%s' in a mailcap entry:
(cond
((and (stringp cm
On Thu, Jan 03, 2008 at 01:33:16PM +0100, Carsten Dominik wrote:
> On Dec 22, 2007, at 1:30 PM, Adam Spiers wrote:
> >The use of format in org-open-file assumes that there will only ever
> >be a single '%s' in a mailcap entry:
> >
> > (cond
> >((and (stringp cmd) (not (string-match "^\\s-*$"
What are you proposing?
- Carsten
On Dec 22, 2007, at 1:30 PM, Adam Spiers wrote:
The use of format in org-open-file assumes that there will only ever
be a single '%s' in a mailcap entry:
(cond
((and (stringp cmd) (not (string-match "^\\s-*$" cmd)))
;; Remove quotes around the fil
The use of format in org-open-file assumes that there will only ever
be a single '%s' in a mailcap entry:
(cond
((and (stringp cmd) (not (string-match "^\\s-*$" cmd)))
;; Remove quotes around the file name - we'll use
shell-quote-argument.
(if (string-match "['\"]%s['\"]"