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: Mon, 6 Jul 2015 16:45:10 +0200 Message-ID: References: <55997125.7020703@gmail.com> 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 1436194224 20818 80.91.229.3 (6 Jul 2015 14:50:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Jul 2015 14:50:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 06 16:50:24 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 1ZC7iy-0005Zh-3n for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Jul 2015 16:50:24 +0200 Original-Received: from localhost ([::1]:51438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZC7ix-0000Ev-Gv for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Jul 2015 10:50:23 -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 IJHKDI70La/H9oF91FFE8QTRhf20G4vwD1hiE7quztct00XeuF Cancel-Lock: sha1:tptxbvx8YLtfXXnw/kq/IdOqnbk= 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:213203 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:105489 Archived-At: 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.