[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#2034: [PATCH] 27.0.50; Support mode line constructs for `mode-name'
From: |
Phil Sainty |
Subject: |
bug#2034: [PATCH] 27.0.50; Support mode line constructs for `mode-name' in c-mode |
Date: |
Wed, 4 Jul 2018 01:37:20 +1200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
On 03/07/18 10:53, Phil Sainty wrote:
> I'll write a revised patch to address these points.
An updated version is on branch origin/fix/bug-2034 with the
following change log.
Support mode line constructs for 'mode-name' in c-mode (bug#2034)
Also make the inclusion of minor mode flags in 'mode-name' optional.
* lisp/progmodes/cc-cmds.el (c-modeline-flags): New variable.
(c-modeline-flags-major-modes-processed): New variable.
(c-modeline-display-flags): New user option.
(c-update-modeline): Use them. Use mode line constructs, rather than
string concatenation, to optionally include minor mode flags in
'mode-name'.
* lisp/progmodes/cc-mode.el (c-submit-bug-report): Format 'mode-name'.
* lisp/progmodes/cc-styles.el (c-set-style): Format 'mode-name'.
* etc/NEWS: Mention new user option and behaviors.
* doc/misc/cc-mode.texi: Document 'c-modeline-display-flags'.