all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* problems with color
@ 2005-12-16  3:28 matheffex
  2005-12-16  3:59 ` Drew Adams
  2005-12-16  8:35 ` Anselm Helbig
  0 siblings, 2 replies; 4+ messages in thread
From: matheffex @ 2005-12-16  3:28 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: problems with color
  2005-12-16  3:28 problems with color matheffex
@ 2005-12-16  3:59 ` Drew Adams
  2005-12-16  8:35 ` Anselm Helbig
  1 sibling, 0 replies; 4+ messages in thread
From: Drew Adams @ 2005-12-16  3:59 UTC (permalink / raw)


    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.

To get more reasonable behavior (IMO), use both delete-selection-mode and
transient-mark-mode. See
http://www.emacswiki.org/cgi-bin/wiki/DeleteSelectionMode.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problems with color
  2005-12-16  3:28 problems with color matheffex
  2005-12-16  3:59 ` Drew Adams
@ 2005-12-16  8:35 ` Anselm Helbig
  2005-12-17  3:36   ` matheffex
  1 sibling, 1 reply; 4+ messages in thread
From: Anselm Helbig @ 2005-12-16  8:35 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problems with color
  2005-12-16  8:35 ` Anselm Helbig
@ 2005-12-17  3:36   ` matheffex
  0 siblings, 0 replies; 4+ messages in thread
From: matheffex @ 2005-12-17  3:36 UTC (permalink / raw)


I see.
Thank you very much.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-12-17  3:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-16  3:28 problems with color matheffex
2005-12-16  3:59 ` Drew Adams
2005-12-16  8:35 ` Anselm Helbig
2005-12-17  3:36   ` matheffex

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.