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
- require crux
- binding crux-clean-buffer-or-region to a hotkey.
- restart emacs with
emacs --daemon
- open a file buffer, invoke this binding key immediately
- 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:
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.
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 regionSteps to reproduce the problem
emacs --daemonEnvironment & Version information
github latest 6bfd212
crux version information
Include here the version string displayed by
M-x crux-version. Here's an example: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.