Skip to content

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

Description

@zw963

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions