[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CC Mode 5.31.3

From: Kim F. Storm
Subject: Re: CC Mode 5.31.3
Date: Mon, 27 Feb 2006 10:07:51 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Alan Mackenzie <address@hidden> 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"
                   mouse-face mode-line-highlight
                   local-map ,mode-line-major-mode-keymap)
+      '("" mode-line-submode)
       '("" mode-line-process)
       `(:propertize ("" minor-mode-alist)
                   mouse-face mode-line-highlight

Kim F. Storm <address@hidden> http://www.cua.dk

reply via email to

[Prev in Thread] Current Thread [Next in Thread]