From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Brian Julin Newsgroups: gmane.emacs.bugs Subject: bug#28868: 25.1; Feature request: isolate kill ring from window system cut and paste buffer Date: Mon, 16 Oct 2017 18:11:29 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1508177895 14453 195.159.176.226 (16 Oct 2017 18:18:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 16 Oct 2017 18:18:15 +0000 (UTC) To: 28868@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 16 20:18:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e49xl-0002iM-81 for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Oct 2017 20:18:05 +0200 Original-Received: from localhost ([::1]:34598 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e49xs-0002LN-Kc for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Oct 2017 14:18:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e49xl-0002Kh-R4 for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 14:18:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e49xi-0006Y1-Fc for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 14:18:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35539) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e49xi-0006Xq-9n for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 14:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e49xh-00082L-Tx for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 14:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Brian Julin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Oct 2017 18:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28868 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.150817785530855 (code B ref -1); Mon, 16 Oct 2017 18:18:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Oct 2017 18:17:35 +0000 Original-Received: from localhost ([127.0.0.1]:44220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e49xG-00081a-BQ for submit@debbugs.gnu.org; Mon, 16 Oct 2017 14:17:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48741) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e49rc-0007s4-BK for submit@debbugs.gnu.org; Mon, 16 Oct 2017 14:11:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e49rV-00026a-GD for submit@debbugs.gnu.org; Mon, 16 Oct 2017 14:11:39 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57325) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e49rV-00026Q-Cq for submit@debbugs.gnu.org; Mon, 16 Oct 2017 14:11:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e49rT-0007Ek-I7 for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 14:11:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e49rQ-00024z-6e for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 14:11:35 -0400 Original-Received: from mail-cys01nam02lp0048.outbound.protection.outlook.com ([207.46.163.48]:33822 helo=NAM02-CY1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e49rP-00024F-PL for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2017 14:11:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=clarkuedu.onmicrosoft.com; s=selector1-clarku-edu; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=840QYP7ATmzk+V5RwEkZyvMOE7chsMeGKtqNCV2hn2M=; b=PPFLBAKbWSrvlsZMTP3CvBuDoN0CohV50fo7PFhxYWpfDNTTaOTgEmxpaeeZOJ91n1Us3wvaeaug1AW4+36BrFQ5zHjWkZ10t1fdTbzzWNt6hTINWUcFL2UT/95sDd/PxnFjrTEcpxtolS10hRdZ/xR5eYk6sp1X9aOF8RibV0o= Original-Received: from BLUPR03MB582.namprd03.prod.outlook.com (10.141.79.148) by BLUPR03MB583.namprd03.prod.outlook.com (10.141.79.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Mon, 16 Oct 2017 18:11:29 +0000 Original-Received: from BLUPR03MB582.namprd03.prod.outlook.com ([10.141.79.148]) by BLUPR03MB582.namprd03.prod.outlook.com ([10.141.79.148]) with mapi id 15.20.0077.020; Mon, 16 Oct 2017 18:11:29 +0000 Thread-Topic: 25.1; Feature request: isolate kill ring from window system cut and paste buffer Thread-Index: AQHTRqNuRBsDOtFfSkOdUUFiCtCnaA== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=BJulin@clarku.edu; x-originating-ip: [140.232.0.70] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BLUPR03MB583; 6:9UUZIGjx/cfmhIlvm7M29yZDT6qUlvO2N6LwdY2yzB+b9SMb+Jg87f4toL7hRopHYts+i6s3uylnpO3jemvklqFXqj6kLQz1qPjCyCt/WqOO1fZJEvQ8or5g6TddnMgi7Us/3m+Af109EFjbJm13OhR5ObFk+RjucsrvRIJU961TLfwDNbJtItHjDrn67A3jf7zQezKkPXVp9hDvYN06hTuyZQXRU6F686fw7XzUMM0uqzv/ed4S/1zpv2erQY+7c84wGEyl8qeCUK4/91nw0aY6G2a1/PJxPXfJ1jbMVOErrxa6Vi5sMVA5WUNGT6fVsvwuQab0LZIB+2Onc5D0RQ==; 5:OTcpNpQWCajpa8zdj9V/f2LpWad7fpGe+JT9rKcnivUR5oW0zc2zB/RKQ45VxHKq02bkIb3QzctAgEz3qZGjG3Hptw8xvoc/HJQsGCHY/g7Fv8e8jE+RvAjIX5uYPA47LJFVwRaIqwHZ8UrxVPVtFxq97050HNGB33c1rNSDfeg=; 24:S0o3dOtrf/pEeBtQxSVqK2657z6kP/YcjXo7V43G6qhnOTzVFPcuHZlmsciAJW6LUlsi/4LqejajpkfvzpawEfYp54YCfx+DpKBGlxkiCYQ=; 7:hitrRRhszx0B0hTBlcC4/aZWUNJR9yWlrD+ZskAgcNJ+Eg1AS5rPKiUESi+9TTc69CQIY12jCu1neYZ1ctHI2/Z6nW1rEBoEkitnZKeHqP+qhX5Fy6OuWhfnCehbgWKh8zXEKDmMD7gMOV7Zn+3OrVc4pjuyQaIrLuDaKNRB1idOPSKoapSrfauX9Fgu0q2zOYUlgaAd+BWhDs x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 406e91a9-c446-4cfd-15b6-08d514c152e4 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:BLUPR03MB583; x-ms-traffictypediagnostic: BLUPR03MB583: x-exchange-antispam-report-test: UriScan:; x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(100000703101)(100105400095)(3002001)(10201501046)(6041248)(20161123562025)(20161123558100)(20161123564025)(20161123560025)(20161123555025)(201703131423075)(201702281529075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR03MB583; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR03MB583; x-forefront-prvs: 0462918D61 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(377424004)(199003)(189002)(50944005)(478600001)(8936002)(72206003)(25786009)(189998001)(99286003)(9686003)(5640700003)(55016002)(53936002)(86362001)(2900100001)(33656002)(2351001)(7696004)(102836003)(3846002)(6116002)(6916009)(5660300001)(105586002)(75432002)(551544002)(106356001)(66066001)(3280700002)(316002)(2906002)(2501003)(81156014)(50986999)(8676002)(81166006)(54356999)(3660700001)(88552002)(786003)(7736002)(14454004)(97736004)(6436002)(305945005)(77096006)(101416001)(74316002)(68736007)(6506006)(80792005); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB583; H:BLUPR03MB582.namprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: clarku.edu does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM X-OriginatorOrg: clarku.edu X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Oct 2017 18:11:29.3310 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b5b2263d-68aa-453e-b972-aa1421410f80 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB583 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Mon, 16 Oct 2017 14:17:33 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:138546 Archived-At: This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line a valid email address. After a delay of up to one day, you should receive an acknowledgment at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from 'emacs -Q': Recipe: 1) Start a terminal based emacs 2) Type a line of text 3) kill the line of text 4) yank the line of text 5) Paste a line of text from another window into emacs (use either clipboard or quick-selection X11 buffer, does not matter) 6) Yank a line of text Problem: Ever since xterm.el added bracketed paste mode support, the #6 yank yanks the line of text which was pasted. Though this is stated in the code comments as the desired behavior, it certainly is not the way I personally wish emacs to behave. I much prefer the window system clipboard and selection system to have absolutely nothing to do at all with the emacs kill-ring (unless I run a command like x-clipboard-yank explicitly.) Normally when an upgrade starts behaving in a new and upsetting manner, I would google and find, after quite a tedious process of reading random forum threads for tangentially related issues until I find one that actually addresses my issue, that there was a configuration variable available for my /etc/site-start.d files to customize such a behav= ior. In this case there appears to be none. You can prevent emacs from contaminating the window system clipboard and selection buffers with various directives depending on what exactly you are trying to prevent= , and you can try to prevent an interprogram-paste-function from being instal= led, and try to prevent a tty-setup-hook from being installed, but those two approaches either are nontrivial to get to work due to modes coming in and ignoring defaults, or did not disable this behavior if I inde= ed did manage to get them to work. (Note I did try 'M-: (setq interprogram-paste-function nil)' interactively but even that did not change the behavior.)=20 Nothing in the currrent-kill code seems to suggest the presence of a directive other than that with which to control this behavior. Workaround: use TERM=3Dvt100 in emacs environment to avoid loading xterm.el. --- If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: 'bt full' and 'xbacktrace'. For information about debugging Emacs, please read the file /usr/share/emacs/25.1/etc/DEBUG. In GNU Emacs 25.1.1 (x86_64-pc-linux-gnu) of 2017-09-15, modified by Debian built on trouble System Description: Debian GNU/Linux 9.1 (stretch) Configured using: 'configure --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25= .1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-li= sp:/\ usr/share/emacs/site-lisp --with-sound=3Dalsa --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25= .1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-li= sp:/\ usr/share/emacs/site-lisp --with-sound=3Dalsa --with-x=3Dno --without-gconf --without-gsettings 'CFLAGS=3D-g -O2 -fdebug-prefix-map=3D/build/emacs25-wN2qS3/emacs25-25.1+1=3D. -fstack-prot= ector-strong -Wformat -Werror=3Dformat-security -Wall' 'CPPFLAGS=3D-Wdate-time -D_FORTIFY_SOURCE=3D2' LDFLAGS=3D-Wl,-z,relro' Configured features: JPEG SOUND GPM DBUS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: tooltip-mode: t global-eldoc-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...d= one Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done Loading /etc/emacs/site-start.d/50gtk-doc-tools.el (source)...done Loading /etc/emacs/site-start.d/50python-docutils.el (source)...done Loading /etc/emacs/site-start.d/99-kill-crap.el (source)...done Loading /etc/emacs/site-start.d/99-only-morons-search-insensitively.el (sou= rce)...done For information about GNU Emacs and the GNU system, type C-h C-a. (New file) Mark set current-kill: Kill ring is empty Load-path shadows: /usr/share/emacs25/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/s= ite-lisp/cmake-mode /usr/share/emacs/25.1/site-lisp/debian-startup hides /usr/share/emacs/site-= lisp/debian-startup /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/25.1/lisp/textmodes/r= st Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils image term/xterm xterm time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify multi-tty make-network-process emacs) Memory information: ((conses 16 86276 5204) (symbols 48 19092 0) (miscs 40 48 99) (strings 32 14696 4400) (string-bytes 1 420012) (vectors 16 9830) (vector-slots 8 380290 17193) (floats 8 160 229) (intervals 56 224 23) (buffers 976 19))