unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Anselm Helbig <anselm@chemie.fu-berlin.de>
Subject: Re: problems with color
Date: Fri, 16 Dec 2005 09:35:50 +0100	[thread overview]
Message-ID: <87vexp782h.wl@nospam.anselm.chemie.fu-berlin.de> (raw)
In-Reply-To: <1134703702.751808.163300@g43g2000cwa.googlegroups.com>

At 15 Dec 2005 19:28:22 -0800,
matheffex@gmail.com wrote:
> 
> Hi, I am using Emacs21.4 on a Debian Linux.
> When I use C-@ or other keybindings to set a mark, the background color
> of the marked region remains unchanged, while it does change when I
> select the region with mouse. This occurs both in console and X.
> So anybody can help? I will be very grateful.

Hi, 

This is normal behaviour, and it's reasonable, too. Once you have set
the `mark' in an emacs buffer (this is what you do with C-@ or
C-SPACE), there is always a `region'. It would be really annoying, if
the highlighting of the region was always on. 

There is something called transient-mark-mode that does what you
want. Put this in your .emacs:

	(transient-mark-mode 1)

But I think the default behaviour has some benefits: the mark does not
get unset if you do some minor edits, so you don't have to find the
position of the mark again. And the highlighting is not appropriate
when you use the rectangle functions (which i use a lot). 

If you want a more "standard" behaviour, in the sense how the
non-emacs-world sees it, you also might be interested in cua-mode,
which you can find here:

	http://www.cua.dk/

This gives you C-c, C-x and C-v for copy, cut and paste, and S-<arrow
keys> to define a region. It has some nice advanced features, too
(rectangle functions with correct highlighting, for one). 

Hope that helps.

Regards, 

Anselm

  parent reply	other threads:[~2005-12-16  8:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-16  3:28 problems with color matheffex
2005-12-16  3:59 ` Drew Adams
2005-12-16  8:35 ` Anselm Helbig [this message]
2005-12-17  3:36   ` matheffex

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87vexp782h.wl@nospam.anselm.chemie.fu-berlin.de \
    --to=anselm@chemie.fu-berlin.de \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).