From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: [PATCH] * lisp/org.el (org-set-font-lock-defaults): include link targets Date: Tue, 5 Mar 2013 23:07:01 -0500 Message-ID: <1362542821-24657-1-git-send-email-aaronecay@gmail.com> Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UD5dE-000654-EY for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 23:07:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UD5dC-00069z-Rb for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 23:07:08 -0500 Received: from mail-qa0-f45.google.com ([209.85.216.45]:50295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UD5dC-00069n-Nb for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 23:07:06 -0500 Received: by mail-qa0-f45.google.com with SMTP id g10so2312051qah.4 for ; Tue, 05 Mar 2013 20:07:06 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org The org-target face is created in org-faces.el, but never used for font-locking. This patch fixes that. --- lisp/org.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/org.el b/lisp/org.el index 3959c17..5399177 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -6056,6 +6056,8 @@ needs to be inserted at a specific position in the font-lock sequence.") (if (memq 'radio lk) '(org-activate-target-links (0 'org-link t))) (if (memq 'date lk) '(org-activate-dates (0 'org-date t))) (if (memq 'footnote lk) '(org-activate-footnote-links)) + ;; Link targets + (list org-any-target-regexp '(0 'org-target t)) '("^&?%%(.*\\|<%%([^>\n]*?>" (0 'org-sexp-date t)) '(org-hide-wide-columns (0 nil append)) ;; TODO keyword -- 1.8.1.5