From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Patch] hard-widen-limits [was Re: Syntax tables for multiple modes [was: bug#22983: syntax-ppss returns wrong result.]] Date: Wed, 23 Mar 2016 08:34:02 -0400 Message-ID: References: <20160311151512.GD2888@acm.fritz.box> <87egb5cpmg.fsf@gmail.com> <87a8lsd4j3.fsf@gmail.com> <87mvpsbeok.fsf_-_@gmail.com> <87pounew9e.fsf@gmail.com> <87twjzda4h.fsf@gmail.com> <87lh5bd4ib.fsf@gmail.com> <87egb3ryjc.fsf@gmail.com> <877fgusum3.fsf@gmail.com> <8737risu8d.fsf@gmail.com> <87mvpqqxy7.fsf@gmail.com> <877fguqp8x.fsf@gmail.com> <87bn65pgk2.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1458736463 27676 80.91.229.3 (23 Mar 2016 12:34:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Mar 2016 12:34:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: Vitalie Spinu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 23 13:34:15 2016 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 1aihzK-0005ej-E8 for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2016 13:34:14 +0100 Original-Received: from localhost ([::1]:43849 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aihzJ-0001SQ-Rr for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2016 08:34:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aihzF-0001Qb-2u for emacs-devel@gnu.org; Wed, 23 Mar 2016 08:34:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aihzB-00040G-U8 for emacs-devel@gnu.org; Wed, 23 Mar 2016 08:34:09 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:14305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aihzB-0003zp-Pw for emacs-devel@gnu.org; Wed, 23 Mar 2016 08:34:05 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CYDQA731xV/5a2xEVcgxCEAshgBAICgTw8EQEBAQEBAQGBCkEFg10BAQMBVhwHBQsLNAcLFBgNJIg3CM8jAQEBBwEBAQEeizqFBQeELQEEmW2ZUoFFI4I7gVkigngBAQE X-IPAS-Result: A0CYDQA731xV/5a2xEVcgxCEAshgBAICgTw8EQEBAQEBAQGBCkEFg10BAQMBVhwHBQsLNAcLFBgNJIg3CM8jAQEBBwEBAQEeizqFBQeELQEEmW2ZUoFFI4I7gVkigngBAQE X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="197930456" Original-Received: from 69-196-182-150.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([69.196.182.150]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 23 Mar 2016 08:34:04 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 07047AE242; Wed, 23 Mar 2016 08:34:02 -0400 (EDT) In-Reply-To: <87bn65pgk2.fsf@gmail.com> (Vitalie Spinu's message of "Wed, 23 Mar 2016 12:41:33 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) 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.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:202129 Archived-At: > Ok. So we agree that there is work involved of tracking an extra > marker. Whenever buffer is modified by low level code, it must track new ZH > marker and respect the relationship between ZH and ZV. There are 544 occurrences > of ZV in emacs source. In order to add this extra marker one would need to go > through all of those cases and enforce the semantics of ZH. I wouldn't want to touch Z* and BEG*, indeed. I'm just suggesting to keep the limits as markers rather than as integers. It's a trivial change. Stefan