all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@gmail.com>
To: "Basil L. Contovounesios" <contovob@tcd.ie>
Cc: 31097@debbugs.gnu.org
Subject: bug#31097: 27.0.50; Interprogram paste is destructively modified
Date: Thu, 12 Apr 2018 19:35:43 -0400	[thread overview]
Message-ID: <87a7u8kng0.fsf@gmail.com> (raw)
In-Reply-To: <87bmetloaq.fsf@tcd.ie> (Basil L. Contovounesios's message of "Sun, 08 Apr 2018 16:18:21 +0100")

severity 31097 minor
quit

"Basil L. Contovounesios" <contovob@tcd.ie> writes:

> * simple.el (kill-new, current-kill): Non-destructively reverse list
> returned by interprogram-paste-function. (bug#31097)

Seems reasonable.  Perhaps add some comments in case someone tries to
"optimize" it later?

>  If optional arg DO-NOT-MOVE is non-nil, then don't actually
>  move the yanking point; just return the Nth kill forward."
> -
>   (let ((interprogram-paste (and (= n 0)

> -      (let ((ARGth-kill-element
> +      (let ((nth-kill-element
>  	     (nthcdr (mod (- n (length kill-ring-yank-pointer))
>  			  (length kill-ring))
>  		     kill-ring)))
>  	(unless do-not-move
> -	  (setq kill-ring-yank-pointer ARGth-kill-element)
> +          (setq kill-ring-yank-pointer nth-kill-element)
>  	  (when (and yank-pop-change-selection
>  		     (> n 0)
>  		     interprogram-cut-function)
> -	    (funcall interprogram-cut-function (car ARGth-kill-element))))
> -	(car ARGth-kill-element)))))
> +            (funcall interprogram-cut-function (car nth-kill-element))))
> +        (car nth-kill-element)))))

I don't think these hunks are needed.





  reply	other threads:[~2018-04-12 23:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-08 15:09 bug#31097: 27.0.50; Interprogram paste is destructively modified Basil L. Contovounesios
2018-04-08 15:18 ` Basil L. Contovounesios
2018-04-12 23:35   ` Noam Postavsky [this message]
2018-04-13 11:56     ` Basil L. Contovounesios
2018-04-14  6:11       ` Noam Postavsky

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

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

  git send-email \
    --in-reply-to=87a7u8kng0.fsf@gmail.com \
    --to=npostavs@gmail.com \
    --cc=31097@debbugs.gnu.org \
    --cc=contovob@tcd.ie \
    /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.
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.