[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/rec-mode 20c3d6f 51/98: Do not kill the preceding empty
From: |
Stefan Monnier |
Subject: |
[elpa] externals/rec-mode 20c3d6f 51/98: Do not kill the preceding empty line. |
Date: |
Thu, 12 Nov 2020 13:18:39 -0500 (EST) |
branch: externals/rec-mode
commit 20c3d6f9d9ee5d147f85264f120d8de20c320c9b
Author: Jose E. Marchesi <jemarch@gnu.org>
Commit: Antoine Kalmbach <ane@iki.fi>
Do not kill the preceding empty line.
---
etc/rec-mode.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/etc/rec-mode.el b/etc/rec-mode.el
index e09b3e7..a5f2b78 100644
--- a/etc/rec-mode.el
+++ b/etc/rec-mode.el
@@ -2012,7 +2012,7 @@ This command is especially useful with enumerated types."
(if (and begin-pos end-pos)
(progn
(copy-region-as-kill begin-pos end-pos)
- (message "Field copied to kill buffer"))
+ (message "Field copied to kill ring"))
(message "Not in a field"))))
(defun rec-cmd-kill-record ()
@@ -2022,9 +2022,10 @@ This command is especially useful with enumerated types."
(end-pos (rec-end-of-record-pos)))
(if (and begin-pos end-pos)
(progn
- (when (not (equal begin-pos (point-min)))
- ;; Delete the newline before the record as well.
- (setq begin-pos (- begin-pos 1)))
+ (when (looking-back "^[ \t]*")
+ ;; Delete the newline before the record as well, but do
+ ;; not include it in the kill ring.
+ (delete-region (match-beginning 0) (+ (match-end 0) 1)))
(kill-region begin-pos end-pos))
(message "Not in a record"))))
@@ -2036,7 +2037,7 @@ This command is especially useful with enumerated types."
(if (and begin-pos end-pos)
(progn
(copy-region-as-kill begin-pos end-pos)
- (message "record copied to kill buffer"))
+ (message "record copied to kill ring"))
(message "Not in a record"))))
;;;; Definition of modes
- [elpa] externals/rec-mode 3e2f5a7 46/98: rec-mode: support for multiple field names in %type entries., (continued)
- [elpa] externals/rec-mode 3e2f5a7 46/98: rec-mode: support for multiple field names in %type entries., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode ceb00b5 41/98: rec-mode: rec-cmd-edit-field supports a numeric argument., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 9f7a14d 43/98: rec-mode: fix edition of the default record set., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode b149dfc 58/98: rec-mode: avoid trying to delete the sole window in the current frame., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode eaf5e93 60/98: rec-mode: support for a mode hook., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 4b485a0 76/98: rec-mode: several fixes while removing byte-compilation warnings., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 80b2815 75/98: rec-mode: fix selection commands when there are more than one record sets on the recfile., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode d97175a 82/98: rec-mode: define faces and use them, Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode e94505f 95/98: README, COPYING, Info fixes, Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 472f378 39/98: rec-mode: initial work for selection., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 20c3d6f 51/98: Do not kill the preceding empty line.,
Stefan Monnier <=
- [elpa] externals/rec-mode f106531 62/98: rec-mode: do the right thing when the selected window is the only window in the frame., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 8d404d8 56/98: rec-mode: fixed to allow comments in records., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 113747c 71/98: maint: syntax-check fixes., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 0ea7b18 80/98: rec-mode: quote the shell argument with the file name when invoking recfix., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode c302e6e 79/98: Copyright years updated to 2015., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 98b98ad 81/98: Quote the file name argument before to pass it to recfix in a shell., Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 3ac3482 83/98: ob-rec.el: switch to lexical-binding, Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 5fa6020 92/98: Font lock fixes and many small checkdoc fixes, Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode d0e8456 98/98: Improve regexp that matched on empty strings, Stefan Monnier, 2020/11/12
- [elpa] externals/rec-mode 299b496 44/98: rec-mode: support for generating time-stamps in date fields., Stefan Monnier, 2020/11/12