Alan Mackenzie <acm@...> writes:
> Hi, Emacs!
> On Sun, 26 Feb 2006, Richard Stallman wrote:
>> The issues with the Mode Name, and minor mode flags in the mode line are
>> still unresolved. On typing M-x smerge-mode, C Mode's flags (the "/la"
>> of "C/la") now stay with the major mode, but this is done by setting
>> mode-name to "C/la", a stop-gap solution at best.
>>Anyway, can't you achieve what you want with a local
>>binding for mode-line-modes? Or mode-line-process?
I don't see why we cannot just make a new variable for this.
After all, CC Mode is an important feature of Emacs.
Of course, this only works for 22.x and forward, but that's life :-)
*** bindings.el 06 Feb 2006 18:21:19 +0100 1.157
--- bindings.el 27 Feb 2006 10:03:17 +0100
*** 220,225 ****
--- 220,231 ----
(defvar mode-line-frame-identification '("-%F ")
"Mode-line control to describe the current frame.")
+ (defvar mode-line-submode nil "\
+ Mode-line control for displaying submodes of the major mode.
+ Normally nil in most modes, since there is no submode to display.")
+ (make-variable-buffer-local 'mode-line-submode)
(defvar mode-line-process nil "\
Mode-line control for displaying info on process status.
Normally nil in most modes, since there is no process to display.")
*** 313,318 ****
--- 319,325 ----
help-echo "mouse-1: major-mode-menu mouse-2: help for current major mode"
+ '("" mode-line-submode)
`(:propertize ("" minor-mode-alist)
Kim F. Storm <storm@...> http://www.cua.dk