From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Imports / inclusion of s.el into Emacs Date: Fri, 01 May 2020 14:57:33 -0400 Message-ID: References: <266155d4-f9c0-8ed3-8df5-32feea171076@yandex.ru> <329b7290-e9e0-2b5a-d24f-05435d99ed67@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="84502"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Philippe Vaucher , Emacs developers To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 01 20:58:36 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jUarq-000LqX-GE for ged-emacs-devel@m.gmane-mx.org; Fri, 01 May 2020 20:58:34 +0200 Original-Received: from localhost ([::1]:40836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUarp-0006xS-ER for ged-emacs-devel@m.gmane-mx.org; Fri, 01 May 2020 14:58:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUaqx-0005Eh-AX for emacs-devel@gnu.org; Fri, 01 May 2020 14:57:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUaqw-00044B-1m for emacs-devel@gnu.org; Fri, 01 May 2020 14:57:38 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:46008) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUaqv-00041i-Gg for emacs-devel@gnu.org; Fri, 01 May 2020 14:57:37 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 44B7F814DD; Fri, 1 May 2020 14:57:36 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 46A8D81111; Fri, 1 May 2020 14:57:34 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1588359454; bh=J7LcRgdxEdEvZu/CQi68+PDvR4QID5JKttan7LZvW4A=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=S6I4pe8XNINkwqZ+kaTypDwPN8hbooIW6pvt2J+87hKhgfFk/WYQx7i3XVtW6+Inq ATdTdmDBA+4JJ6B6azns4IyITTH4YhjCs8eH/Hl1LG0y0AAen54XW/Hhsgr+Qpa52X RI4fXt1SvUtPbkG73KVCKnpRFLDaw9G0tp000Cd7EYsdDCBCyX1K8xaDmbyPdbiCU7 BqVc3x+SberJUQnGn7HXwDfSFEp2o9WoR0Pch3gZ1LRi/retrVDQlUeSDe/UlNY7Qp oIu335LvxOwi6WFUCnJY1SYRg7J5kJW8wJStkIcTF0mHELCpnEZyyKDly7cCMr0xxI 7RbSWEZa4eyPA== Original-Received: from alfajor (unknown [216.154.3.202]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 05B1112078F; Fri, 1 May 2020 14:57:33 -0400 (EDT) In-Reply-To: <329b7290-e9e0-2b5a-d24f-05435d99ed67@yandex.ru> (Dmitry Gutov's message of "Fri, 1 May 2020 21:36:12 +0300") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/01 11:55:41 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:248340 Archived-At: >> Now this point raises an interesting question about save-match-data, are >> these guidelines available somewhere? > > Hmm. I'm not sure. There is this passage in searching.text, though: Maybe the doc could be improved to clarify that `save-match-data` should not be used to preserve someone else's match data but rather to protect your own match data in the rare case where you execute non-trivial code between the match and the use of the match-data. Stefan