[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ergoemacs-mode e778e82 307/325: Take out debug echo AND
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ergoemacs-mode e778e82 307/325: Take out debug echo AND fix backward delete |
Date: |
Sat, 23 Oct 2021 18:49:17 -0400 (EDT) |
branch: externals/ergoemacs-mode
commit e778e820787d1873ba539efde6863997781cc5e3
Author: Matthew Fidler <514778+mattfidler@users.noreply.github.com>
Commit: Matthew Fidler <514778+mattfidler@users.noreply.github.com>
Take out debug echo AND fix backward delete
---
ergoemacs-cua.el | 6 ++----
ergoemacs-functions.el | 29 ++++++++++++++++-------------
2 files changed, 18 insertions(+), 17 deletions(-)
diff --git a/ergoemacs-cua.el b/ergoemacs-cua.el
index 6584e63..cf53284 100644
--- a/ergoemacs-cua.el
+++ b/ergoemacs-cua.el
@@ -132,11 +132,9 @@ This override is enabled for active regions before the
copy and paste are enable
(setq ergoemacs--ena-region-keymap nil
ergoemacs--ena-prefix-override-keymap nil
ergoemacs--ena-prefix-repeat-keymap nil
- ergoemacs-mode nil)
- (message "disable ergoemacs again"))
+ ergoemacs-mode nil))
(setq ergoemacs--temporary-disable nil
- ergoemacs-mode t))
- (message "enable ergoemacs again"))
+ ergoemacs-mode t)))
(when ergoemacs-mode
;; The prefix override (when mark-active) operates in three substates:
;; [1] Before using a prefix key
diff --git a/ergoemacs-functions.el b/ergoemacs-functions.el
index 14f6ffa..5066c60 100644
--- a/ergoemacs-functions.el
+++ b/ergoemacs-functions.el
@@ -114,16 +114,7 @@ REPEAT is the flag that tells it if is repeated
environmennt."
;; Push the key back on the event queue
(setq unread-command-events (list (cons 'no-record key))))
-(defun ergoemacs-kill-line (&optional arg)
- "Kill the rest of the (visual) line.
-This is often `kill-visual-line' or `kill-line'.
-
-The ARG was is used in the above functions, and is called by
-temporarily turning off `ergoemacs-mode' and then sending the
-emacs defualt kill line control k key to the `unread-command-events'"
- (interactive "P")
- (ergoemacs--send-emacs-key ?\C-k))
@@ -1132,14 +1123,26 @@ Subsequent calls expands the selection to larger
semantic unit."
;;; TEXT TRANSFORMATION RELATED
+(defun ergoemacs-kill-line (&optional arg)
+ "Kill the rest of the (visual) line.
+
+This is often `kill-visual-line' or `kill-line'.
+
+The ARG was is used in the above functions, and is called by
+temporarily turning off `ergoemacs-mode' and then sending the
+emacs defualt kill line control k key to the `unread-command-events'"
+ (interactive "P")
+ (ergoemacs--send-emacs-key ?\C-k))
+
(defun ergoemacs-kill-line-backward (&optional number)
"Kill text between the beginning of the line to the cursor position.
If there's no text, delete the previous line ending."
(interactive "p")
- (if (and (= number 1) (looking-back "\n" nil))
- (delete-char -1)
- (setq current-prefix-arg (- 1 number))
- (kill-line)))
+ (save-match-data
+ (if (looking-back "\n" nil)
+ (delete-char -1)
+ (setq current-prefix-arg '(0))
+ (ergoemacs--send-emacs-key ?\C-k))))
(defun ergoemacs-move-cursor-previous-pane (&optional number)
"Move cursor to the previous pane."
- [elpa] externals/ergoemacs-mode 8ea6d54 320/325: Some fixes for shift-select mode, (continued)
- [elpa] externals/ergoemacs-mode 8ea6d54 320/325: Some fixes for shift-select mode, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 6b1b60e 039/325: Cleanup, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode fdafbdf 049/325: Cleanup, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 2c3dbbf 098/325: Remove f1 binding and unused swiper(), Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 12a1552 259/325: Remove ergoemacs-timing, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 97ac03f 081/325: Resolve all of the :emacs keybindings in ergoemacs-themes, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 74ad06f 228/325: Remove deftheme, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode ba79935 258/325: Remove lookup and information about global map, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode a5febc9 291/325: Remove shift selection and try to fix C-S-x C-S-c, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode a9cea74 303/325: Make ergoemacs-describe-current-theme and "C-h '" work., Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode e778e82 307/325: Take out debug echo AND fix backward delete,
Stefan Monnier <=
- [elpa] externals/ergoemacs-mode 187b07d 315/325: Describe keys for the current buffer, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode de3c5e7 262/325: Restore isearch-mode-map, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 42833ac 264/325: Code cleanup, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode ac33443 265/325: Add back the M-n commands for the reduction keymap, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 29ebf6e 271/325: Add compilation mode map to catch some of greps keys, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 81466b3 284/325: Unwind protect the timer #505, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode a38e4f3 275/325: Add option for keeping emacs keys that are not overwritten by ergoemacs, Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 48c6d90 274/325: Merge branch 'mattfidler-master', Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 6c4b457 280/325: Add emacs type of command loop support., Stefan Monnier, 2021/10/23
- [elpa] externals/ergoemacs-mode 4a8da69 288/325: Bug fix for mark-active keymap, Stefan Monnier, 2021/10/23