all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#31097: 27.0.50; Interprogram paste is destructively modified
@ 2018-04-08 15:09 Basil L. Contovounesios
  2018-04-08 15:18 ` Basil L. Contovounesios
  0 siblings, 1 reply; 5+ messages in thread
From: Basil L. Contovounesios @ 2018-04-08 15:09 UTC (permalink / raw)
  To: 31097

Consider the following case:

(defvar my-paste '("foo" "bar"))
(defun my-paste () my-paste)
(setq interprogram-paste-function #'my-paste)

my-paste           ; => ("foo" "bar")
(current-kill 0 t) ; => "foo"
my-paste           ; => ("foo")

This is clearly a contrived use of interprogram-paste-function, but IMO
functions ought not needlessly make destructive changes to non-internal
values not known to be newly created.

Patch to follow in case others share my opinion.

Thanks,

-- 
Basil

In GNU Emacs 27.0.50 (build 2, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2018-04-08 built on thunk
Repository revision: 8df23a82042fa7dbaaa4377bc376d705595b073f
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
System Description: Debian GNU/Linux buster/sid

Configured features:
XAW3D XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS LUCID X11 MODULES THREADS LIBSYSTEMD JSON LCMS2





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

end of thread, other threads:[~2018-04-14  6:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2018-04-13 11:56     ` Basil L. Contovounesios
2018-04-14  6:11       ` Noam Postavsky

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.