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

Get "The mark is not set now, so there is no region" when the first time open a buffer after latest restart use emacs daemon. #89

Open
zw963 opened this issue Feb 4, 2022 · 0 comments

Comments

@zw963
Copy link

zw963 commented Feb 4, 2022

Debugger entered--Lisp error: (error "The mark is not set now, so there is no region")
region-beginning()
byte-code("\10\203\11\0ed\10E\207\301 \302 \303E\207" [current-prefix-arg region-beginning region-end nil] 3)
call-interactively(untabify)
(if (member major-mode crux-untabify-sensitive-modes) nil (call-interactively #'untabify))
crux-cleanup-buffer-or-region()
funcall-interactively(crux-cleanup-buffer-or-region)
command-execute(crux-cleanup-buffer-or-region)

Expected behavior

crux-cleanup-buffer-or-region should clean/indent buffer instead raise The mark is not set now, so there is no region

Steps to reproduce the problem

  1. require crux
  2. binding crux-clean-buffer-or-region to a hotkey.
  3. restart emacs with emacs --daemon
  4. open a file buffer, invoke this binding key immediately
  5. get this error message.

Environment & Version information

github latest 6bfd212

crux version information

Include here the version string displayed by M-x crux-version. Here's an example:

crux version: 0.4

Emacs version

GNU Emacs 28.0.91 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.31, cairo version 1.17.4) of 2022-01-22

Operating system

Arch Linux.

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