emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Anders Johansson <mejlaandersj@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH 1/1] org.el: Make faces org-quote and org-verse be appended
Date: Wed, 22 Feb 2017 13:18:52 +0100	[thread overview]
Message-ID: <87vas21k8k.fsf@gmail.com> (raw)
In-Reply-To: 871suqtuxy.fsf@gmail.com


This means fontification of emphasis, links etc. is kept in quote 
and
verse blocks even with org-fontify-quote-and-verse-blocks non-nil.

TINYCHANGE
---
 lisp/org.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index 3290a2b..282c078 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -5934,9 +5934,9 @@ by a #."
 							 '(org-block))))))) ; end of source 
 block
 	     ((not org-fontify-quote-and-verse-blocks))
 	     ((string= block-type "quote")
-	      (add-text-properties beg1 (min (point-max) (1+ end1)) 
           '(face org-quote)))
+	      (add-face-text-property beg1 (min (point-max) (1+ end1)) 
'org-quote t))
 	     ((string= block-type "verse")
-	      (add-text-properties beg1 (min (point-max) (1+ end1)) 
           '(face org-verse))))
+	      (add-face-text-property beg1 (min (point-max) (1+ end1)) 
'org-verse t)))
 	    (add-text-properties beg beg1 '(face 
 org-block-begin-line))
 	    (add-text-properties (min (point-max) (1+ end)) (min 
 (point-max) (1+ end1))
 				 '(face org-block-end-line))
-- 
2.11.1

  parent reply	other threads:[~2017-02-22 12:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-22  9:51 Why does quote and verse block fontification have to override local fontification? Anders Johansson
2017-02-22 10:51 ` Nicolas Goaziou
2017-02-22 12:18 ` Anders Johansson [this message]
2017-02-23 13:19   ` [PATCH 1/1] org.el: Make faces org-quote and org-verse be appended Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vas21k8k.fsf@gmail.com \
    --to=mejlaandersj@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).