unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Raffaele Ricciardi <rfflrccrd@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: `yank-and-mark` command?
Date: Mon, 6 Jul 2015 16:45:10 +0200	[thread overview]
Message-ID: <cvvijmF1e9nU1@mid.individual.net> (raw)
In-Reply-To: <mailman.6444.1436190783.904.help-gnu-emacs@gnu.org>

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.



  parent reply	other threads:[~2015-07-06 14:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cvvijmF1e9nU1@mid.individual.net \
    --to=rfflrccrd@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).