From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Manoj Srivastava Newsgroups: gmane.emacs.devel Subject: The X window system, yanking, and pasting using the mouse Date: Wed, 26 Jan 2011 18:31:16 -0800 Organization: Manoj Srivastava's Home Message-ID: <87hbcvkrgr.fsf@anzu.internal.golden-gryphon.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1296095533 20000 80.91.229.12 (27 Jan 2011 02:32:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 27 Jan 2011 02:32:13 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 27 03:32:07 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PiHeV-0006yS-0L for ged-emacs-devel@m.gmane.org; Thu, 27 Jan 2011 03:32:03 +0100 Original-Received: from localhost ([127.0.0.1]:33739 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiHeU-0006zU-Ck for ged-emacs-devel@m.gmane.org; Wed, 26 Jan 2011 21:32:02 -0500 Original-Received: from [140.186.70.92] (port=37903 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PiHeG-0006pG-OV for emacs-devel@gnu.org; Wed, 26 Jan 2011 21:31:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PiHe0-0007cJ-Ov for emacs-devel@gnu.org; Wed, 26 Jan 2011 21:31:45 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:43744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PiHe0-0007c4-DY for emacs-devel@gnu.org; Wed, 26 Jan 2011 21:31:32 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PiHdx-0006mr-78 for emacs-devel@gnu.org; Thu, 27 Jan 2011 03:31:29 +0100 Original-Received: from c-67-182-138-215.hsd1.wa.comcast.net ([67.182.138.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Jan 2011 03:31:29 +0100 Original-Received: from srivasta by c-67-182-138-215.hsd1.wa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Jan 2011 03:31:29 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 48 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-67-182-138-215.hsd1.wa.comcast.net User-Agent: Microsoft Gnus Express, Build 5.13 (5.13) Face: iVBORw0KGgoAAAANSUhEUgAAACYAAAAwCAMAAABKbPgaAAAAM1BMVEUAAADIjH/0rp1KPz79 0b+ic2nlpJc2Ly2AY17VlYb4uqi2gHQXFBN2WVXgno5iT02Xa2Nx+jaIAAACVElEQVQ4jeWU23bj IAxFLUAggQX6/6+dI9LGTpo+9mlYiXNhc3TnOP50naZE0tqvgEk+soutnNfQ8yPTWMTENhNrjI+Y +N7POVt8tAzpn2vJlsmttbyfrdkP7hx5iezteGzsbOts7xT+tC1mcG+LtRP2X/16bEQExuyx1uZW vscrAWUT8aE0aDBeBuw8nS5u4WgWyDCllOZUBeyWgbWbGrBsTDpTx0qpphlcYPcgJLvBXFClPMg5 6WH2JidLIAaDF5aAed7uPTH4bjw0bZvfajp2tHc1F+cBm+Vr9YomGSwNhbmcczYEWUu5MBpYvCLV F+ZIKwQfYB+CBXnIRQFvIRhK6l96PemsFLEPFxi+MPxiTYH0Ave1InPsIYes3NJb42ytBSmmysyj lIQYHJm6Im1WbQ0kWMesKFRFPKTDzJ3GhWUn2KWKEkWlKthoACLm2eWJQQh2qKbAUgQxa+8TVjn1 aySm8656ookCfCc5TRzvnZ6YOu3NpHg+uR5YuRkNF/b5IHq5Y7Ve6c2+sR4hqIZ3+5DCt3ukh8Eo vFIXVJxqfMdbkd/BF3YaQkB/2RIUHPMS7RLVAHefrYzWZVQ/ei4peBsROFLi90ltQyvF5I05t4Zs L4C9DODJ2AZCUf8UitGjCIdfx15QQkfZibTOGT3edxns5fY6F2rstKcTwiiaJnQwvYkdzTlaTqNH IkSmGdLrON45tGsMNDoSYr4bxH5emHEFaoFjKBahHXFXfLx9cR9p6ejJXihuxPz57gWHZkWovbPl 9gsU8eImtBi++3D+f+sfT/Mg79fyEz8AAAAASUVORK5CYII= X-URL: http://www.golden-gryphon.com/ Mail-Copies-To: never Cancel-Lock: sha1:AvhLqPr4w0p9kLfOtePyfvoW/os= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135060 Archived-At: Hi, I have read the archives of this mailing list, and the release notes of the latest release candidate, and I am left somewhat confused. I am using the latest Emacs from Git. This is what I have: --8<---------------cut here---------------start------------->8--- (setq transient-mark-mode t ;show the marked region ;;; Behave like other X applications. This is confusing. x-select-enable-primary t x-select-enable-clipboard t ;;; cut/paste use clipboard select-active-regions 'only ;;; temporarily active regions set the ;;; window selection. mouse-drag-copy-region t ;;; copy dragged region to kill ring ) --8<---------------cut here---------------end--------------->8--- What I want is the behaviour I think I used to have in Emacs on GNU/Linux X Windows: 1) Whatever text is pasted when I click (mouse-yank-primary?) should be the same thing yanked when I type C-y (yank) 2) Conversely, text that is selected in Emacs, such that it is inserted with a C-y (yank) should also be the text that is pasted into, say, an xterm when I do a middle mouse click in there. I often find that text selected in other X applications (which is inserted in xterms and Emacs using the middle mouse button, is not what is yanked using the keyboard. I cannot seem to reproduce this reliably, but I have observed this often. In Emacs, I select text by: 1) C-SPC (set-mark-command) C-f C-f M-w (kill-ring-save) 2) Down-mouse-1 drag-mouse-1 up-mouse-one (mouse-drag-region) 3) Down-mouse-1 Down-mouse-3 (mouse-save-then-kill I would like each of these methods to copy things over so that a middle mouse click in an xterm to paste the text in the region. What changes do I need to make to get this? manoj -- New systems generate new problems. Manoj Srivastava 4096R/C5779A1C E37E 5EC5 2A01 DA25 AD20 05B6 CF48 9438 C577 9A1C