From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.bugs Subject: bug#46621: Copy line Date: Mon, 22 Feb 2021 19:32:51 +0100 Message-ID: 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> <87wnv09gza.fsf@igel.home> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15832"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 46621@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 22 19:34:22 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 1lEG2I-00041o-Gy for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Feb 2021 19:34:22 +0100 Original-Received: from localhost ([::1]:47206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEG2H-0004n1-II for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Feb 2021 13:34:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38540) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEG1z-0004le-9S for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2021 13:34:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45959) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lEG1y-00066s-3V for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2021 13:34:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lEG1y-0004zP-0V for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2021 13:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Helmut Eller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Feb 2021 18:34: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.161401878119099 (code B ref 46621); Mon, 22 Feb 2021 18:34:01 +0000 Original-Received: (at 46621) by debbugs.gnu.org; 22 Feb 2021 18:33:01 +0000 Original-Received: from localhost ([127.0.0.1]:57505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEG0z-0004xw-HN for submit@debbugs.gnu.org; Mon, 22 Feb 2021 13:33:01 -0500 Original-Received: from mail-wm1-f47.google.com ([209.85.128.47]:38867) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEG0x-0004xe-Hc for 46621@debbugs.gnu.org; Mon, 22 Feb 2021 13:32:59 -0500 Original-Received: by mail-wm1-f47.google.com with SMTP id f137so174705wmf.3 for <46621@debbugs.gnu.org>; Mon, 22 Feb 2021 10:32:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=qid2PHjQf5LHEJpAWM1SxiMLvkR4ghbIezwbBEDJ4nM=; b=fG9dwKvkmgrKuXDbOyMm0ZRUjq+3v0YMRrZTTr4tWDSk7Byu/MjLlArHUUJV1wtVMU ECzFHDfdTO3EdTDvsbJuq4M6oTic8SP3Lon5KKb0cPBO4syWpzNUBXoA7FCpkXGKUqwM 8ASkM7vzFvc5/Hw+O1EcAMAD/n7KVNUDypHSvED1HPsKOB857c9x+muw/qbzqgfLpytE 6+VRYeHdwEgPmcV8k1ZDMgKJYzPrWDHUpZDO+UkxvWxMouY/7gpefUd+lLjW6JkPdRwl Lk7KMuH8a+IHM1eYrv2sbWRurjbxd2GhHGyiLvmuiOrlF8l10NFVxKmx2WghUBUTiR3f 9PDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=qid2PHjQf5LHEJpAWM1SxiMLvkR4ghbIezwbBEDJ4nM=; b=jhUHsalSfidz1PWY4ws/+bVv71Ec7QqpokQ6INO6we1dKN3xGRX8/U5NzJaV1nD7S7 Ur4u2dV8xEUYkLs5w5KZBkI3WHZmIRrMoDIP18CuuZQnB98KtIwo1GJmbQYnRxhrPb+3 MMZBg+pPpuwDbF05ilnKlw8Vxy7hWx/IaQB2Ph9rN6E+SNNtbil4M8I+2Q2VnRPv4dJb IQEYke1Keq1DZDjKYffOJVr8plo1ZlwEYBRG1+tcLBPq+PCmBMgqtB5/XBkmo2AZO4bI yhRRhRiD6LyfVdPOO3AIqWu5rYfmFUBC2C0fw07Ya3YuXmyUo4//ybSg+3qxmmlS0Ohi uVFg== X-Gm-Message-State: AOAM532aDfigJrTyAzXB6pe+OKoDqMtrERwSb2w5xRHpVSDVo+w9b7w7 h696SRTUmOQemKgspQd/gDZIr1bvYJc= X-Google-Smtp-Source: ABdhPJxoJfz564xM7PaW25nPylb+ykXzCazgfzsh+bjdRC+X7UJYKQ3iDAGTbMX9GJ0UBwxEk01NSA== X-Received: by 2002:a05:600c:218b:: with SMTP id e11mr15451821wme.106.1614018773715; Mon, 22 Feb 2021 10:32:53 -0800 (PST) Original-Received: from caladan (dialin-231184.rol.raiffeisen.net. [195.254.231.184]) by smtp.gmail.com with ESMTPSA id l1sm107559wmi.48.2021.02.22.10.32.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Feb 2021 10:32:53 -0800 (PST) In-Reply-To: <87wnv09gza.fsf@igel.home> (Andreas Schwab's message of "Mon, 22 Feb 2021 17:58:49 +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:200610 Archived-At: On Mon, Feb 22 2021, Andreas Schwab wrote: >> 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. > > But you don't need the repeat count for that. copy-from-above-command > will work well for this task. I didn't know about this. But if I place point between LogLevel and INFO and then execute M-x copy-from-above-command then the result is #LogLevelcility AUTH INFO which is not what is needed in this situation. Helmut