From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#46621: Copy line Date: Mon, 22 Feb 2021 19:08:57 +0200 Message-ID: <83wnv0uj12.fsf@gnu.org> References: <87tuq99ova.fsf@mail.linkov.net> <87y2fkrypp.fsf@gnus.org> <87ft1qq4b6.fsf@gnus.org> <87o8ge8ugr.fsf@mail.linkov.net> <87im6lls1r.fsf@mail.linkov.net> <87sg5o8nk9.fsf@mail.linkov.net> <83eeh8w1jz.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31686"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46621@debbugs.gnu.org To: Helmut Eller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 22 18:10:47 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lEEjP-0008AD-5B for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Feb 2021 18:10:47 +0100 Original-Received: from localhost ([::1]:60388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEEjO-0004z5-1n for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Feb 2021 12:10:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEEih-0004ry-0L for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2021 12:10:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45880) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lEEig-0003Ng-5w for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2021 12:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lEEig-0002x6-03 for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2021 12:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Feb 2021 17:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46621 X-GNU-PR-Package: emacs Original-Received: via spool by 46621-submit@debbugs.gnu.org id=B46621.161401375911298 (code B ref 46621); Mon, 22 Feb 2021 17:10:01 +0000 Original-Received: (at 46621) by debbugs.gnu.org; 22 Feb 2021 17:09:19 +0000 Original-Received: from localhost ([127.0.0.1]:57426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEEhy-0002w9-VP for submit@debbugs.gnu.org; Mon, 22 Feb 2021 12:09:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEEhx-0002vv-Bw for 46621@debbugs.gnu.org; Mon, 22 Feb 2021 12:09:17 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58530) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEEhr-0003HE-Ma; Mon, 22 Feb 2021 12:09:12 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3611 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lEEho-0005PW-KI; Mon, 22 Feb 2021 12:09:09 -0500 In-Reply-To: (message from Helmut Eller on Mon, 22 Feb 2021 17:28:39 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:200604 Archived-At: > From: Helmut Eller > Date: Mon, 22 Feb 2021 17:28:39 +0100 > > One example where copy-line would be useful is editing configuration > files. E.g. /etc/ssh/sshd_config list many options with the default > value but as comments, like so: > > #SyslogFacility AUTH > #LogLevel INFO > ... other options ... > > Now, if I want to change LogLevel to say DEBUG, I would copy the line, > keep the original, and edit the copied line. I already mentioned M-/ as the alternative. In the above case, type "#L M-/", and Emacs will complete to "#LogLevel". IOW, if these cases are considered as "repeat a previous word" rather than "copy a previous line, then edit it", the solution already exists. I suspect that people who are looking for this command simply don't know about M-/ in Emacs, because IME it's still quite a unique feature.