From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#43847: ERC - prevent yanking multiple lines into IRC (feature request) *patch* Date: Sat, 10 Oct 2020 22:11:59 +0200 Message-ID: <87d01p3kog.fsf@gnus.org> References: <87tuv43sod.fsf@gnus.org> <878scfj0oa.fsf@gmail.com> <87blhbo0dp.fsf@debian> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25678"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 43847@debbugs.gnu.org, Corwin Brust , Amin Bandali , =?UTF-8?Q?K=C3=A9vin?= Le Gouguec To: Brett Gilio Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 10 22:13:32 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 1kRLFE-0006Zz-BV for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Oct 2020 22:13:32 +0200 Original-Received: from localhost ([::1]:32908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRLFD-0003zo-DS for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Oct 2020 16:13:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRLEk-0003x4-5E for bug-gnu-emacs@gnu.org; Sat, 10 Oct 2020 16:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55320) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kRLEj-0003rH-Rp for bug-gnu-emacs@gnu.org; Sat, 10 Oct 2020 16:13:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kRLEj-0007pJ-Nd for bug-gnu-emacs@gnu.org; Sat, 10 Oct 2020 16:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Oct 2020 20:13: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.160236073630032 (code B ref 43847); Sat, 10 Oct 2020 20:13:01 +0000 Original-Received: (at 43847) by debbugs.gnu.org; 10 Oct 2020 20:12:16 +0000 Original-Received: from localhost ([127.0.0.1]:38633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRLDz-0007oK-QS for submit@debbugs.gnu.org; Sat, 10 Oct 2020 16:12:16 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:52956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRLDx-0007o5-GJ for 43847@debbugs.gnu.org; Sat, 10 Oct 2020 16:12:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=J01CeQxqcePb9PmhqAHjtaMR1t0qwrYS9hRRTBYAg6k=; b=mdBjAQI6/LHjgUmKGBlWEItIP2 piGcQp7v4ukIrfsN45rXrYyuT6qNGjoNprdeNUBhNoyszNnRt0x2Ec9JymLJN5VTlLB/guEC5Prp5 J/DlagrLQA5VVXMdq9kTdEe6O7XsOQ7HkR/ZkTdwamCxtzjkCqMqa7y6kMV6kiG6tcNI=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kRLDk-000689-Ok; Sat, 10 Oct 2020 22:12:06 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAHlBMVEV2cHKUjYyEfoCh m5lYUlJBPDwZFhaCe32FgH3///8F2ZJAAAAAAWJLR0QJ8dml7AAAAAd0SU1FB+QKChMuMFeyL1gA AAGqSURBVDjLtdIxr5swEADgqwR4jeOXxxwW1lj07UbPZk4lzPwqYXd1o0j+B/3dPTsJHGnWekDg z3enOwPf+It15Ht4Cbj+PxxXEEbi8/QjfzQNgSHtTT/T+75tmjVV5Tk/+BzRxguBd/+J2OP5JsRI wTF7TcATHAn0k/91uEfQVPzDe98zvt9HAApiQPjCLDECozXEhDDvWLy0AASExH3vAksRFPgpgce9 Z/ieQSXBGu0CcgEWMz7BGQEoCPnxAPgXpgUwXf8ofhjHwtoVPhfQunwJ72dt7DTDvcgKf2bj3eQA Ao0QOEM3eOftM0gcrkbQN1hSCcEHP9sJgdUUug7v21ucOzAW1lTiBvdhkRpY4gGjotDJjpc51R1g AckL7xJYvYngsi7dOFrrjVFrhBBSvhk3am291mpTg5+uZzxWYOeaRnSyfvuCOoLZQic4lHmwg6LQ 4USgwKYj2wK2x8N1TjddKSDFE7Crg1iHaswAlxvgffzeIbShmhWBvHZOsSZWLkMgV7vzmmGE28wK UyGMrIXSafX0MwTvVARtbgAPOPU4XQXFaHIbEP4C9tKtFFmXn98AAAAldEVYdGRhdGU6Y3JlYXRl ADIwMjAtMTAtMTBUMTk6NDY6NDgrMDA6MDD+pT4xAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTEw LTEwVDE5OjQ2OjQ4KzAwOjAwj/iGjQAAAABJRU5ErkJggg== X-Now-Playing: David Sylvian's _Sleepwalkers_: "Pure Genius" In-Reply-To: <87blhbo0dp.fsf@debian> (Brett Gilio's message of "Fri, 09 Oct 2020 11:00:18 -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:190232 Archived-At: Brett Gilio writes: > 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? I think a new command, like `yank-trim-whitespace', might be nice. I have no idea where I'd put something like that in the global keymap, which is why I've never proposed it... But we could put it somewhere in the erc keymap for sure. > 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? That sounds nice... doesn't erc already have an (optional) way of warning against multi-line yanks? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no