all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: LanX <lanx.perl@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: restore region after replace-string
Date: Sat, 15 Jan 2011 05:23:18 -0800 (PST)	[thread overview]
Message-ID: <0dfdb0af-c0b4-446b-8d3d-d194b128d85f@u32g2000yqe.googlegroups.com> (raw)
In-Reply-To: mailman.10.1295051790.18911.help-gnu-emacs@gnu.org

> Can anybody shed any light on this, or point me in a better direction?

hmm I tried to find any switch in the documentation, but AFAIS it's an
integral feature of transient-mark-mode to disable the highlighting
after any changes in the buffer: 'Changing the buffer "deactivates"
the mark.'

C-h d mark.*mode will help you list all commands related to this
behavior.

I have two suggestions

- either explicitely mark the region by memorizing point and mark or
getting those positions from the mark-ring

- or use narrow-to-region and widen afterwords, like this you can use
anything you want on the region.

HTH
  Rolf


       reply	other threads:[~2011-01-15 13:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.10.1295051790.18911.help-gnu-emacs@gnu.org>
2011-01-15 13:23 ` LanX [this message]
2011-01-15 20:07   ` restore region after replace-string Paul Madden
2011-01-16 10:28   ` Le Wang
2011-01-16 17:08     ` Paul Madden
2011-01-17  2:22       ` Le Wang
2011-01-17  2:38         ` Paul Madden
     [not found]   ` <mailman.15.1295181948.22773.help-gnu-emacs@gnu.org>
2011-01-16 18:24     ` LanX
2011-01-14 22:57 Paul Madden

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=0dfdb0af-c0b4-446b-8d3d-d194b128d85f@u32g2000yqe.googlegroups.com \
    --to=lanx.perl@googlemail.com \
    --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.