ITADN

[Bug] doom modeline and set-mark-command.

#826Openbommbo 创建于 2026-06-16
bug
B
bommbocommented
### Thank you for the bug report - [x] I am using the latest version of `doom-modeline` related packages. - [x] I checked [FAQ](https://github.com/seagle0128/doom-modeline#faq). - [x] You may also try reproduce the issue using clean environment and minimal configurations with the command `emacs -Q`. ### Bug description # Emacs version GNU Emacs 32.0.50 Development version 233b00a683a1 on master branch; # Configuration ``` (use-package doom-modeline :ensure t :init (setq doom-modeline-icon t doom-modeline-major-mode-icon t) :config (doom-modeline-mode 1)) ``` # describe 在https://github.com/emacs-mirror/emacs/commit/c6c4888ced296b6bda7752066df44d95f591cb06 这次提交后,set-mark-command被干扰,上下无法选择,左右没问题。将doom-modeline-string-pixel-width改动后修复。 ``` (with-eval-after-load 'doom-modeline-core (defun doom-modeline-string-pixel-width (str) "Return the width of STR in pixels using safe math calculation." (* (string-width str) (window-font-width nil 'mode-line) (if (display-graphic-p) 1.05 1.0)))) ``` ### Steps to reproduce 如上复刻 ### Expected behavior set-mark-command可以上下选择。 ### OS Linux ### Emacs Version 31 ### Emacs Configurations _No response_ ### Error callstack ```emacs-lisp ``` ### Anything else _No response_
0 条评论