From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Karl Chen Newsgroups: gmane.emacs.devel Subject: Re: [cvs] bug when using pc-selection-mode/transient-mark-mode Date: Thu, 19 Sep 2002 00:11:47 -0700 (PDT) Sender: emacs-devel-admin@gnu.org Message-ID: References: Reply-To: q.edg875310@quarl.org NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1032419606 4822 127.0.0.1 (19 Sep 2002 07:13:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 19 Sep 2002 07:13:26 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17rvV6-0001Fd-00 for ; Thu, 19 Sep 2002 09:13:24 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17rw9m-0003g5-00 for ; Thu, 19 Sep 2002 09:55:26 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17rvVO-000796-00; Thu, 19 Sep 2002 03:13:42 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17rvTc-000755-00 for emacs-devel@gnu.org; Thu, 19 Sep 2002 03:11:52 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17rvTa-00074t-00 for emacs-devel@gnu.org; Thu, 19 Sep 2002 03:11:51 -0400 Original-Received: from hkn.eecs.berkeley.edu ([128.32.138.82]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17rvTY-00074Z-00; Thu, 19 Sep 2002 03:11:48 -0400 Original-Received: from quarl (helo=localhost) by hkn.eecs.berkeley.edu with local-esmtp id 17rvTX-0001Uo-00; Thu, 19 Sep 2002 00:11:47 -0700 Original-To: Richard Stallman In-Reply-To: Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:8003 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8003 So I added your debugging suggestion but before I could use it, by luck I discovered what was causing this mark dactivation bug. It happens whenever I copy or paste text. `interprogram-cut-function' is x-select-text, which calls x-set-selection, which calls x-own-selection-internal. Summary of how to reproduce this bug: M-x pc-selection-mode M-: (x-own-selection-internal 'PRIMARY "quack") C-x C-f bigfile hold down S-down. Without the x-own-selection-internal, the selection would be from the start of the file to whatever line you were on. After any clipboard copy operation, the selection will at random times get deactivated and the selection won't be ever more than a couple lines. I don't see at all what could cause this behavior in xselect.c, nor do I see any relevant changes recently in xselect.c. I'll check out old snapshots of emacs to see if they have this behavior. -- Karl Chen / quarl@quarl.org On Wed, 18 Sep 2002, Richard Stallman wrote: > I can't figure out how exactly to reproduce the problem because it doesn't > manifest as soon as I start emacs. I've tried going through all the > motions I usually do (invoking different autloads through buffers/files, > compiling, autorevert, etc.) in case something autoloads globally. All I > can say (I know this isn't much use, sorry) is that after having edited > for a while the selection-deactivation behavior starts. > > In that case, I think only you are in a position to debug it. > You could put (if debugging (debug)) into the code in simple.el > that deactivates the mark, and set debugging to t when you want > to debug. > > (Save all your buffers before you start debugging this way.) >