all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* c-update-modeline format for c-block-comment-flag
@ 2017-10-13 10:24 Andy Moreton
  2017-10-13 12:24 ` Eli Zaretskii
  2017-10-13 14:45 ` Alan Mackenzie
  0 siblings, 2 replies; 6+ messages in thread
From: Andy Moreton @ 2017-10-13 10:24 UTC (permalink / raw)
  To: emacs-devel

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




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-10-13 16:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-13 10:24 c-update-modeline format for c-block-comment-flag Andy Moreton
2017-10-13 12:24 ` Eli Zaretskii
2017-10-13 14:45 ` Alan Mackenzie
2017-10-13 15:20   ` Andy Moreton
2017-10-13 15:36     ` Alan Mackenzie
2017-10-13 16:25       ` Andy Moreton

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.