From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: thumbs.el and transparency Date: Wed, 01 Feb 2006 00:08:41 +0100 Message-ID: References: <17366.53124.274532.548329@kahikatea.snap.net.nz> <17369.59246.383626.699005@kahikatea.snap.net.nz> <17372.1305.835753.613893@kahikatea.snap.net.nz> <874q3llph9.fsf@stupidchicken.com> <200601312110.k0VLAqT12038@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138749121 26700 80.91.229.2 (31 Jan 2006 23:12:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 23:12:01 +0000 (UTC) Cc: lekktu@gmail.com, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 01 00:11:58 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F44fD-0001qr-0R for ged-emacs-devel@m.gmane.org; Wed, 01 Feb 2006 00:11:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F44ht-0006rq-S8 for ged-emacs-devel@m.gmane.org; Tue, 31 Jan 2006 18:14:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F44gy-0006PZ-QH for emacs-devel@gnu.org; Tue, 31 Jan 2006 18:13:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F44gY-0005an-3m for emacs-devel@gnu.org; Tue, 31 Jan 2006 18:13:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F44g9-0004sc-0M for emacs-devel@gnu.org; Tue, 31 Jan 2006 18:12:53 -0500 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F44ed-0005sg-DE; Tue, 31 Jan 2006 18:11:19 -0500 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepa.post.tele.dk (Postfix) with SMTP id 8A68A47FE77; Wed, 1 Feb 2006 00:09:37 +0100 (CET) Original-To: Luc Teirlinck In-Reply-To: <200601312110.k0VLAqT12038@raven.dms.auburn.edu> (Luc Teirlinck's message of "Tue, 31 Jan 2006 15:10:52 -0600 (CST)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:49845 Archived-At: Luc Teirlinck writes: > Juanma Barranquero wrote: > > Kim and Luc are taking a look at it. > > Well, Kim will need to fix it _if_ it needs fixing. I do not even use > cua-mode. All I did was track down the place where cua-mode forces > transient-mark-mode to the value cua-mode apparently wants. But I do > not even know whether it is intentional (although I believe it is). Luc, thanks for the precise analysis!! Yes, cua-mode relies on transient-mark-mode to highlight the selected region, but since it uses other methods to highlight a selected rectangle, it needs to turn off transient-mark-mode temporarily when it highlights a rectangle. That is why it automatically turns it (back) on when no rectangle is selected. There is no option to disable transient-mark-mode completely with cua, but isn't cua-highlight-region-shift-only sufficient? Of course, cua could turn on transient-mark-mode just in case mark-active is t, but that wouldn't make any difference, as transient-mark-mode is only looked at when mark-active is t. BTW, the code in question hasn't changed since 2002, so I'm puzzled why you think this is a new "problem"!? -- Kim F. Storm http://www.cua.dk