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: Saving match data Date: Sat, 17 Jun 2017 09:53:05 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1497707599 1365 195.159.176.226 (17 Jun 2017 13:53:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 17 Jun 2017 13:53:19 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 17 15:53:15 2017 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 1dMEA7-0008KO-4G for ged-emacs-devel@m.gmane.org; Sat, 17 Jun 2017 15:53:15 +0200 Original-Received: from localhost ([::1]:34840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMEA7-0006ZC-Kz for ged-emacs-devel@m.gmane.org; Sat, 17 Jun 2017 09:53:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMEA1-0006Z7-Vr for emacs-devel@gnu.org; Sat, 17 Jun 2017 09:53:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dME9y-0006iq-Rr for emacs-devel@gnu.org; Sat, 17 Jun 2017 09:53:10 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:16595) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dME9y-0006ig-LW for emacs-devel@gnu.org; Sat, 17 Jun 2017 09:53:06 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CSCwCbM0VZ/2/y92hcHQEFAQsBg1hCiiSGAJEzAZdcHIYCBAICgmlEFAECAQEBAQEBAWsohRkGViMQCw4mEhQYDSSKP64Oi2YBAQEHAiaLZYpcAQSeXpVPAYkZhwOVCTYhgQowIQgwh3QkiX8BAQE X-IPAS-Result: A0CSCwCbM0VZ/2/y92hcHQEFAQsBg1hCiiSGAJEzAZdcHIYCBAICgmlEFAECAQEBAQEBAWsohRkGViMQCw4mEhQYDSSKP64Oi2YBAQEHAiaLZYpcAQSeXpVPAYkZhwOVCTYhgQowIQgwh3QkiX8BAQE X-IronPort-AV: E=Sophos;i="5.39,352,1493697600"; d="scan'208";a="317699836" Original-Received: from 104-247-242-111.cpe.teksavvy.com (HELO ceviche.home) ([104.247.242.111]) by smtp.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 17 Jun 2017 09:53:05 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 1D31466238; Sat, 17 Jun 2017 09:53:05 -0400 (EDT) In-Reply-To: (Philipp Stephani's message of "Fri, 16 Jun 2017 22:16:59 +0000") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:215692 Archived-At: > + (when (or (function-get function 'pure) > + (function-get function 'side-effect-free)) > + (insert "\nThis function does not change the match data.")) Wouldn't it be more useful to say it doesn't have side-effects (which would obviously imply it doesn't change the match-data, along with all other global state)? Stefan