emacs-devel
[Top][All Lists]
Advanced

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

c-update-modeline format for c-block-comment-flag


From: Andy Moreton
Subject: c-update-modeline format for c-block-comment-flag
Date: Fri, 13 Oct 2017 11:24:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (windows-nt)

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, and prevents the diminish or delight packages from being
able to remove or replace this lighter.

Can this be fixed for emacs-26 ?

   AndyM




reply via email to

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