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-*$" cmd))) > > ;; Remove quotes around the file name - we'll use > > shell-quote-argument. > > (if (string-match "['\"]%s['\"]" cmd) > > (setq cmd (replace-match "%s" t t cmd))) > > (setq cmd (format cmd (shell-quote-argument file))) > > > >However this is not necessarily the case, e.g. I have
[snipped] > What are you proposing? Simply that every occurrence of '%s' be replaced by the file, not just the first one. _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode