unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Is this possible/how do I?
@ 2020-12-01 15:47 Arthur Miller
  2020-12-01 16:02 ` Stefan Monnier
  2020-12-01 16:07 ` Andreas Schwab
  0 siblings, 2 replies; 5+ messages in thread
From: Arthur Miller @ 2020-12-01 15:47 UTC (permalink / raw)
  To: emacs-devel

I am trying to font-lock a buffer and append the buffer content to
another buffer in different major mode (an org-buffer -> dired buffer).

My strategy was to open buffer in temp-buffer; insert content, activate
major mode, make it do it's own magic and then just copy text with
properties. Yeah, right; no free-lunch seems lilke.

The buffer does not seem to be font-locked despite major mode (org-mode)
enabled in that buffer. Is font-lock run only when text is displayed
i.e. when I switch-to-buffer?

1. Is there any way to get it to font-lock when not displayed?

Once both buffered are font-locked; if I turn off font-locking than
those text properties are not shown; seems like font-lock has it's own
set of text properties?

2. Do I have to copy those, or is there any other way to get those two
buffers to be displayed as font-lock, without a particual major mode
font-locking active?

I am sorry if this is too noob question, it is just lots to read; I have
been experimenting, but I am not really into the details of font locking
and text properties yet.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-12-01 23:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-01 15:47 Is this possible/how do I? Arthur Miller
2020-12-01 16:02 ` Stefan Monnier
2020-12-01 19:12   ` arthur miller
2020-12-01 16:07 ` Andreas Schwab
2020-12-01 23:11   ` arthur miller

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.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).