emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Phil Jackson <phil@shellarchive.co.uk>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG?] org-open-file cannot handle spaces in file name?
Date: Thu, 31 Jan 2008 00:09:57 +0100	[thread overview]
Message-ID: <3CA455F1-2580-4DE9-84A2-65E5D9EC8D51@science.uva.nl> (raw)
In-Reply-To: <87bq743913.fsf@shellarchive.co.uk>


On Jan 29, 2008, at 5:12 PM, Phil Jackson wrote:

> 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]]

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

  reply	other threads:[~2008-01-30 23:10 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
2008-01-30 23:09     ` Carsten Dominik [this message]
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=3CA455F1-2580-4DE9-84A2-65E5D9EC8D51@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=phil@shellarchive.co.uk \
    /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).