From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#31209: 27.0.50; current-kill calls interprogram-paste-function more than once Date: Wed, 25 Apr 2018 07:56:18 -0400 Message-ID: <871sf3sdnh.fsf@gmail.com> References: <877ep42yqv.fsf@tcd.ie> <8736zs2yi4.fsf@tcd.ie> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1524657308 32492 195.159.176.226 (25 Apr 2018 11:55:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 25 Apr 2018 11:55:08 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) To: <31209@debbugs.gnu.org> Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 25 13:55:03 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fBJ0o-0008Jo-Q2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Apr 2018 13:55:03 +0200 Original-Received: from localhost ([::1]:36044 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBJ2v-0006xU-Jr for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Apr 2018 07:57:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fBJ2p-0006x0-FO for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2018 07:57:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fBJ2k-0000bd-Lk for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2018 07:57:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59147) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fBJ2k-0000bS-Go for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2018 07:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fBJ2k-0008Qs-4C for bug-gnu-emacs@gnu.org; Wed, 25 Apr 2018 07:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Apr 2018 11:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31209 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 31209-submit@debbugs.gnu.org id=B31209.152465738832375 (code B ref 31209); Wed, 25 Apr 2018 11:57:02 +0000 Original-Received: (at 31209) by debbugs.gnu.org; 25 Apr 2018 11:56:28 +0000 Original-Received: from localhost ([127.0.0.1]:38811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fBJ2B-0008Q2-W9 for submit@debbugs.gnu.org; Wed, 25 Apr 2018 07:56:28 -0400 Original-Received: from mail-io0-f181.google.com ([209.85.223.181]:44173) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fBJ29-0008Pi-Mt; Wed, 25 Apr 2018 07:56:26 -0400 Original-Received: by mail-io0-f181.google.com with SMTP id d11-v6so18593833iof.11; Wed, 25 Apr 2018 04:56:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=CPBk4bOMR8eggb9Kln1FyAf5oltV/RFM13WOMMBtGGY=; b=qizGD8EqGCSvFzCsB3b+i6c/3piGBA+LiZrkBs8uB6w/5jKzL2zPeUrAL6bfmR6Mp6 fZSFiLujKrWzM6K0oqiTtvX5jvtgRsGLLApF3ztQAk12s+3m8Ayzumfy6Q35xW+kvmnR mxZ4EcfCUHYmSS6p5jafwspKqZWoBtD7pE9/qYVE75IJqd0PYwSI6kvXEz3qjXSvYRQ5 jYiZmxlqBJ7OutDtzuXOEFjuX2ovAIpbQ1mnYrq+MavXqqwSkosN0TimluXZByN2dPYH zBaB22BdNhXF+CCctlmHYZDIqer+z6M6+dZRKscT/tWuolpieIY9SmbAmpGCZB+M//FV Ku0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=CPBk4bOMR8eggb9Kln1FyAf5oltV/RFM13WOMMBtGGY=; b=ffxTjj8GlgU7K5zdxbrNk8glttKXsjgESXqQ2goiDKwQD0LoXv7SsaY9CwbI651t9/ xIr3RZ1c0ur8aqMKXrQpEUQP6y6ZXPGyxiwNh+MFnHa0LwDLy9pYUb+e8hCKRCkoKc5y wmOep2EZYMNiUDHRpeFM3FUz/h/pa6L2xGpE8ImrGTkpe9imxKnoY+6jR6UAWaA3CNHx V+P7tkh3IjJJ+RkdlMwRUI79+3hzzOCtvCRRdVwXZjs4WcC1+bHs/i9PJKdqmL9MuwQ1 QNfiYKjSHprG/8jokbLYOJA5VzvBf+iRrKV0Q7qTVlnnVYCzyYPpJb1KOZjTx3rnYNCt PRIg== X-Gm-Message-State: ALQs6tCOJKdg84GVBso91iL/XC7UK+hk6YRJt9ArV49mG+EVegC7MD2A 4th6xsdyuQA0b30bSATCCpgq6w== X-Google-Smtp-Source: AB8JxZp2rCOjXJ4cbgjnsNm2Cb2+xRl06aoXHCGE6KPj9iVGzr48DOeAh1WmHe8ZgAMCikxzVXGbkQ== X-Received: by 2002:a6b:2e67:: with SMTP id i100-v6mr5104166ioo.193.1524657379830; Wed, 25 Apr 2018 04:56:19 -0700 (PDT) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id g16-v6sm6416386ita.0.2018.04.25.04.56.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Apr 2018 04:56:19 -0700 (PDT) In-Reply-To: <8736zs2yi4.fsf@tcd.ie> (Basil L. Contovounesios's message of "Wed, 18 Apr 2018 18:52:19 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:145747 Archived-At: tags 31209 fixed close 31209 27.1 quit "Basil L. Contovounesios" 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.