unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Propertizing the minor-mode-alist
@ 2004-09-16 11:57 James Clark
  2004-09-16 14:00 ` Stefan
  0 siblings, 1 reply; 24+ messages in thread
From: James Clark @ 2004-09-16 11:57 UTC (permalink / raw)


In the current CVS emacs, the default mode-line-format propertizes
minor-mode-alist like this:

     `(:propertize ("" minor-mode-alist)
		   help-echo "mouse-2: help for minor modes, mouse-3: minor mode menu"
		   local-map ,mode-line-minor-mode-keymap)

This causes a problem in nxml-mode.  One of the features of nxml-mode is
that it optionally does continuous background validation. The part of
nxml-mode that does this is implemented as minor-mode and it displays
the current validation status by adding an element using :eval to
minor-mode-alist.  When the status is invalid, it returns a propertized
string with local-map and help-echo properties, which allows the user to
click on the word Invalid in the mode-line and go to the first error
detected in the document.  This worked fine in 21.3 but no longer works
in the CVS version presumably because the properties nxml-mode that adds
are overridden by the :propertize in minor-mode-alist.

Perhaps there could be a new keyword :propertize-default that changes
the text properties of only those characters in the string that do not
already have a value for any of the specified properties. Or maybe this
should be the behavior of :propertize.   If you tell me how you would
like to fix this, I will be happy to have a go at implementing it.

James
-- 
To send me mail, replace auth-only by public in the from address. 

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

end of thread, other threads:[~2004-09-24 12:08 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-16 11:57 Propertizing the minor-mode-alist James Clark
2004-09-16 14:00 ` Stefan
2004-09-17  2:32   ` James Clark
2004-09-17  3:46     ` Stefan
2004-09-17 21:52     ` Kim F. Storm
2004-09-18 19:07       ` Richard Stallman
2004-09-17 23:23     ` Richard Stallman
2004-09-18  2:50       ` James Clark
2004-09-18 22:55         ` Richard Stallman
2004-09-19  6:07           ` David Kastrup
2004-09-19  6:35           ` James Clark
2004-09-20  0:05             ` Richard Stallman
2004-09-20  2:29               ` James Clark
2004-09-20 10:56                 ` Kai Grossjohann
2004-09-21 18:31                 ` Richard Stallman
2004-09-22  7:30                   ` James Clark
2004-09-22 13:23                     ` Stefan Monnier
2004-09-22 14:02                       ` James Clark
2004-09-22 16:31                         ` Stefan Monnier
2004-09-23  9:29                     ` Richard Stallman
2004-09-23 13:15                       ` James Clark
2004-09-24 12:08                         ` Richard Stallman
2004-09-18 10:52       ` James Clark
2004-09-18 21:06         ` Stefan

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