mirror of
https://codeberg.org/scip/dot-emacs.git
synced 2025-12-17 12:30:59 +01:00
fix C-x C-e to properly support regions
This commit is contained in:
@@ -47,7 +47,13 @@
|
|||||||
(interactive)
|
(interactive)
|
||||||
(progn
|
(progn
|
||||||
(if mark-active
|
(if mark-active
|
||||||
(eval-region)
|
(progn
|
||||||
|
(let ((beg (mark))
|
||||||
|
(end (point)))
|
||||||
|
(when (> beg end) ;; point and mark are reversed
|
||||||
|
(setq beg (point)
|
||||||
|
end (mark)))
|
||||||
|
(eval-region beg end)))
|
||||||
(eval-buffer))))
|
(eval-buffer))))
|
||||||
|
|
||||||
(defun ff ()
|
(defun ff ()
|
||||||
|
|||||||
Reference in New Issue
Block a user