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

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

`yank-and-mark` command?


From: Raffaele Ricciardi
Subject: `yank-and-mark` command?
Date: Sat, 4 Jul 2015 23:43:03 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1

I am trying to write a command that yanks and marks the yanked text --
the equivalent of C-y C-x C-x -- with Transient Mark Mode. The obvious
implementation does not work:

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

I have tried cleverer implementations, but I will spare them for
another day ;)

Thank you.




reply via email to

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