all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Du Yanning <duyanning@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-src-font-lock-fontify-block does NOT copy the default face
Date: Tue, 26 Apr 2011 11:09:40 +0800	[thread overview]
Message-ID: <BANLkTikLGE-k8wk8RB3jFLSJvCWKJ7TC5Q@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 785 bytes --]

when org-src-font-lock-fontify-block copies text from the buffer named "
org-src-fontification:c++-mode" to code block,
#+BEGIN_SRC c++
  void foo()
  {
  }
#+END_SRC
it copies face text properties of strings at the same time.
However, face text property relies on the default face of the source buffer.
If the default face of the source buffer and the default face of the target
buffer is different,
text in source blocks will have different appearances than the source buffer
depending on the default faces.

Also, if  I use buffer-face-set in the org-mode buffer, text in code block
will change too.

I think it is better to incorporate the default face of c++-mode buffer to
the face of text in code block in
org-mode buffer when copy string using org-src-font-lock-fontify-block.

[-- Attachment #2: Type: text/html, Size: 860 bytes --]

                 reply	other threads:[~2011-04-26  3:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

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

  git send-email \
    --in-reply-to=BANLkTikLGE-k8wk8RB3jFLSJvCWKJ7TC5Q@mail.gmail.com \
    --to=duyanning@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.