summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Arroyo Menéndez <davidam@es.gnu.org>2016-01-25 15:36:22 +0100
committerDavid Arroyo Menéndez <davidam@es.gnu.org>2016-01-25 15:36:22 +0100
commitc74b99a75b26f3ee3ee296ba9996afcbd6f915de (patch)
tree19f13716b8436f6f95e7b419ffbd5ba1b70b8235
parent26fb4fa54e2bcc6c9ff29c49f68640c49c3c305a (diff)
parent61db4483f8fb7e171117550055ff1d10fc730c77 (diff)
downloadorg-mode-c74b99a75b26f3ee3ee296ba9996afcbd6f915de.tar.gz
Merge branch 'master' of orgmode.org:org-mode
-rw-r--r--lisp/org.el24
1 files changed, 10 insertions, 14 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 934cbe1..852a43a 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5801,24 +5801,20 @@ prompted for."
(defun org-activate-plain-links (limit)
"Add link properties for plain links."
- (let (f hl)
- (when (and (re-search-forward (concat org-plain-link-re) limit t)
- (not (memq 'org-tag
- (get-text-property
- (max (1- (match-beginning 0)) (point-min)) 'face)))
- (not (org-in-src-block-p)))
- (org-remove-flyspell-overlays-in (match-beginning 0) (match-end 0))
- (setq f (get-text-property (match-beginning 0) 'face))
- (setq hl (org-match-string-no-properties 0))
- (unless (or (eq f 'org-tag)
- (and (listp f) (memq 'org-tag f)))
+ (when (and (re-search-forward org-plain-link-re limit t)
+ (not (org-in-src-block-p)))
+ (let ((face (get-text-property (max (1- (match-beginning 0)) (point-min))
+ 'face))
+ (link (org-match-string-no-properties 0)))
+ (when (if (consp face) (memq 'org-tag face) (eq 'org-tag face))
+ (org-remove-flyspell-overlays-in (match-beginning 0) (match-end 0))
(add-text-properties (match-beginning 0) (match-end 0)
(list 'mouse-face 'highlight
'face 'org-link
- 'htmlize-link `(:uri ,hl)
+ 'htmlize-link `(:uri ,link)
'keymap org-mouse-map))
- (org-rear-nonsticky-at (match-end 0)))
- t)))
+ (org-rear-nonsticky-at (match-end 0))
+ t))))
(defun org-activate-code (limit)
(when (re-search-forward "^[ \t]*\\(:\\(?: .*\\|$\\)\n?\\)" limit t)