From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Tentative diagnosis of TMM's problem. [Re: Enabling Transient Mark Mode by default] Date: Wed, 20 Feb 2008 15:52:24 -0500 Message-ID: References: <200802151711.m1FHB3Y3008798@sallyv1.ics.uci.edu> <200802171658.m1HGwQ4h011067@sallyv1.ics.uci.edu> <20080219085231.GA1032@muc.de> <200802190938.m1J9ccVg016565@sallyv1.ics.uci.edu> <20080219190127.GA1106@muc.de> <877ih0o9dx.fsf@catnip.gol.com> <20080220200142.GA1979@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203540781 17748 80.91.229.12 (20 Feb 2008 20:53:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Feb 2008 20:53:01 +0000 (UTC) Cc: rms@gnu.org, Sascha Wilde , lennart.borgman@gmail.com, emacs-devel@gnu.org, juri@jurta.org, dann@ics.uci.edu, storm@cua.dk, Miles Bader To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 20 21:53:24 2008 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.50) id 1JRvwF-0000vc-IE for ged-emacs-devel@m.gmane.org; Wed, 20 Feb 2008 21:53:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRvvk-0000vG-N4 for ged-emacs-devel@m.gmane.org; Wed, 20 Feb 2008 15:52:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JRvvh-0000v1-Qi for emacs-devel@gnu.org; Wed, 20 Feb 2008 15:52:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JRvvd-0000ui-BE for emacs-devel@gnu.org; Wed, 20 Feb 2008 15:52:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRvvd-0000uf-82 for emacs-devel@gnu.org; Wed, 20 Feb 2008 15:52:33 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JRvvV-0000eL-VA; Wed, 20 Feb 2008 15:52:26 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAPshvEfO+J2cdGdsb2JhbACQXAEwn3CBAg X-IronPort-AV: E=Sophos;i="4.25,382,1199682000"; d="scan'208";a="14765916" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 20 Feb 2008 15:52:24 -0500 Original-Received: from pastel.home ([206.248.157.156]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id AWU73024; Wed, 20 Feb 2008 15:52:24 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 3D2AC7F48; Wed, 20 Feb 2008 15:52:24 -0500 (EST) In-Reply-To: <20080220200142.GA1979@muc.de> (Alan Mackenzie's message of "Wed, 20 Feb 2008 20:01:42 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:89733 Archived-At: >> - Visual feedback about the mark's position and active status. >> I and all (X)Emacs users I know personally (i.e. off-this-list) and >> with whom I've talked about transient-mark-mode use >> transient-mark-mode (or its XEmacs equivalent) and find it difficult >> to use Emacs without it because of the lack of visual feedback about >> where the mark really is. I do not claim that this small group of >> people is representative, but it does seem relevant. >> - Extended semantics for various commands. >> Many commands now offer to operate on the region if the region is >> active but only when transient-mark-mode is ON. >> This functionality is now also available to non-tmm-users via the >> temporary-transient-mark-mode (C-SPC C-SPC), admittedly, but while >> C-SPC C-SPC is easy enough to use, I always find myself selecting the >> region *before* knowing that I want to use such a command (or >> selecting the region with something else than C-SPC, typically >> C-M-SPC), so I end up having to use C-u C-x C-x which I find a lot >> more inconvenient. > And that problem is, what on earth do these two facets of TMM have to do > with eachother? Keeping track of when the region is active and when it isn't can be tricky, so without the visual feedback, you may get nasty surprises where you end up, e.g., commenting a large part of your code instead of inserting a harmless ";" at the end of the current line. > Why should you have to "suffer" the visual effects of > TMM, if you just want to use the "extended semantics", You don't: you can change the `region' face so that it can't be seen. > and why can you > only highlight the region as a side effect of doing something else? If you only want to visually highlight a piece of text, you can use other packages that do that, like facemenu. > I think that if we partitioned TMM into the command `highlight-region', > and the other stuff, most of the acrimony on this thread would abate. > highlight-region probably deserves its own key binding. I don't think it's the right way to cut it. The main issue is with the conflation of 2 concepts on the set/push-mark commands: one is to push a buffer location on a ring for navigational purposes, the other is to set the boundary of the region. TMM is great for the second use, and is a drag for the first. Until now, the tendency has been to make the default closer and closer to TMM, without going all the way to enabling TMM. The main step in that direction was the introduction of temporary-TMM. Maybe another step in that direction would be to make more commands enable temporary-TMM. E.g. all the mark-* commands which I expect are rarely used for navigational purposes. That would get us closer to TMM, but one command at a time. Stefan