From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Brett Gilio Newsgroups: gmane.emacs.bugs Subject: bug#43847: ERC - prevent yanking multiple lines into IRC (feature request) *patch* Date: Fri, 09 Oct 2020 11:00:18 -0500 Message-ID: <87blhbo0dp.fsf@debian> References: <87tuv43sod.fsf@gnus.org> <878scfj0oa.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4553"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: 43847@debbugs.gnu.org, Lars Ingebrigtsen , Amin Bandali , =?UTF-8?Q?K=C3=A9vin?= Le Gouguec To: Corwin Brust Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 09 18:07:28 2020 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 1kQuvX-00016O-W8 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Oct 2020 18:07:27 +0200 Original-Received: from localhost ([::1]:59848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQuvW-00013r-T9 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Oct 2020 12:07:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQupL-00032B-2E for bug-gnu-emacs@gnu.org; Fri, 09 Oct 2020 12:01:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52778) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kQupJ-00013n-RT for bug-gnu-emacs@gnu.org; Fri, 09 Oct 2020 12:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kQupJ-0008Pf-Qv for bug-gnu-emacs@gnu.org; Fri, 09 Oct 2020 12:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Brett Gilio Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Oct 2020 16:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43847 X-GNU-PR-Package: emacs Original-Received: via spool by 43847-submit@debbugs.gnu.org id=B43847.160225923132290 (code B ref 43847); Fri, 09 Oct 2020 16:01:01 +0000 Original-Received: (at 43847) by debbugs.gnu.org; 9 Oct 2020 16:00:31 +0000 Original-Received: from localhost ([127.0.0.1]:36091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQuop-0008Oj-96 for submit@debbugs.gnu.org; Fri, 09 Oct 2020 12:00:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQuom-0008OW-Nn for 43847@debbugs.gnu.org; Fri, 09 Oct 2020 12:00:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45893) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQuoh-0000vT-28; Fri, 09 Oct 2020 12:00:23 -0400 Original-Received: from [2605:6000:1a0d:48fb::8e5] (port=57122 helo=debian) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kQuod-0008Ch-VN; Fri, 09 Oct 2020 12:00:20 -0400 In-Reply-To: (Corwin Brust's message of "Fri, 9 Oct 2020 10:41:26 -0500") 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:190169 Archived-At: Corwin Brust writes: > This hasn't come up for me outside IRC/ERC, that I can recall, but it > definitely does makes sense to me that people would want an easy way > to strip new-lines when yanking in contexts out-side IRC. Any thoughts > as to the approach for this? > After giving it more thought, perhaps a prefix arg is the correct way to go here. It would be enough that people would not experience a breaking change. Or, it could be such that ERC alerts in the echo buffer that you are about to send a multiline paste and ask if it should be sanitized? Brett Gilio