all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* `yank-and-mark` command?
@ 2015-07-04 21:43 Raffaele Ricciardi
  2015-07-05 17:48 ` Michael Heerdegen
       [not found] ` <mailman.6386.1436118550.904.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 11+ messages in thread
From: Raffaele Ricciardi @ 2015-07-04 21:43 UTC (permalink / raw)
  To: help-gnu-emacs

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.




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-07-07 14:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-04 21:43 `yank-and-mark` command? Raffaele Ricciardi
2015-07-05 17:48 ` Michael Heerdegen
     [not found] ` <mailman.6386.1436118550.904.help-gnu-emacs@gnu.org>
2015-07-05 18:02   ` Raffaele Ricciardi
2015-07-05 18:35     ` Stefan Monnier
2015-07-06  8:37       ` Raffaele Ricciardi
2015-07-06 13:50         ` Stefan Monnier
     [not found]         ` <mailman.6444.1436190783.904.help-gnu-emacs@gnu.org>
2015-07-06 14:45           ` Raffaele Ricciardi
2015-07-06 16:06             ` Stefan Monnier
2015-07-07 11:29               ` Nicolas Richard
     [not found]               ` <mailman.6480.1436268552.904.help-gnu-emacs@gnu.org>
2015-07-07 11:50                 ` Damien Wyart
2015-07-07 14:49                 ` Stefan Monnier

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.