From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.devel Subject: Re: c-update-modeline format for c-block-comment-flag Date: Fri, 13 Oct 2017 17:25:03 +0100 Message-ID: References: <20171013144554.GA3881@ACM> <20171013153623.GB3881@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1507912832 23897 195.159.176.226 (13 Oct 2017 16:40:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 13 Oct 2017 16:40:32 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (windows-nt) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 13 18:40:25 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e330Y-0005FK-2r for ged-emacs-devel@m.gmane.org; Fri, 13 Oct 2017 18:40:22 +0200 Original-Received: from localhost ([::1]:51106 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e330f-0006Z5-3c for ged-emacs-devel@m.gmane.org; Fri, 13 Oct 2017 12:40:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e32mI-0003I7-JC for emacs-devel@gnu.org; Fri, 13 Oct 2017 12:25:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e32mD-00073J-M4 for emacs-devel@gnu.org; Fri, 13 Oct 2017 12:25:38 -0400 Original-Received: from [195.159.176.226] (port=44089 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e32mD-00072H-EV for emacs-devel@gnu.org; Fri, 13 Oct 2017 12:25:33 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1e32lp-0000C3-9Z for emacs-devel@gnu.org; Fri, 13 Oct 2017 18:25:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:ypdviMo3A2COatgcuSOuuh92hRc= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:219460 Archived-At: On Fri 13 Oct 2017, Alan Mackenzie wrote: > The lighter for these modes has "always" included a "/" followed by > status letters, where "always" means for at least 15 years. The "*" or > second "/" is a recent innovation to indicate the current default form of > comments. Most of those letters are disabled in my usage, so I notice it less. The mode reported by Dired has changed - that used to be "C" or "C++" in 25.3, but is now e.g. "C/*" or "C++//". It would perhaps be more flexible to configure these lighters as minor modes, e.g. to show the c style I have: (define-minor-mode c-show-style-mode "Minor mode to display the C indentation style in the mode line." :lighter (c-show-style-mode (" " (:propertize c-indentation-style face italic)))) (defun ajm:c-mode-common-init () (c-show-style-mode 1)) (add-hook 'c-mode-common-hook 'ajm:c-mode-common-init) AndyM