Skip to content

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

Description

@bommbo

Thank you for the bug report

  • I am using the latest version of doom-modeline related packages.
  • I checked FAQ.
  • 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

emacs-mirror/emacs@c6c4888 这次提交后,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

Anything else

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions