projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52b240b
)
Simplify `delete-line'
author
Lars Ingebrigtsen
<larsi@gnus.org>
Sun, 21 Aug 2022 16:13:00 +0000
(18:13 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Sun, 21 Aug 2022 16:13:12 +0000
(18:13 +0200)
* lisp/subr.el (delete-line): Simplify.
lisp/subr.el
patch
|
blob
|
history
diff --git
a/lisp/subr.el
b/lisp/subr.el
index cd6a9be099c746cfb3317320f405bdb0691583c7..3fde0551cc85433c680b189c20f74400e252a83b 100644
(file)
--- a/
lisp/subr.el
+++ b/
lisp/subr.el
@@
-6904,10
+6904,7
@@
OBJECT if it is readable."
(defun delete-line ()
"Delete the current line."
- (delete-region (line-beginning-position)
- (progn
- (forward-line 1)
- (point))))
+ (delete-region (pos-bol) (pos-bol 2)))
(defun ensure-empty-lines (&optional lines)
"Ensure that there are LINES number of empty lines before point.