all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Interface of prog-prettification
@ 2013-06-16  1:56 Juanma Barranquero
  2013-06-16  9:24 ` Ted Zlatanov
  0 siblings, 1 reply; 20+ messages in thread
From: Juanma Barranquero @ 2013-06-16  1:56 UTC (permalink / raw)
  To: Emacs developers

A few questions about the new prog-prettification.

- prog--prettify-font-lock-compose-symbol's docstring says:
  "Compose a sequence of ascii chars into a symbol."

It is really true that it must be a sequence of ASCII characters? Why?

- Docstring of prog-prettify-symbols says:
  "When set to an alist in the form `((STRING . CHARACTER)...)'"

But in fact, instead of CHARACTER you can use a string, and its
characters will be "composed" (stacked) together.

- I don't fully understand how the user is supposed to extend the
default modes' prog-prettification. What is the expected interface?
Customizing prog-prettify-symbols sets the value for all prog-derived
modes, but what if I want to use different prettifications for
different modes?

I tried adding (set (make-local-variable 'prog-prettify-symbols)
'(("my-symbol" . ?MYCHAR))) to the relevant mode-hook, but that does
not work.

pushing '("my-symbol" . ?MYCHAR) to the corresponding mode-specific
alist (lisp--prettify-symbols-alist,
cfengine3--prettify-symbols-alist, perl--prettify-symbols-alist, etc.)
works, but on one hand, these are internal, non-documented constants;
on the other hand, that does not help to separate lisp-mode from
emacs-lisp-mode, which are initialized from the same alist.

   Juanma



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

end of thread, other threads:[~2013-06-18 20:26 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-16  1:56 Interface of prog-prettification Juanma Barranquero
2013-06-16  9:24 ` Ted Zlatanov
2013-06-16  9:58   ` Juanma Barranquero
2013-06-16 22:58   ` Stefan Monnier
2013-06-16 23:41     ` Juanma Barranquero
2013-06-17  1:00       ` Stefan Monnier
2013-06-17  6:25         ` Ted Zlatanov
2013-06-16 23:46     ` Juanma Barranquero
2013-06-17  6:27     ` Ted Zlatanov
2013-06-17 14:31       ` Stefan Monnier
2013-06-17 16:04         ` Juanma Barranquero
2013-06-17 16:27           ` Stefan Monnier
2013-06-17 23:08             ` Juanma Barranquero
2013-06-18  1:00               ` Stefan Monnier
2013-06-18  1:38                 ` Juanma Barranquero
2013-06-18 15:02                   ` Ted Zlatanov
2013-06-18 19:17                     ` Stefan Monnier
2013-06-18 19:42                       ` Juanma Barranquero
2013-06-18 20:26                         ` Stefan Monnier
2013-06-17 19:13           ` Ted Zlatanov

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.