From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.bugs Subject: bug#36190: 27.0.50; `put-text-property' etc. with buffer argument calls current buffer's `after-change-functions' Date: Thu, 13 Jun 2019 21:37:40 +0000 Message-ID: References: <83h88tzbly.fsf@gnu.org> <835zp9z4oj.fsf@gnu.org> <83y325xnk0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000026574058b3b59f3" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="168385"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36190@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 13 23:55:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hbXge-000hS8-E4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Jun 2019 23:55:12 +0200 Original-Received: from localhost ([::1]:45994 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbXgd-0002Qe-Dl for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Jun 2019 17:55:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53852) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hbXR2-0004M2-Bl for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2019 17:39:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hbXR0-000654-AY for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2019 17:39:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50941) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hbXR0-00064B-4p for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2019 17:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hbXQz-0000D3-TU for bug-gnu-emacs@gnu.org; Thu, 13 Jun 2019 17:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Jun 2019 21:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36190 X-GNU-PR-Package: emacs Original-Received: via spool by 36190-submit@debbugs.gnu.org id=B36190.1560461904729 (code B ref 36190); Thu, 13 Jun 2019 21:39:01 +0000 Original-Received: (at 36190) by debbugs.gnu.org; 13 Jun 2019 21:38:24 +0000 Original-Received: from localhost ([127.0.0.1]:36252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbXQN-0000Bh-FR for submit@debbugs.gnu.org; Thu, 13 Jun 2019 17:38:23 -0400 Original-Received: from mail-oi1-f178.google.com ([209.85.167.178]:32978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hbXQL-0000BO-VZ for 36190@debbugs.gnu.org; Thu, 13 Jun 2019 17:38:22 -0400 Original-Received: by mail-oi1-f178.google.com with SMTP id q186so501504oia.0 for <36190@debbugs.gnu.org>; Thu, 13 Jun 2019 14:38:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=59zHJX4aXongYYX1aixw4w7cvb/Kl6ZnDvUgmGsyAQg=; b=mpXznZBuN4HrjOmAuhsIXx/BfyPD+iIibzGDbqtGhPc1WY5Qlqww7ubgUNSN3BAnnq BdaCUhe+T054byojed9HjoxgSDavxObYvdKAkN2oGb5fZFOKtKIeNQUqz+D+lJsQXmKl /+TXy1t6nrhB9FUCIjzwRYQza/f+e3ilh7bJIxYoHbVEYe7P6fd6q4cuOjQuUs8pGZbu zsmqBmnkXCJPxa+J7qQC4iW4x0dYvZMoBmsIeWUHlVUNbQdCvjKpQ9yaYEUE6f8Xp6/+ 9ipL2Y8Xj4kdXzmQBRGqzRxFwg16556fRWJyueMjJxs3BJBZUwUWBsCdNZiEM1c/IAwR jsgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=59zHJX4aXongYYX1aixw4w7cvb/Kl6ZnDvUgmGsyAQg=; b=MDpBuxOiJ+GabHHr5cLJQFXazppl9NEYywq2sde1bkLzxVLHizbT5CKWB9QrTQWYaO eZo3EEFYg20gYzKz/EGmJ3YZq1jvySMJIk5rhwrLywTj3U4gAjORctgbJXKsjHf53O9D 1z24yDcldb1WgiWC77FimVicNylh24G8PKh+KVgucHrhTwUnvnJBzlTVZRoHywKMmfgE e/I76YWmU0rKYnFTiO3Sc5UCb/P/0yFIAzmGDuAgsZN0gsL2WiQpR2XT3slj94hTz4Dq aqCIOC06SbWR41u89ZNdDjH++qCj7jleBwTHAVAX8ZjQBlUG2EplD51SKDWKyMPwRXqL 1dNQ== X-Gm-Message-State: APjAAAVmGG3szvp9TEWjUm1Eh8dVfi1TV7GdeTACIS0LxxBcnriPx/OJ jf09KrOuzakGys+jM2X5pgJBQerir1wfFZa/WJU= X-Google-Smtp-Source: APXvYqwHt6Vz0XguNhoj65bYCmjtxK7dWLIt8CmyJy8yss4PELRJLTjF0lKsr9JNbogi+nTQUPD/V7qkQRuKRr7d1Uw= X-Received: by 2002:aca:6c1:: with SMTP id 184mr4188357oig.122.1560461896200; Thu, 13 Jun 2019 14:38:16 -0700 (PDT) In-Reply-To: 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: 209.51.188.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:160530 Archived-At: --000000000000026574058b3b59f3 Content-Type: text/plain; charset="UTF-8" Here's a simplified patch (I'm unsure about the right tab convention to use; I hope I got this right). --000000000000026574058b3b59f3 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Switch-to-correct-buffer-in-put-text-property-etc.patch" Content-Disposition: attachment; filename="0001-Switch-to-correct-buffer-in-put-text-property-etc.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_jwv6oo5k0 RnJvbSA4NjY0YmUxYjBhYTU1NzMxNzc0ZmUyYjAxMGQ4ZGQ3MjU5Y2EyZDI4IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBQaXAgQ2V0IDxwaXBjZXRAZ21haWwuY29tPgpEYXRlOiBUaHUs IDEzIEp1biAyMDE5IDIxOjIxOjUwICswMDAwClN1YmplY3Q6IFtQQVRDSF0gU3dpdGNoIHRvIGNv cnJlY3QgYnVmZmVyIGluIHB1dC10ZXh0LXByb3BlcnR5IGV0Yy4KCiogc3JjL3RleHRwcm9wLmMg KGFkZF90ZXh0X3Byb3BlcnRpZXNfMSwgc2V0X3RleHRfcHJvcGVydGllcykKKEZyZW1vdmVfdGV4 dF9wcm9wZXJ0aWVzLCBGcmVtb3ZlX2xpc3Rfb2ZfdGV4dF9wcm9wZXJ0aWVzKToKdXNlIGBzaWdu YWxfYWZ0ZXJfY2hhbmdlX2luX2J1ZmZlcicuCgoqIHNyYy9pbn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KSkKLSAgICAgICAg ICAgICAgICBzaWduYWxfYWZ0ZXJfY2hhbmdlIChYRklYTlVNIChzdGFydCksCi0gICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgWEZJWE5VTSAoZW5kKSAtIFhGSVhOVU0gKHN0YXJ0 KSwKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBYRklYTlVNIChlbmQpIC0g WEZJWE5VTSAoc3RhcnQpKTsKLSAgICAgICAgICAgICAgcmV0dXJuIFF0OwotICAgICAgICAgICAg fQotICAgICAgICAgIGVsc2UKLSAgICAgICAgICAgIHJldHVybiBRbmlsOwotICAgICAgICB9CisJ eworCSAgaWYgKG1vZGlmaWVkKQorCSAgICB7CisJICAgICAgaWYgKEJVRkZFUlAgKG9iamVjdCkp CisJCXNpZ25hbF9hZnRlcl9jaGFuZ2VfaW5fYnVmZmVyIChYQlVGRkVSIChvYmplY3QpLCBYRklY TlVNIChzdGFydCksCisJCQkJCSAgICAgICBYRklYTlVNIChlbmQpIC0gWEZJWE5VTSAoc3RhcnQp LAorCQkJCQkgICAgICAgWEZJWE5VTSAoZW5kKSAtIFhGSVhOVU0gKHN0YXJ0KSk7CisJICAgICAg cmV0dXJuIFF0OworCSAgICB9CisJICBlbHNlCisJICAgIHJldHVybiBRbmlsOworCX0KICAgICB9 CiB9CiAMCi0tIAoyLjIwLjEKCg== --000000000000026574058b3b59f3--