all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Johan Andersson <johan.rejeep@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Selected region not visible
Date: Sat, 13 Mar 2010 21:15:02 +0100	[thread overview]
Message-ID: <e01d8a51003131215ne4fdb6bj15876ac8508cf55f@mail.gmail.com> (raw)
In-Reply-To: <929ccd881003131206h296b5bffu8099eecda0605fd6@mail.gmail.com>

On Sat, Mar 13, 2010 at 9:06 PM, Johan Andersson <johan.rejeep@gmail.com> wrote:
> (defun test ()
>   (interactive)
>   (let ((region (buffer-substring-no-properties (point) (mark))))
>     (delete-region (point) (mark))
>     (forward-char 1)
>     (insert region)
>     (set-mark 2)
>     (goto-char 20)))

You need to add

  (setq deactivate-mark nil)




  reply	other threads:[~2010-03-13 20:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-13 20:06 Selected region not visible Johan Andersson
2010-03-13 20:15 ` Lennart Borgman [this message]
2010-03-13 21:46   ` Johan Andersson

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=e01d8a51003131215ne4fdb6bj15876ac8508cf55f@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=johan.rejeep@gmail.com \
    /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.