emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Phil Jackson <phil@shellarchive.co.uk>
To: emacs-orgmode@gnu.org
Subject: Re: [BUG?] org-open-file cannot handle spaces in file name?
Date: Tue, 29 Jan 2008 16:12:56 +0000	[thread overview]
Message-ID: <87bq743913.fsf@shellarchive.co.uk> (raw)
In-Reply-To: <87k5ltfsav.fsf@shellarchive.co.uk> (Phil Jackson's message of "Mon, 28 Jan 2008 23:23:36 +0000")

Phil Jackson <phil@shellarchive.co.uk> 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

  parent reply	other threads:[~2008-01-29 16:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-28 22:52 [BUG?] org-open-file cannot handle spaces in file name? Xiao-Yong Jin
2008-01-28 23:23 ` Phil Jackson
2008-01-29  0:28   ` Xiao-Yong Jin
2008-01-29 16:12   ` Phil Jackson [this message]
2008-01-30 23:09     ` Carsten Dominik
2008-01-29  4:43 ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bq743913.fsf@shellarchive.co.uk \
    --to=phil@shellarchive.co.uk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).