mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-04 11:40:22 +00:00
(org-open-at-point): Fixed bug in wiki-style bracket links.
This commit is contained in:
parent
9ed8b6cb4a
commit
c0434d3b46
@ -1,6 +1,6 @@
|
||||
2006-03-21 Carsten Dominik <dominik@science.uva.nl>
|
||||
|
||||
* textmodes/org.el: (org-open-at-point): Fixed bug in wiki-stype
|
||||
* textmodes/org.el: (org-open-at-point): Fixed bug in wiki-style
|
||||
bracket links.
|
||||
|
||||
2006-03-21 Kim F. Storm <storm@cua.dk>
|
||||
|
@ -6833,8 +6833,8 @@ optional argument IN-EMACS is non-nil, Emacs will visit the file."
|
||||
(while (string-match " *\n *" link)
|
||||
(setq link (replace-match " " t t link)))
|
||||
(if (string-match org-link-regexp link)
|
||||
(setq type (match-string 1)
|
||||
path (match-string 2))
|
||||
(setq type (match-string 1 link)
|
||||
path (match-string 2 link))
|
||||
(setq type "thisfile"
|
||||
path link))
|
||||
(throw 'match t)))
|
||||
@ -6893,6 +6893,10 @@ optional argument IN-EMACS is non-nil, Emacs will visit the file."
|
||||
|
||||
(cond
|
||||
|
||||
((member type '("http" "https" "ftp" "mailto" "news"))
|
||||
;; give these to some browser
|
||||
(browse-url (concat type ":" path)))
|
||||
|
||||
((string= type "tags")
|
||||
(org-tags-view in-emacs path))
|
||||
((or (string= type "camel")
|
||||
|
Loading…
Reference in New Issue
Block a user