unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Combining face and map stuff
@ 2010-10-02 14:21 Lars Magne Ingebrigtsen
  2010-10-02 16:21 ` Chong Yidong
  2010-10-03 23:37 ` Stefan Monnier
  0 siblings, 2 replies; 20+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-02 14:21 UTC (permalink / raw)
  To: emacs-devel

It would often be convenient to say "this region should be in bold" and
"this partially overlapping region should also be italic", and so on.
I've been looking in the Emacs Lisp manual, but I can't find any utility
functions for doing stuff like that.  They all seem to start with a face
with some properties that you apply to a text, which isn't really what I
want.  So I would kinda of like...  a function that took a face, and
then "combined" it with any faces that were already in the region.
Possible?

Which reminds me of another thing.  I would like to define some commands
local to a region, which can be done with 'local-map in overlays or
'keymap in text properties.  But can I combine them, too, in possibly
overlapping regions, and get the aggregate keymap?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

end of thread, other threads:[~2010-10-13 12:42 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-02 14:21 Combining face and map stuff Lars Magne Ingebrigtsen
2010-10-02 16:21 ` Chong Yidong
2010-10-02 16:41   ` Lars Magne Ingebrigtsen
2010-10-03  2:04     ` Miles Bader
2010-10-03  4:16     ` Chong Yidong
2010-10-03 13:08       ` Lars Magne Ingebrigtsen
2010-10-03 23:37 ` Stefan Monnier
2010-10-04  7:56   ` Eli Zaretskii
2010-10-04  9:03     ` Miles Bader
2010-10-04  9:42       ` Eli Zaretskii
2010-10-05  0:12         ` Miles Bader
2010-10-05 23:43           ` Stefan Monnier
2010-10-06  3:57             ` Eli Zaretskii
2010-10-07  7:40               ` Stefan Monnier
2010-10-07 13:56                 ` Eli Zaretskii
2010-10-07 18:08                   ` Stefan Monnier
2010-10-12 19:09                     ` Eli Zaretskii
2010-10-12 20:23                       ` Stefan Monnier
2010-10-13 11:41                         ` Eli Zaretskii
2010-10-13 12:42                           ` Stefan Monnier

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).