all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Turn off selection coloring
Date: Fri, 18 Sep 2009 07:49:15 +0200	[thread overview]
Message-ID: <87ws3wby5g.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: 87eiq5jkct.fsf@newsguy.com

Harry Putnam <reader@newsguy.com> 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-$, <menu-bar> <tools> <spell> <ispell-word>.
| 
| (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





  reply	other threads:[~2009-09-18  5:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-15 19:04 Turn off selection coloring Harry Putnam
2009-09-15 19:22 ` Tassilo Horn
2009-09-17 22:07   ` Harry Putnam
2009-09-18  5:49     ` Tassilo Horn [this message]
2009-09-18 14:53       ` Harry Putnam
2009-09-18 18:33         ` Tassilo Horn
2009-09-19 20:01           ` Harry Putnam
     [not found]           ` <mailman.7064.1253390548.2239.help-gnu-emacs@gnu.org>
2009-09-20 19:18             ` John A Pershing Jr
     [not found] <mailman.6729.1253041517.2239.help-gnu-emacs@gnu.org>
2009-09-20 21:49 ` Xah Lee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ws3wby5g.fsf@thinkpad.tsdh.de \
    --to=tassilo@member.fsf.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.