[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: c-update-modeline format for c-block-comment-flag
From: |
Alan Mackenzie |
Subject: |
Re: c-update-modeline format for c-block-comment-flag |
Date: |
Fri, 13 Oct 2017 14:45:54 +0000 |
User-agent: |
Mutt/1.7.2 (2016-11-26) |
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).