mirror of
https://github.com/protesilaos/dotfiles.git
synced 2026-09-10 07:16:20 -04:00
emacs: simplify prot-simple-duplicate-line-or-region
This commit is contained in:
parent
55885648e1
commit
66bb3598d5
|
|
@ -15637,11 +15637,9 @@ BOUNDARIES is a cons cell representing buffer positions."
|
|||
(error "`%s' is not a cons cell" boundaries))
|
||||
(let ((beg (car boundaries))
|
||||
(end (cdr boundaries)))
|
||||
(save-excursion
|
||||
(goto-char end)
|
||||
(newline)
|
||||
(insert (buffer-substring-no-properties beg end))
|
||||
(indent-for-tab-command))))
|
||||
(goto-char end)
|
||||
(newline)
|
||||
(insert (buffer-substring-no-properties beg end))))
|
||||
|
||||
;;;###autoload
|
||||
(defun prot-simple-duplicate-line-or-region (&optional beg end)
|
||||
|
|
|
|||
|
|
@ -224,11 +224,9 @@ BOUNDARIES is a cons cell representing buffer positions."
|
|||
(error "`%s' is not a cons cell" boundaries))
|
||||
(let ((beg (car boundaries))
|
||||
(end (cdr boundaries)))
|
||||
(save-excursion
|
||||
(goto-char end)
|
||||
(newline)
|
||||
(insert (buffer-substring-no-properties beg end))
|
||||
(indent-for-tab-command))))
|
||||
(goto-char end)
|
||||
(newline)
|
||||
(insert (buffer-substring-no-properties beg end))))
|
||||
|
||||
;;;###autoload
|
||||
(defun prot-simple-duplicate-line-or-region (&optional beg end)
|
||||
|
|
|
|||
Loading…
Reference in a new issue