mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-31 17:30:54 -08:00
(org-open-at-point): Fixed bug in wiki-style bracket links.
This commit is contained in:
parent
9ed8b6cb4a
commit
c0434d3b46
2 changed files with 7 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue