From mboxrd@z Thu Jan 1 00:00:00 1970 From: Phil Jackson Subject: Re: [BUG?] org-open-file cannot handle spaces in file name? Date: Tue, 29 Jan 2008 16:12:56 +0000 Message-ID: <87bq743913.fsf@shellarchive.co.uk> References: <878x29wojh.fsf@columbia.edu> <87k5ltfsav.fsf@shellarchive.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JJt55-00076N-GG for emacs-orgmode@gnu.org; Tue, 29 Jan 2008 11:13:03 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JJt53-00076B-57 for emacs-orgmode@gnu.org; Tue, 29 Jan 2008 11:13:02 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJt52-000768-Vt for emacs-orgmode@gnu.org; Tue, 29 Jan 2008 11:13:01 -0500 Received: from a.painless.aaisp.net.uk ([81.187.30.51]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JJt52-0006U9-Li for emacs-orgmode@gnu.org; Tue, 29 Jan 2008 11:13:00 -0500 Received: from 241.28.187.81.in-addr.arpa ([81.187.28.241] helo=phil-desktop) by a.painless.aaisp.net.uk with esmtp (Exim 4.62) (envelope-from ) id 1JJt50-0005S2-MT for emacs-orgmode@gnu.org; Tue, 29 Jan 2008 16:12:58 +0000 In-Reply-To: <87k5ltfsav.fsf@shellarchive.co.uk> (Phil Jackson's message of "Mon, 28 Jan 2008 23:23:36 +0000") 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: emacs-orgmode@gnu.org 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]] ,----[ 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