From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.bugs Subject: bug#31209: 27.0.50; current-kill calls interprogram-paste-function more than once Date: Wed, 18 Apr 2018 19:58:10 +0100 Message-ID: <878t9k1gvx.fsf@tcd.ie> 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 1524077829 28328 195.159.176.226 (18 Apr 2018 18:57:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 18 Apr 2018 18:57:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (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 18 20:57:05 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 1f8sGP-0007E6-4c for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Apr 2018 20:57:05 +0200 Original-Received: from localhost ([::1]:45071 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8sIU-0004DC-6A for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Apr 2018 14:59:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8sIN-0004Cb-UW for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 14:59:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8sII-0003wM-W2 for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 14:59:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51685) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f8sII-0003wI-SI for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 14:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1f8sII-0000gu-ER for bug-gnu-emacs@gnu.org; Wed, 18 Apr 2018 14:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Apr 2018 18:59: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.15240779022608 (code B ref 31209); Wed, 18 Apr 2018 18:59:02 +0000 Original-Received: (at 31209) by debbugs.gnu.org; 18 Apr 2018 18:58:22 +0000 Original-Received: from localhost ([127.0.0.1]:59582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8sHe-0000fz-Ce for submit@debbugs.gnu.org; Wed, 18 Apr 2018 14:58:22 -0400 Original-Received: from mail-wr0-f175.google.com ([209.85.128.175]:36021) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f8sHa-0000fg-GS for 31209@debbugs.gnu.org; Wed, 18 Apr 2018 14:58:20 -0400 Original-Received: by mail-wr0-f175.google.com with SMTP id q13-v6so7583104wre.3 for <31209@debbugs.gnu.org>; Wed, 18 Apr 2018 11:58:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:subject:references:mail-followup-to:date:in-reply-to :message-id:user-agent:mime-version; bh=9X/uitVVxySq4fywrFK3/SgEE0llFqtQPBZIVCSTrhE=; b=Z55qP6dRtqFhFv9uaFQRGVcWsRGv9s/SSW9N+aKeuLC0NlfyZYTHv7BFtoAP0v4XP5 IYGuazl5k7R2XGxiK3JId5B4Glgwl/e/1/w8+Ht3DiyKywbMABY4Sts7xMTg5Ug2xbt0 tKEMFN/a2aDB3xUEnCsapa05s71FOuqVoVmc1NZdJIBTdvmlXwyucBzJsZBQC6R+wcax DduB2gMIvwMkIT9tlwpTxmaXiRcpO/yn9oMiT03Jx3Xd92jqVNVLDDeWO1nCk4C5E+yQ 0l4qeEi0B3t9V4UPdap7zSM6D9q6xP/62PRZZIXUNngh4wISAPE37tehWv3xSPBlUtT1 +qlQ== 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:mail-followup-to:date :in-reply-to:message-id:user-agent:mime-version; bh=9X/uitVVxySq4fywrFK3/SgEE0llFqtQPBZIVCSTrhE=; b=RphZ2nRdbkKCrHvWU94A90rs5jtHOl1PWq4pK3XFvD2zCdzeu5wi6o+NfJGoOllSzs 2+SnFKX9Z/Tofy3t0LGIzt38j84f070uUZZ4cg9tkk0UQPvvzRJPMXGMJxXajm/lqNfz MStj7QiD1t+BXSbpVqWmG7qDxo+6xTkvOU6SVwKLxTojt37m5hiPTUTaH8xjynvNOn8/ lPRLbViN1VHV6+u01aPsTJpco5RGge+68xOqB8VTqBSr//4AUJo04yOrsq7xUHUdrs5g 6lEBZWCzCH4dgWCVpSSpQlRqcYo8GT7ip657jgnshhqCbEJZd3sq4KtXgAXvATKr12DV KbGw== X-Gm-Message-State: ALQs6tC9ZjwXeo4/ftRec1GEDtEQEs8bmQnTYiXBP3vpFojYYb2RzjJ/ KvWUx76Y64kdYRpqJGdoxYvsbFsH X-Google-Smtp-Source: AIpwx48wmcNilf8gbPFLhCT36VuBQlEdfcVZWM2UkRaK3EiCie2ZIVWPWTnbkKDyxLtbIpPbFeUvLw== X-Received: by 10.80.184.74 with SMTP id k10mr4744880ede.307.1524077892557; Wed, 18 Apr 2018 11:58:12 -0700 (PDT) Original-Received: from localhost ([213.233.149.14]) by smtp.gmail.com with ESMTPSA id i6sm1241399edk.23.2018.04.18.11.58.11 for <31209@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Apr 2018 11:58:11 -0700 (PDT) Mail-Followup-To: <31209@debbugs.gnu.org> 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:145583 Archived-At: "Basil L. Contovounesios" writes: > 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. 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? -- Basil