From: Noam Postavsky <npostavs@gmail.com>
To: <31209@debbugs.gnu.org>
Subject: bug#31209: 27.0.50; current-kill calls interprogram-paste-function more than once
Date: Wed, 25 Apr 2018 07:56:18 -0400 [thread overview]
Message-ID: <871sf3sdnh.fsf@gmail.com> (raw)
In-Reply-To: <8736zs2yi4.fsf@tcd.ie> (Basil L. Contovounesios's message of "Wed, 18 Apr 2018 18:52:19 +0100")
tags 31209 fixed
close 31209 27.1
quit
"Basil L. Contovounesios" <contovob@tcd.ie> writes:
> The first makes current-kill disable interprogram-paste-function in
> addition to interprogram-cut-function before calling kill-new.
Pushed to master [1: 532f5fb387].
> The second suggests potential clarifications in related documentation,
> both in '(elisp) Low-Level Kill Ring' and simple.el docstrings.
> Hopefully someone can further improve upon these.
Pushed to emacs-26 [2: 343d70b10e].
[1: 532f5fb387]: 2018-04-25 07:37:32 -0400
Do not call interprogram-paste-function repeatedly
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=532f5fb3877ccd535a822f7c3c08d396621b4325
[2: 343d70b10e]: 2018-04-24 20:58:15 -0400
Improve kill-related documentation (bug#31209)
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=343d70b10edbd42ebe49ada3a8ef878b2ee044f0
> I just noticed one more thing. The docstring of
> interprogram-paste-function ends with:
>
> Note that the function should return a string only if a program
> other than Emacs has provided a string for pasting; if Emacs
> provided the most recent string, the function should return nil.
> If it is difficult to tell whether Emacs or some other program
> provided the current string, it is probably good enough to return
> nil if the string is equal (according to `string=') to the last
> ^^^^^^^
> text Emacs provided.
>
> Would equal-including-properties (as per kill-do-not-save-duplicates) be
> more accurate here, or is string= fine?
I guess if we're talking about strings coming from other programs,
properties are unlikely to show up.
prev parent reply other threads:[~2018-04-25 11:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-18 17:47 bug#31209: 27.0.50; current-kill calls interprogram-paste-function more than once Basil L. Contovounesios
2018-04-18 17:52 ` Basil L. Contovounesios
2018-04-18 18:58 ` Basil L. Contovounesios
2018-04-25 11:56 ` Noam Postavsky [this message]
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=871sf3sdnh.fsf@gmail.com \
--to=npostavs@gmail.com \
--cc=31209@debbugs.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).