From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: c-update-modeline format for c-block-comment-flag Date: Fri, 13 Oct 2017 14:45:54 +0000 Message-ID: <20171013144554.GA3881@ACM> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1507906126 2208 195.159.176.226 (13 Oct 2017 14:48:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 13 Oct 2017 14:48:46 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: emacs-devel@gnu.org To: Andy Moreton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 13 16:48:37 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 1e31GM-0007B1-BR for ged-emacs-devel@m.gmane.org; Fri, 13 Oct 2017 16:48:34 +0200 Original-Received: from localhost ([::1]:50639 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e31GQ-0004mG-89 for ged-emacs-devel@m.gmane.org; Fri, 13 Oct 2017 10:48:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e31GJ-0004lu-8c for emacs-devel@gnu.org; Fri, 13 Oct 2017 10:48:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e31GC-0001UP-Rf for emacs-devel@gnu.org; Fri, 13 Oct 2017 10:48:31 -0400 Original-Received: from ocolin.muc.de ([193.149.48.4]:31949 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1e31GC-0001Mq-GQ for emacs-devel@gnu.org; Fri, 13 Oct 2017 10:48:24 -0400 Original-Received: (qmail 1002 invoked by uid 3782); 13 Oct 2017 14:48:19 -0000 Original-Received: from acm.muc.de (p548C7335.dip0.t-ipconnect.de [84.140.115.53]) by colin.muc.de (tmda-ofmipd) with ESMTP; Fri, 13 Oct 2017 16:48:19 +0200 Original-Received: (qmail 3900 invoked by uid 1000); 13 Oct 2017 14:45:54 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 193.149.48.4 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:219455 Archived-At: Hello, Andy. On Fri, Oct 13, 2017 at 11:24:03 +0100, Andy Moreton wrote: > Hi, > The handling of c-block-comment-flag in c-update-modeline is > unfortunate: > (defun c-update-modeline () > (let ((fmt (format "/%s%s%s%s%s" > (if c-block-comment-flag "*" "/") > (if c-electric-flag "l" "") > (if (and c-electric-flag c-auto-newline) > "a" "") > (if c-hungry-delete-key "h" "") > (if (and > ;; (cc-)subword might not be loaded. > (boundp 'c-subword-mode) > (symbol-value 'c-subword-mode)) > ;; FIXME: subword-mode already comes with its > ;; own lighter! > "w" > ""))) > This fixed "/" in the modeline string forces this submode lighter to be > always present, ..... How? What mechanism do you mean? > .... and prevents the diminish or delight packages from being able to > remove or replace this lighter. I'm not familiar with either of these packages. How does the fixed "/" prevent these packages from working? > Can this be fixed for emacs-26 ? What do you mean by "fixed", here? What do you want to do with this portion of the mode line, exactly? > AndyM -- Alan Mackenzie (Nuremberg, Germany).