From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [BUG?] org-open-file cannot handle spaces in file name? Date: Thu, 31 Jan 2008 00:09:57 +0100 Message-ID: <3CA455F1-2580-4DE9-84A2-65E5D9EC8D51@science.uva.nl> References: <878x29wojh.fsf@columbia.edu> <87k5ltfsav.fsf@shellarchive.co.uk> <87bq743913.fsf@shellarchive.co.uk> Mime-Version: 1.0 (Apple Message framework v915) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKM4H-00033f-Fj for emacs-orgmode@gnu.org; Wed, 30 Jan 2008 18:10:09 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKM4E-00032c-ET for emacs-orgmode@gnu.org; Wed, 30 Jan 2008 18:10:09 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKM4E-00032Z-AZ for emacs-orgmode@gnu.org; Wed, 30 Jan 2008 18:10:06 -0500 Received: from fk-out-0910.google.com ([209.85.128.191]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JKM4D-0004Qs-TG for emacs-orgmode@gnu.org; Wed, 30 Jan 2008 18:10:06 -0500 Received: by fk-out-0910.google.com with SMTP id 26so413774fkx.10 for ; Wed, 30 Jan 2008 15:10:04 -0800 (PST) In-Reply-To: <87bq743913.fsf@shellarchive.co.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Phil Jackson Cc: emacs-orgmode@gnu.org On Jan 29, 2008, at 5:12 PM, Phil Jackson wrote: > Phil Jackson writes: > > [...] > >> I'll try with 22 tomorrow and see what I get. > > 22.1.50.1 (5.19a): > > [[file:~/this is a file with space.pdf]] Hi Phil, this is part of the problem, the link should look like this: > [[file:~/this%20is%02a%20file%20with%20space.pdf][file:~/this is a > file with space.pdf]] When you enter links with C-c C-l, this will be done automatically. There is also another bug here which you have discovered, I have fixed it for the next version. - Carsten > > > ,----[ trace ] > | Debugger entered--Lisp error: (args-out-of-range 34 35) > | replace-match("/home/pjackso1/this\\ is\\ a\\ file\\ with\\ > space.pdf" > | t t "evince %s") (setq cmd (replace-match (shell-quote-argument > file) > | t t cmd)) (while (string-match "%s" cmd) (setq cmd (replace-match > | ... t t cmd))) (cond ((and ... ...) (while ... ...) > (while ... ...) > | (save-window-excursion ...)) ((or $ (let* ((file ...) (apps ...) > (remp > | ...) (dirp ...) (dfile ...) (old-buffer ...) (old-po$ > | org-open-file("~/this is a file with space.pdf" nil nil nil) (if > | (string-match "[*?{]" (file-name-nondirectory path)) (dired path) > | (org-open-file pa$ (cond ((assoc type org-link-protocols) (funcall > | ... path)) ((equal type "mailto") (let $ (let (type path link line > | search (pos ...)) (catch (quote match) (save-excursion ... ..$ (if > | (org-at-timestamp-p t) (org-follow-timestamp-link) (let (type path > | link line search$ (catch (quote abort) (move-marker > | org-open-link-marker (point)) (setq org-window-config$ > | org-open-at-point(nil) call-interactively(org-open-at-point) > `---- > > > Cheers, > Phil > -- > Phil Jackson > http://www.shellarchive.co.uk > > > _______________________________________________ > 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