From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anselm Helbig Newsgroups: gmane.emacs.help Subject: Re: problems with color Date: Fri, 16 Dec 2005 09:35:50 +0100 Organization: Freie Universitaet Berlin Message-ID: <87vexp782h.wl@nospam.anselm.chemie.fu-berlin.de> References: <1134703702.751808.163300@g43g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1134724946 28779 80.91.229.2 (16 Dec 2005 09:22:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Dec 2005 09:22:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 16 10:22:25 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EnBlL-00026d-Aj for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Dec 2005 10:20:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EnBm1-0000tD-8p for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Dec 2005 04:21:09 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-X-Trace: news.uni-berlin.de cbmNYjZOvMfgD4j0GS9XhwclesIBndrKzJpjdcwARHdmzqqp5if3StO4j3 In-Reply-To: <1134703702.751808.163300@g43g2000cwa.googlegroups.com> Mail-Followup-To: anselm@chemie.fu-berlin.de User-Agent: Wanderlust/2.11.30 (Wonderwall) Emacs/21.4 Mule/5.0 (SAKAKI) Original-Xref: shelby.stanford.edu gnu.emacs.help:136342 Original-To: help-gnu-emacs@gnu.org 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:31986 Archived-At: 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- to define a region. It has some nice advanced features, too (rectangle functions with correct highlighting, for one). Hope that helps. Regards, Anselm