From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Hanchrow Newsgroups: gmane.emacs.bugs Subject: bug#11592: [PATCH] prevent accidental pastes in ERC Date: Wed, 30 May 2012 17:32:52 -0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Trace: dough.gmane.org 1338424483 3911 80.91.229.3 (31 May 2012 00:34:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 31 May 2012 00:34:43 +0000 (UTC) To: 11592@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 31 02:34:42 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SZtLa-0003d6-1L for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 May 2012 02:34:38 +0200 Original-Received: from localhost ([::1]:40026 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZtLZ-0004d8-NZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 May 2012 20:34:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZtLW-0004cy-Ls for bug-gnu-emacs@gnu.org; Wed, 30 May 2012 20:34:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZtLU-0002X2-R6 for bug-gnu-emacs@gnu.org; Wed, 30 May 2012 20:34:34 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41473) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZtLU-0002Ww-Kj for bug-gnu-emacs@gnu.org; Wed, 30 May 2012 20:34:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SZtMw-0001U7-Nw for bug-gnu-emacs@gnu.org; Wed, 30 May 2012 20:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Hanchrow Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 May 2012 00:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11592 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13384245055641 (code B ref -1); Thu, 31 May 2012 00:36:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 May 2012 00:35:05 +0000 Original-Received: from localhost ([127.0.0.1]:51019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZtM0-0001Sv-7Y for submit@debbugs.gnu.org; Wed, 30 May 2012 20:35:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50525) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SZtLu-0001SO-OE for submit@debbugs.gnu.org; Wed, 30 May 2012 20:35:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZtKK-0002Re-DD for submit@debbugs.gnu.org; Wed, 30 May 2012 20:33:21 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:49597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZtKK-0002RW-7i for submit@debbugs.gnu.org; Wed, 30 May 2012 20:33:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZtKI-0004bw-Ab for bug-gnu-emacs@gnu.org; Wed, 30 May 2012 20:33:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SZtKG-0002R1-4u for bug-gnu-emacs@gnu.org; Wed, 30 May 2012 20:33:17 -0400 Original-Received: from mail-lb0-f169.google.com ([209.85.217.169]:59857) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SZtKF-0002Qp-NG for bug-gnu-emacs@gnu.org; Wed, 30 May 2012 20:33:16 -0400 Original-Received: by lbjn8 with SMTP id n8so518367lbj.0 for ; Wed, 30 May 2012 17:33:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=n0XQ+Ybsx4OdB/rah69lrSfc6DLexubH+BHQJKUy7vE=; b=JTYmnhZeb5oAb6hcrul/02tcrfnXBmWbbGaaPCidiOj36K8k4xmm0YUBSlfO0P6PV6 O+3NfTa4EIMqttAlpcat4UmIFYXCTkX2gZ3WAS7vfZDxCtS9ZRmdgUDv5wdnL7wmcxlG z9NrkR2D7TsSIf5HZFIvl16dmNOYk4twXtX1rRSn0c3X/ufQ6a70PE5MD78CYfxNBUMI eRXTFUHjxbNnCJN2WbqRbyGGnbguPrGAc1ckqpWzug5PfrvCZM3ko2ZKVozzNe5yfPb7 7Jb3V9o4Dq3Vhz+sQ0AF34KG/xromaH209DVgSs6uPPHNndjudkaiOBzv4NEuIoKXueX UAdA== Original-Received: by 10.152.108.38 with SMTP id hh6mr1286049lab.28.1338424392652; Wed, 30 May 2012 17:33:12 -0700 (PDT) Original-Received: by 10.112.110.102 with HTTP; Wed, 30 May 2012 17:32:52 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:60556 Archived-At: ZGlmZiAtLWdpdCBhL2xpc3AvZXJjL2VyYy5lbCBiL2xpc3AvZXJjL2VyYy5lbAppbmRleCAyZDhj MjU2Li41Njc3NDQ1IDEwMDY0NAotLS0gYS9saXNwL2VyYy9lcmMuZWwKKysrIGIvbGlzcC9lcmMv ZXJjLmVsCkBAIC01MDIwLDQyICs1MDIwLDYzIEBAIFNwZWNpZmljYWxseSwgcmV0dXJuIHRoZSBw b3NpdGlvbiBvZgpgZXJjLWluc2VydC1tYXJrZXInLiIKwqAgIlJldHVybiB0aGUgdmFsdWUgb2Yg YHBvaW50JyBhdCB0aGUgZW5kIG9mIHRoZSBpbnB1dCBsaW5lLiIKwqAgKHBvaW50LW1heCkpCgor KGRlZnZhciBlcmMtbGFzdC1pbnB1dC10aW1lIDAKKyDCoCJUaW1lIG9mIGxhc3QgY2FsbCB0byBg ZXJjLXNlbmQtY3VycmVudC1saW5lJyAoYXMgcmV0dXJuZWQgYnkgYGZsb2F0LXRpbWUnKSwKK29y IDAgaWYgdGhhdCBmdW5jdGlvbiBoYXMgbmV2ZXIgYmVlbiBjYWxsZWQuCisKK1VzZWQgdG8gZGV0 ZWN0IGFjY2lkZW50YWwgcGFzdGVzIChpLmUuLCBsYXJnZSBhbW91bnRzIG9mIHRleHQKK2FjY2lk ZW50YWxseSBlbnRlcmVkIGludG8gdGhlIEVSQyBidWZmZXIuKSIpCisKKyhkZWZjdXN0b20gZXJj LWFjY2lkZW50YWwtcGFzdGUtdGhyZXNob2xkLXNlY29uZHMgbmlsCisgwqAiVGltZSBpbiBzZWN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