emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] New tab-bar-detach-tab command


From: Juri Linkov
Subject: Re: [PATCH] New tab-bar-detach-tab command
Date: Tue, 05 Oct 2021 19:35:52 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

> (I don't see any other commands in my Emacs with "duplicate" in the name).

Indeed, there are not many commands with "duplicate" in their names.
One example:

  (defun picture-duplicate-line ()
    "Insert a duplicate of the current line, below it."
    (interactive)
    (save-excursion
     (let ((contents
            (buffer-substring
             (progn (beginning-of-line) (point))
             (progn (picture-newline 1) (point)))))
       (forward-line -1)
       (insert contents))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]