help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `yank-and-mark` command?


From: Raffaele Ricciardi
Subject: Re: `yank-and-mark` command?
Date: Mon, 6 Jul 2015 16:45:10 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1

On 06/07/15 15:50, Stefan Monnier wrote:
Note that the call to exchange-point-and-mark is redundant.

Yet if I remove `exchange-point-and-mark', the command does not
work any longer.  Please compare the effects of the following
command:

(defun yank-and-mark/rr (&optional $arg)
  (interactive "*P")
  (yank $arg)
  (exchange-point-and-mark)
  (setq deactivate-mark nil))

with the same command, but without `exchange-point-and-mark'.

Tested in the "*scratch*" buffer, after "emacs -Q".  In
Fundamental Mode, too.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]