[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `yank-and-mark` command?
From: |
Stefan Monnier |
Subject: |
Re: `yank-and-mark` command? |
Date: |
Sun, 05 Jul 2015 14:35:42 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> I am trying to mimic C-y C-x C-x. I have considered using
> a keyboard macro, but I would prefer a Lisp alternative.
That doesn't say in which way your code doesn't work like you want.
But my guess is that the yank sets deactivate-mark and
exchange-point-and-mark doesn't reset it, so after running the command
the mark is deactivated by the default code that deactivates the mark
after buffer modifications.
So you'll want to add (setq deactivate-mark nil) either before or after
exchange-point-and-mark.
Stefan
- `yank-and-mark` command?, Raffaele Ricciardi, 2015/07/04
- Re: `yank-and-mark` command?, Michael Heerdegen, 2015/07/05
- Message not available
- Re: `yank-and-mark` command?, Raffaele Ricciardi, 2015/07/05
- Re: `yank-and-mark` command?,
Stefan Monnier <=
- Re: `yank-and-mark` command?, Raffaele Ricciardi, 2015/07/06
- Re: `yank-and-mark` command?, Stefan Monnier, 2015/07/06
- Message not available
- Re: `yank-and-mark` command?, Raffaele Ricciardi, 2015/07/06
- Re: `yank-and-mark` command?, Stefan Monnier, 2015/07/06
- Re: `yank-and-mark` command?, Nicolas Richard, 2015/07/07
- Message not available
- Re: `yank-and-mark` command?, Damien Wyart, 2015/07/07
- Message not available
- Re: `yank-and-mark` command?, Stefan Monnier, 2015/07/07