all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Apply Emacs-Lisp `font-lock' rules to a string
@ 2015-08-24  3:19 Alexander Shukaev
  2015-08-24 20:07 ` Emanuel Berg
  2015-08-24 20:23 ` John Mastro
  0 siblings, 2 replies; 8+ messages in thread
From: Alexander Shukaev @ 2015-08-24  3:19 UTC (permalink / raw)
  To: help-gnu-emacs

Assume I have a string somewhere in Emacs-Lisp program.  I want this
string to be propertized in such a way that when I display this string
somewhere, it should have identical highlighting as if it would have
been typed in Emacs-Lisp major mode (with `font-lock').

To expand on the problem, I have a string which contains regular
expression, which I display in the echo area.  It would be nice to
apply standard highlighting to it.  Is there any way to achieve this
smoothly (preferably with one or a few calls to built-in functions)?
Thanks.

Regards,
Alexander



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

end of thread, other threads:[~2015-08-26  0:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-24  3:19 Apply Emacs-Lisp `font-lock' rules to a string Alexander Shukaev
2015-08-24 20:07 ` Emanuel Berg
2015-08-24 20:23 ` John Mastro
2015-08-24 20:29   ` Alexander Shukaev
2015-08-24 20:39     ` John Mastro
2015-08-24 20:40       ` John Mastro
2015-08-25 22:38         ` Alexander Shukaev
2015-08-26  0:09           ` Alexander Shukaev

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.