From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Turn off selection coloring Date: Fri, 18 Sep 2009 07:49:15 +0200 Message-ID: <87ws3wby5g.fsf@thinkpad.tsdh.de> References: <87vdjkjah3.fsf@newsguy.com> <878wggt3m2.fsf@thinkpad.tsdh.de> <87eiq5jkct.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253253037 13472 80.91.229.12 (18 Sep 2009 05:50:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Sep 2009 05:50:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 18 07:50:30 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 1MoWMW-00083c-A8 for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 07:50:28 +0200 Original-Received: from localhost ([127.0.0.1]:59976 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoWMV-0002cf-Cg for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Sep 2009 01:50:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MoWLk-0002cG-3i for help-gnu-emacs@gnu.org; Fri, 18 Sep 2009 01:49:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MoWLd-0002bD-LC for help-gnu-emacs@gnu.org; Fri, 18 Sep 2009 01:49:37 -0400 Original-Received: from [199.232.76.173] (port=52209 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoWLd-0002b9-Dn for help-gnu-emacs@gnu.org; Fri, 18 Sep 2009 01:49:33 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:55779) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MoWLc-0006cB-Rp for help-gnu-emacs@gnu.org; Fri, 18 Sep 2009 01:49:33 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MoWLY-0007rg-HA for help-gnu-emacs@gnu.org; Fri, 18 Sep 2009 07:49:28 +0200 Original-Received: from p54af28b0.dip0.t-ipconnect.de ([84.175.40.176]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Sep 2009 07:49:28 +0200 Original-Received: from tassilo by p54af28b0.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 18 Sep 2009 07:49:28 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 72 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p54af28b0.dip0.t-ipconnect.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:3+ZpoF0xiXKuAf3a6DQ/8DwMfYQ= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:68253 Archived-At: Harry Putnam writes: Hi Harry, >> [1] Some commands behave differently when the mark is active of >> deactivated. This can be very handy, although this feature isn't >> used too much till now. > > It is mostly the color but I guess the stickyness I seem to see might > be a problem without the color... Its likely I'd have selected regions > and not know it... Not sure how much havoc that might lead too, but I > don't remember it being a problem before the advent of the coloring. > > But then I guess you are saying there other changes that go along with > a selected region. Indeed. > I have a hunch it would take me mnths or even yrs to notice which > behaved in a way I'd like. Can you spell them out a bit more? Sure. `ispell-word' has a different behavior when a region is active. ,----[ C-h f ispell-word RET ] | ispell-word is an interactive compiled Lisp function in `ispell.el'. | | It is bound to M-$, . | | (ispell-word &optional following quietly continue region) | | Check spelling of word under or before the cursor. | | [...] | | Interactively, in Transient Mark mode when the mark is active, call | `ispell-region' to check the active region for spelling errors. `---- A quick grep through the emacs sources reveals, that at least those modes make use of this new feature. ,---- | lisp/allout.el: (cond ((fboundp 'use-region-p) '(use-region-p)) | lisp/indent.el: ((use-region-p) | lisp/org/org-compat.el: (use-region-p) | lisp/proced.el: (if (use-region-p) | lisp/proced.el: (cond ((use-region-p) ;; Omit active region | lisp/progmodes/ada-mode.el: (use-region-p) | lisp/progmodes/cc-cmds.el: (list current-prefix-arg (use-region-p))) | lisp/progmodes/delphi.el: (cond ((use-region-p) | lisp/progmodes/idlwave.el: (use-region-p) | lisp/progmodes/perl-mode.el: (cond ((use-region-p) ; indent the active region | lisp/progmodes/vera-mode.el: (cond ((and (not (featurep 'xemacs)) (use-region-p)) | lisp/progmodes/vhdl-mode.el: ((and (not (featurep 'xemacs)) (use-region-p)) | lisp/textmodes/conf-mode.el: (when (use-region-p) | lisp/textmodes/ispell.el: ((and region (use-region-p)) | lisp/textmodes/reftex.el: (use-region-p) | lisp/tooltip.el: `(use-region-p)) | lisp/vc-dir.el: (if (use-region-p) `---- But reading the docs, you can put (transient-mark-mode -1) into your .emacs to turn it off, and only when you want to use the special active region features, you turn it on for the following command with `C-SPC C-SPC'. Then you have the coloring and special region handling only when you really want it. Bye, Tassilo