From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Raffaele Ricciardi Newsgroups: gmane.emacs.help Subject: Re: `yank-and-mark` command? Date: Sun, 5 Jul 2015 20:02:13 +0200 Message-ID: <55997125.7020703@gmail.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1436119522 12422 80.91.229.3 (5 Jul 2015 18:05:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Jul 2015 18:05:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 05 20:05:22 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZBoI4-0000UL-UP for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Jul 2015 20:05:21 +0200 Original-Received: from localhost ([::1]:47320 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBoI4-00070y-7h for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Jul 2015 14:05:20 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-X-Trace: individual.net KdoMK/9JLIF+xUR8/4OSVAsexwOCBi0a0ykomLR8cSLBA3M24y Cancel-Lock: sha1:V/+6UebERp/K5uHHSjF/DgDKEwA= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 In-Reply-To: Original-Xref: usenet.stanford.edu gnu.emacs.help:213174 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105461 Archived-At: On 05/07/15 19:48, Michael Heerdegen wrote: > Raffaele Ricciardi writes: > >> implementation does not work: >> >> (defun yank-and-mark/rr (&optional $arg) >> (interactive "*P") >> (yank $arg) >> (exchange-point-and-mark)) > > In which way does the above not work like you want? Do you have > `transient-mark-mode' enabled in your config? 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. Transient Mark Mode is enabled by default in my Emacs.