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: Mon, 21 Mar 2016 14:36:53 -0400 Message-ID: References: <20160311151512.GD2888@acm.fritz.box> <20160311212410.GG2888@acm.fritz.box> <73903215-f94b-e194-7bfe-0d6350c95769@yandex.ru> <20160311221540.GH2888@acm.fritz.box> <2c301ec9-041d-9172-d628-479062314b23@yandex.ru> <20160314151621.GF1894@acm.fritz.box> <874mc2dqtk.fsf@gmail.com> <87egb5cpmg.fsf@gmail.com> <87a8lsd4j3.fsf@gmail.com> <87mvpsbeok.fsf_-_@gmail.com> <87pounew9e.fsf@gmail.com> <87twjzda4h.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1458585448 15761 80.91.229.3 (21 Mar 2016 18:37:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2016 18:37:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: Vitalie Spinu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 21 19:37:20 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 1ai4hc-0001Ld-Gq for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2016 19:37:20 +0100 Original-Received: from localhost ([::1]:59718 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai4hc-0007CY-0A for ged-emacs-devel@m.gmane.org; Mon, 21 Mar 2016 14:37:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai4hG-0007Ae-E4 for emacs-devel@gnu.org; Mon, 21 Mar 2016 14:36:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ai4hD-0003Pw-6T for emacs-devel@gnu.org; Mon, 21 Mar 2016 14:36:58 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:36567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai4hD-0003Pq-1k for emacs-devel@gnu.org; Mon, 21 Mar 2016 14:36:55 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id u2LIbNp0026843; Mon, 21 Mar 2016 14:37:23 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 418D26059C; Mon, 21 Mar 2016 14:36:53 -0400 (EDT) In-Reply-To: <87twjzda4h.fsf@gmail.com> (Vitalie Spinu's message of "Mon, 21 Mar 2016 18:16:46 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5617=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5617> : inlines <4541> : streams <1606622> : uri <2171520> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:202024 Archived-At: >> That it sets narrowing and leaves it there. So it can't use >> call-with-hard-narrowing for that. > Why would it need it for? Because an info file is made up of various nodes, and Emacs only shows one node at a time by narrowing. This narrowing should be "hard" because font-lock and such should only operate on a node at a time. The same was true for Rmail which used to show the content of each email simply by narrowing the mailbox file to the specific email. Not sure if it still does that (clearly it can't be so simple with MIME's base64 and attachments). > This is outside of use cases that I have in mind. Indeed, it's a different case, but one where the narrowing should be hard as well. Stefan