bbatsov / prelude

Prelude is an enhanced Emacs 25.1+ distribution that should make your experience with Emacs both more pleasant and more powerful.
https://prelude.emacsredux.com
5.1k stars 1.85k forks source link

Receive "Symbol's value as variable is void: kill-region" with Emacs 29.0.50 #1351

Open hungptit opened 2 years ago

hungptit commented 2 years ago

Expected behavior

Emacs can start successfully.

Actual behavior

I receive the below error message when starting Emacs 29.0.50.

Symbol's value as variable is void: kill-region

Steps to reproduce the problem

The problem will go away if we

Environment & Version information

Emacs version

GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0) of 2021-12-20

Operating system

Gentoo Linux.

I can also reproduce this issue on Centos 7.8 and macOS.

billsacks commented 2 years ago

I also received this error when native comp was trying to compile the prelude code with emacs 28. I found that adding

(require 'crux)

just before

(crux-with-region-or-line kill-region)

solved the issue.

hungptit commented 2 years ago

@billsacks Thanks a lot for your suggestion. I have pulled a simple MR using your suggested fix here

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding!