emacs 28 mode-line 格式化标签问题

在 emacs mode-line 文档中说 %m 是显示 major mode 的。

image

在27中是正常的,最近手痒升到了28每日编译版,然后 这个标签失效了,现在是用 mode-name 替代,想问问大家有人遇到这个问题吗?怎么像原来 %m 一样只获取名称?

我的配置是这样的:

 ;; Mode line settings
(setq-default mode-line-format
              '("%e"
                mode-line-front-space
                (:eval (propertize " %Z%1*%1+ " 'face 'font-lock-preprocessor-face))
                ;; the buffer name; the file name as a tool tip
                (:eval (propertize " %12b " 'face 'font-lock-keyword-face))

                ;; line and column
                (:eval (propertize " (%l,%c) " 'face 'font-lock-type-face))

                ;; relative position, size of file
                (:eval (propertize " [%p/%I] " 'face 'font-lock-constant-face))

                ;; spaces to align right
                (:eval (propertize
                        " " 'display
                        `((space :align-to (- (+ right right-fringe right-margin)
                                              ,65)))))

                ;; data and time
                mode-line-misc-info

                ;; buffer encode
                (:eval (propertize (format " %s " buffer-file-coding-system) 'face 'font-lock-comment-face))

                ;; the current major mode
                ;; (:eval (propertize " %m " 'face 'font-lock-string-face))
                mode-name

                flycheck-mode-line

                ;; git info
                (vc-mode vc-mode)

                mode-line-end-spaces
                ))