From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#46621: Copy line Date: Mon, 22 Feb 2021 21:51:40 +0100 Message-ID: <87v9ajsu5f.fsf@rub.de> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38876"; 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, larsi@gnus.org, Juri Linkov , rms@gnu.org, mardani29@yahoo.es To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 22 21:52:14 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 1lEIBi-000A0C-41 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Feb 2021 21:52:14 +0100 Original-Received: from localhost ([::1]:38424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEIBh-000156-3K for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Feb 2021 15:52:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEIBW-00013A-MG for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2021 15:52:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46168) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lEIBV-0000Z6-Kf for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2021 15:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lEIBV-00023g-J3 for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2021 15:52:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Feb 2021 20:52: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.16140271157901 (code B ref 46621); Mon, 22 Feb 2021 20:52:01 +0000 Original-Received: (at 46621) by debbugs.gnu.org; 22 Feb 2021 20:51:55 +0000 Original-Received: from localhost ([127.0.0.1]:57714 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEIBP-00023N-ES for submit@debbugs.gnu.org; Mon, 22 Feb 2021 15:51:55 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:50075) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEIBN-000239-GH for 46621@debbugs.gnu.org; Mon, 22 Feb 2021 15:51:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1614027106; bh=YXjGo/iVAXx03Bcb9MtwJ0yg+PvOGJblrO2UksOWkhM=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=ktXPNHOafZuO/IUssLGzDj4MMY2XrECpPi25XBaFbHIh4ODG4ud6if/v6G0BDqvSJ BhrVrLjBN07r1FjDv53BIZ7piSYuIn3yHS1oIYDcF9yitx7Xu2Vled4nt6D1w8CeMR m2rtLApIvFofuO37fll8qePFmLKvDI6CPh6d5zz4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobe-jhalfs ([188.109.152.52]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MdvmO-1ln5Il3pJu-00b36d; Mon, 22 Feb 2021 21:51:46 +0100 In-Reply-To: <83eeh8w1jz.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 22 Feb 2021 17:43:28 +0200") X-Provags-ID: V03:K1:PAAAjd9jX0182wR4WgDfY06OFpH9sDJUpqHPac7/OEkToc7tWEu EJSjb4tcyhsAy1L79Qb4J8kx4nkLuWGIi8zZRRFEXXfBg+wM9XqM+puvlxoUh55uliu3QKA mpK5dVYah7MRWj2IrRG6+wCDlAv45cs85eavlMXQQY5GKGRRxmoUEme0W9WT3Pcbs3+Oaej kjy7L5yDWwhs7AJWyXzag== X-UI-Out-Filterresults: notjunk:1;V03:K0:u0c65idhU80=:YCVfrHOiBGzObLR3cg3hLY QM2voOoO6V/FZBZi4pqsxUVTP7cf1bcJIQPaOXla5U+zwCI8z06KoVCLIa04/phr9hMQF2YqU Qxoo1tmibsfmlfEUjNZYB4TvOctb8W7ttmt4TWqKYA0DMmu6vhaaT6pM6l2Sj1FBCWOFGdjGE NaNmCMc+03i7ZiyjEKMQ3yV7yw73mTW4tZRStz1mt1DJhbasbdjgrxGmKtWD846d/W6lPDJzF 4vQ/C24J0mY8Y67AoPoLtPPe9vlUEjThgcIA0twk9H2I16aPUbZdCtofbi7c1jf2PY4r9zvef L7+5W5KdJaDuvfZuA+n27AggiBmXKGQ2ogWwwPTTNzeUmIYM9PYeECwfn7I0u+d3+jbxxy3+J CYXNeeun4xtezNHJOF3iNqhOsiI37ITeL6R45v56Fv1fvESMm1jPb0z3Ie8H8GpWj2ZQ5Lx6y ZrWwNl9KNZZJVu6Ebw3RekfFPZIXs1GDlFS7oVNUOB1+5gfHZluHkg9XaTocYwER1MGhwhL2i rQwotKE/2YHXG1mG8nHe5eVQVuqeRfj+YiUTdzgKBQ+zIcYJIqCjD+1d4YVQbaX/DSMUESzTi jJ1etqo4BAdoFdU0WYOSHn7nlmtR6hXTBZb/+iOrdk9hOibcp3Gr63qEYf/IhzCupiFeLLlQr 1vFshYA+I5LmFBCUZFnHDjQAWrUAhH0WaJ7WJZRbP989zX+qfIJJXygGasldP8o1JEaux33tP b10KGAZbPAEEiDAlFi938yMMhjpfuGiU5S/5K1bw3ZXFcoOZqZtzqcNYUOSYaA8/B7Iz9N80 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:200622 Archived-At: On Mon, 22 Feb 2021 17:43:28 +0200 Eli Zaretskii wrote: > Bottom line, if we want to consider this command, we should somehow > come up with the relevant use cases, and then weigh them against the > added complexity and maintenance costs. I therefore urge people who > think they know these details to please speak up and contribute to > this discussion. I frequently use the following command (bound to `C-c l'), which suits my needs better than the proposed command would or dabbrev-expand does: (defun srb-select-line () "Select line at point and copy to kill ring." (interactive) (copy-region-as-kill (line-beginning-position) (line-end-position))) A common use case for me is copying somewhat complex shell commands I keep stored in a file; they are stored as one liners to be easy to copy. I don't want them to be immediately yanked into the file and for these cases I don't need the feature of multiple copies via a prefix argument (though in some documents I often do want multiple copies of a single line, but usually at different parts of the document, so then just yanking at the different locations is better than moving the copies). Steve Berman