From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: How to replace string for a block? Date: Wed, 27 May 2009 19:37:17 +0200 Message-ID: <4A1D7A4D.3000301@easy-emacs.de> References: <1243369356.13000.19.camel@qi.unbc.ca> <7cmy8y6i13.fsf@pbourguignon.anevia.com> <20090527154403.GB984@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1243445805 20006 80.91.229.12 (27 May 2009 17:36:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 May 2009 17:36:45 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Alan Mackenzie Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 27 19:36:41 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M9N3L-0002aH-Ah for geh-help-gnu-emacs@m.gmane.org; Wed, 27 May 2009 19:36:36 +0200 Original-Received: from localhost ([127.0.0.1]:39902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9N3K-0006da-Kq for geh-help-gnu-emacs@m.gmane.org; Wed, 27 May 2009 13:36:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M9N2x-0006bA-09 for help-gnu-emacs@gnu.org; Wed, 27 May 2009 13:36:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M9N2s-0006Wv-0P for help-gnu-emacs@gnu.org; Wed, 27 May 2009 13:36:10 -0400 Original-Received: from [199.232.76.173] (port=48321 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9N2r-0006Wr-Ni for help-gnu-emacs@gnu.org; Wed, 27 May 2009 13:36:05 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.187]:63521) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M9N2r-000447-5f for help-gnu-emacs@gnu.org; Wed, 27 May 2009 13:36:05 -0400 Original-Received: from [192.168.178.27] (p54BEBB31.dip0.t-ipconnect.de [84.190.187.49]) by mrelayeu.kundenserver.de (node=mrelayeu5) with ESMTP (Nemesis) id 0ML25U-1M9N2N3HXH-0001sR; Wed, 27 May 2009 19:35:36 +0200 User-Agent: Thunderbird 2.0.0.19 (X11/20081227) In-Reply-To: <20090527154403.GB984@muc.de> X-Provags-ID: V01U2FsdGVkX1/Vk2ZaCUEaeNs/MsDc10rBJicwctbm5JRP22E +itXLnBUoseC0NF6gEIoe6Jp+Ragtjw8agWCPnp8LMQ2XR+b82 NFwtO+zycJKT8TKVkwgvO0+D1VQ0TGZQnmF89+jI5Y= X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64781 Archived-At: Alan Mackenzie wrote: > Hi, Barry! > > On Wed, May 27, 2009 at 08:51:12AM -0400, Barry Margolin wrote: > >> In article , >> Alan Mackenzie wrote: >> > > >>> transient-mark-mode is an ill thought out conflation of several >>> logically unrelated features, some of which have names which can only >>> have been thought up when their namers were smoking something >>> soothing, complicated to use, and utterly at variance with Emacs's >>> ethos of elegant simplicity and keeping out of the user's way. >>> > > >>> Some people seem to like it, though. ;-) >>> > > >> I've been an Emacs user for almost 30 years. For at least half that >> time transient-mark-mode didn't even exist, and after it was added (for >> the benefit of converts from PC word processors, I believe) I resisted >> enabling it for a long time, it seemed like sacrilege. But I finally >> gave in a couple of years ago when I started using Emacs in GUI mode >> heavily at work, and I'm happy I did. I particularly like when >> commands automatically operate on either the buffer or region depending >> on whether it's enabled. I installed shell-command.el, which makes >> shell-command-on-region do this automagically. >> > > I could probably cope with transient-mark-mode if had been systematically > thought out and its entities called unconfusing things. The mark ISN'T > transient - once created, it exists until the buffer is killed. The mark > and the region are never active - they aren't the sort of things that > ever actively DO anything, they never become agents. "Receptive" would > have been a better word than "active", even if not very good. This > confusion has given rise to bewildering names like > `mark-even-if-inactive', which is short for "mark is active even if it's > inactive". > > The whole topic is such a cesspit of confusion and sloppy thinking, that > I decline to sully myself by even touching it. Thank you speaking out it so clearly. Nonetheless its at the very center of editing. Maybe some skillful relaxed people will strengthen emacs' editors heart again? > t-m-m conflates three > logically unrelated things: (i) highlighting the region; (ii) "narrowing" > the effect of certain commands to the region; (iii) enabling/disabling > certain commands which work on the region (like C-w). I can see the > benefit of (i) (though I dislike it strongly), and I suppose (ii) might > be handy, though given that C-x n n is so simple, I'm not exacly sure > what for. As for (iii) - well, I don't need some fascist telling me when > I can delete my region, thank you very much! That's actually what > `mark-even-if-inactive' means - it would be more accurately called > `region-commands-never-disabled'. As to why (i) and (ii) aren't > available separately, I suppose lack of clear thinking in the hacker who > created it is the most plausible explanation. > > The classical mark was so elegantly simple (it can be described in a > single concise sentence), yet also subtle and economical, the newbie > could grasp it in a few minutes of concentrated thinking. Which of us > didn't get a "Eureka moment" on seeing how all the various uses of the > mark complemented eachother and jelled so well together? All that is now > lost. The imposition of transient mark mode on the newbie burdens him > with a random ragbag of complexity, and I have no good answer to the > anticipated newbie question "what do I have to go through all this stuff > for?". > > Still, you like it. :-) Would you fancy fixing the documentation for > all this? The Emacs manual page "The Mark and the Region" decends into > the "if you don't know what I mean by 'widget' you must be an idiot" > style of documentation. It doesn't have a @dfn{active}. (I can think of > a good reason. ;-) It's also unsettling that it says that the text in a > region vanishes when you do something ("The region persists only until > you use it.", where @dfn{region} is THE TEXT between point and mark). > There are probably more confusing things in it. > > >> Barry Margolin, barmar@alum.mit.edu >> > >