0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-07-15 23:16:27 +00:00

org.el (org-display-inline-images): allow more characters for image filenames.

Thanks to gregory@dynapse.com (Gregory J. Grubbs) for this patch.
This commit is contained in:
Bastien Guerry 2010-06-16 16:27:17 +02:00
parent 14b689946d
commit cdee45fa21

2
lisp/org.el Normal file → Executable file
View file

@ -15924,7 +15924,7 @@ BEG and END default to the buffer boundaries."
(widen)
(setq beg (or beg (point-min)) end (or end (point-max)))
(goto-char (point-min))
(let ((re (concat "\\[\\[\\(\\(file:\\)\\|\\([./~]\\)\\)\\([-+~./_0-9a-zA-Z]+"
(let ((re (concat "\\[\\[\\(\\(file:\\)\\|\\([./~]\\)\\)\\([-+~.:/\\_0-9a-zA-Z ]+"
(substring (org-image-file-name-regexp) 0 -2)
"\\)\\]" (if include-linked "" "\\]")))
old file ov img)