From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Davis Herring Newsgroups: gmane.emacs.devel Subject: Re: /srv/bzr/emacs/trunk r101338: * lisp/emacs-lisp/syntax.el (syntax-ppss): More sanity check to catch Date: Thu, 20 Feb 2014 08:52:03 -0700 Organization: XCP-1 Message-ID: <530624A3.9040103@lanl.gov> References: <87r47bi1e5.fsf@yandex.ru> <52F96284.50507@yandex.ru> <52FAE12B.6060101@yandex.ru> <52FC3BEE.60604@yandex.ru> <52FCD2B4.5080006@yandex.ru> <52FD9F1D.50205@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1392911549 5011 80.91.229.3 (20 Feb 2014 15:52:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Feb 2014 15:52:29 +0000 (UTC) Cc: emacs-devel@gnu.org, Dmitry Gutov To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 20 16:52:36 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WGVvI-0000RY-Ss for ged-emacs-devel@m.gmane.org; Thu, 20 Feb 2014 16:52:29 +0100 Original-Received: from localhost ([::1]:39346 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGVvI-0007nu-GG for ged-emacs-devel@m.gmane.org; Thu, 20 Feb 2014 10:52:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGVv6-0007k5-Se for emacs-devel@gnu.org; Thu, 20 Feb 2014 10:52:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGVuy-0002Ig-BS for emacs-devel@gnu.org; Thu, 20 Feb 2014 10:52:16 -0500 Original-Received: from proofpoint5.lanl.gov ([204.121.3.53]:44249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGVuy-0002Ha-4E for emacs-devel@gnu.org; Thu, 20 Feb 2014 10:52:08 -0500 Original-Received: from mailrelay2.lanl.gov (mailrelay2.lanl.gov [128.165.4.103]) by mailgate5.lanl.gov (8.14.5/8.14.5) with ESMTP id s1KFq3FW031861; Thu, 20 Feb 2014 08:52:03 -0700 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay2.lanl.gov (Postfix) with ESMTP id DBAB6E8647C; Thu, 20 Feb 2014 08:52:03 -0700 (MST) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay2.lanl.gov Original-Received: from [128.165.123.233] (xray-r09.lanl.gov [128.165.123.233]) by mailrelay2.lanl.gov (Postfix) with ESMTP id C27A8E8647D; Thu, 20 Feb 2014 08:52:03 -0700 (MST) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110717 Lanikai/3.1.11 In-Reply-To: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.87, 1.0.14, 0.0.0000 definitions=2014-02-20_06:2014-02-20, 2014-02-20, 1970-01-01 signatures=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 204.121.3.53 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:169785 Archived-At: > BTW, I really don't know yet what will work best. Maybe the > "save&restore only those vars we've been told" as is currently done is > indeed the best option. But in that case it shouldn't be done via > a variable listing those symbols, but e.g. by adding a special > property to those symbols. A C programmer wouldn't save and restore many variables, but rather would swap pointers to structs (or, in the dynamic case, lists). This suggests that there could be a "mode-local" object: either a well-known map in ELisp (which would require explicit lookups, as in the C case) or a parallel to buffer-local variables in C. One could even obtain it from text properties at point. Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.