all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-src-font-lock-fontify-block does NOT copy the default face
@ 2011-04-26  3:09 Du Yanning
  0 siblings, 0 replies; only message in thread
From: Du Yanning @ 2011-04-26  3:09 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-26  3:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-26  3:09 org-src-font-lock-fontify-block does NOT copy the default face Du Yanning

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.