From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Lisp primitives and their calling of the change hooks Date: Sun, 07 Jan 2018 12:50:26 -0500 Message-ID: References: <20180104155111.GB6846@ACM> <20180104211154.GC6846@ACM> <20180106151839.GB23284@ACM> <20180106202403.GD23284@ACM> <20180107113628.GA22254@ACM> <83o9m599du.fsf@gnu.org> <20180107120859.GB22254@ACM> <20180107135629.GC22254@ACM> <83mv1p8vki.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1515347369 5512 195.159.176.226 (7 Jan 2018 17:49:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 7 Jan 2018 17:49:29 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: Alan Mackenzie , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 07 18:49:25 2018 Return-path: Envelope-to: ged-emacs-devel@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 1eYF4T-0000wB-Qk for ged-emacs-devel@m.gmane.org; Sun, 07 Jan 2018 18:49:21 +0100 Original-Received: from localhost ([::1]:60701 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYF6T-0000Uk-Ch for ged-emacs-devel@m.gmane.org; Sun, 07 Jan 2018 12:51:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYF5q-0000U5-4h for emacs-devel@gnu.org; Sun, 07 Jan 2018 12:50:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYF5p-0006lE-Ff for emacs-devel@gnu.org; Sun, 07 Jan 2018 12:50:46 -0500 Original-Received: from pmta21.teksavvy.com ([76.10.157.36]:61626) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1eYF5l-0006gM-2H; Sun, 07 Jan 2018 12:50:41 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2GFPACuXVJa/yyKSC1cHgEGDIM/gVqJS?= =?us-ascii?q?YR6jnGCApk/CoU7AoQyQxQBAQEBAQEBAQEDaCiFJQEEAXkQCw0nEhQYMYo8CLQ?= =?us-ascii?q?mIQKKDgEBAQcCJoQgghWGbYRnhjMFkzmQJZc8AYoPKIdTlxeBPDYjgVAyGggwg?= =?us-ascii?q?miEdCOIBoJLAQEB?= X-IPAS-Result: =?us-ascii?q?A2GFPACuXVJa/yyKSC1cHgEGDIM/gVqJSYR6jnGCApk/CoU?= =?us-ascii?q?7AoQyQxQBAQEBAQEBAQEDaCiFJQEEAXkQCw0nEhQYMYo8CLQmIQKKDgEBAQcCJ?= =?us-ascii?q?oQgghWGbYRnhjMFkzmQJZc8AYoPKIdTlxeBPDYjgVAyGggwgmiEdCOIBoJLAQE?= =?us-ascii?q?B?= X-IronPort-AV: E=Sophos;i="5.46,326,1511845200"; d="scan'208";a="17040779" Original-Received: from unknown (HELO ceviche.home) ([45.72.138.44]) by smtp.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Jan 2018 12:50:36 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 6854F66326; Sun, 7 Jan 2018 12:50:26 -0500 (EST) In-Reply-To: <83mv1p8vki.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 07 Jan 2018 18:47:41 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 76.10.157.36 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:221681 Archived-At: >> Should I try to fix zlib-decompress-region? > How do you want to fix it? That function inserts the decompressed > stuff, then deletes the original compressed stuff. What do you want > that to produce in terms of the change hooks? Either one b-c-f at the beginning and and one a-c-f at the end, or one b-c-f/a-c-f pair for the insertion followed by another for the deletion. It doesn't matter much which. Stefan