Re: [Orgmode] BUG: org-open-file fails with multiple %s in mailcap entry

2008-01-03 Thread Carsten Dominik
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

Re: [Orgmode] BUG: org-open-file fails with multiple %s in mailcap entry

2008-01-03 Thread Adam Spiers
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-*$"

Re: [Orgmode] BUG: org-open-file fails with multiple %s in mailcap entry

2008-01-03 Thread Carsten Dominik
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

[Orgmode] BUG: org-open-file fails with multiple %s in mailcap entry

2007-12-22 Thread Adam Spiers
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['\"]"