Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sis 在 macOS 中会造成 global-mark-ring 一直为空 #72

Open
Eason0210 opened this issue Nov 11, 2023 · 0 comments
Open

sis 在 macOS 中会造成 global-mark-ring 一直为空 #72

Eason0210 opened this issue Nov 11, 2023 · 0 comments

Comments

@Eason0210
Copy link

Eason0210 commented Nov 11, 2023

@laishulu,

最近尝试使用 Emacs 的 Global Mark 时发现,按 C-SPC (set-mark-command)时,并不会把当前的 mark 保存到 global mark ring,查看 global-mark-ring 这个变量,永远是空的。

禁用 sis就正常了,同样配置,在 Windows 系统没问题。

重新步骤:

  1. 在 .emacs 中加入以下配置:
(setq package-archives
      '(("melpa" . "https://melpa.org/packages/")
        ("gnu" . "https://elpa.gnu.org/packages/")))

(when (featurep 'ns)
  (setq ns-command-modifier 'meta)
  (setq ns-alternate-modifier 'super))

(use-package sis
  :ensure t
  :demand t
  :config
  (when (featurep 'ns)
    (sis-ism-lazyman-config "com.apple.keylayout.ABC" "im.rime.inputmethod.Squirrel.Hans"))
  (sis-global-cursor-color-mode t)
  (sis-global-respect-mode t))
  1. 启动 Emacs
  2. 在任意光标位置按 C-SPC
  3. C-h v global-mark-ring 查看结果。

我这边测试的最新的 Emacs 30.0.50 和 Emacs 29.1:

GNU Emacs 30.0.50 (build 1, x86_64-apple-darwin23.1.0, NS appkit-2487.20 Version 14.1.1 (Build 23B81), git sha1 c9d77405747) of 2023-11-11
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=c9d7740574758d47c8864cbada5fd2a2b2ee8911

GNU Emacs 29.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G9323)) of 2023-08-17
https://emacsformacosx.com/emacs-builds/Emacs-29.1-1-universal.dmg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant