GNU bug report logs -
#2034
23.0.60; c-subword-mode incompatible with xml-mode
Previous Next
Reported by: me <at> rpatterson.net
Date: Sun, 25 Jan 2009 02:20:03 UTC
Severity: normal
Tags: notabug, wontfix
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #39 received at 2034 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
`c-update-modeline' in cc-cmds.el has a long-standing bug (and FIXME
comment) whereby a `mode-name' which is not a string will trigger
errors, on account of the function using string manipulations to add
the minor mode flags to the original `mode-name'.
This is what bug #2034 was originally about. i.e.:
> c-update-modeline: Wrong type argument: stringp,
> (sgml-xml-mode "XML" "SGML")
This new patch instead uses mode-line constructs to concatenate the
flags, thus eliminating the string manipulation code and this bug.
In the process I've added a user option to allow the user to choose
whether or not these flags should be displayed at all, as this was not
previously configurable.
e.g.: `c-update-modeline' will now convert the mode-name "C++" into
'("C++" (c-modeline-display-flags c-modeline-flags)); and it only
updates the buffer-local value of `c-modeline-flags' which is then
conditionally displayed based on option `c-modeline-display-flags'.
This bug fix also resolves an incompatibility with the `delight'
package in GNU ELPA, which wraps any targeted `mode-name' values
in additional mode line constructs, and consequently triggered the
`c-update-modeline' bug with its assumption of a string, when used
with any of the major modes in question.
In my testing thus far this new approach seems to work nicely.
-Phil
[0001-Support-mode-line-constructs-for-mode-name-in-c-mode.patch (text/x-patch, attachment)]
This bug report was last modified 6 years and 280 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.