From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] widen-limits c331b66: Implement buffer-widen-limits functionality Date: Wed, 23 Mar 2016 17:34:50 +0200 Message-ID: <83r3f12oo5.fsf@gnu.org> References: <20160322022539.16038.77264@vcs.savannah.gnu.org> <8737riqouj.fsf@gmail.com> <221845e0-b194-433e-bfbc-105272ae5752@default> <87twjyp21k.fsf@gmail.com> <56F242E0.7060004@online.de> <877fgtpfrw.fsf@gmail.com> <56F293E7.2000703@online.de> <87a8lpnusg.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1458747329 20304 80.91.229.3 (23 Mar 2016 15:35:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Mar 2016 15:35:29 +0000 (UTC) Cc: andreas.roehler@online.de, emacs-devel@gnu.org To: Vitalie Spinu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 23 16:35:19 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 1aikoZ-0003kM-ID for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2016 16:35:19 +0100 Original-Received: from localhost ([::1]:44574 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aikoY-0001dQ-N5 for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2016 11:35:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aikoS-0001dG-Ow for emacs-devel@gnu.org; Wed, 23 Mar 2016 11:35:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aikoN-0003vp-Um for emacs-devel@gnu.org; Wed, 23 Mar 2016 11:35:12 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aikoN-0003vi-Ra; Wed, 23 Mar 2016 11:35:07 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1867 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aikoM-0005T8-Ah; Wed, 23 Mar 2016 11:35:07 -0400 In-reply-to: <87a8lpnusg.fsf@gmail.com> (message from Vitalie Spinu on Wed, 23 Mar 2016 15:17:03 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:202139 Archived-At: > From: Vitalie Spinu > Date: Wed, 23 Mar 2016 15:17:03 +0100 > Cc: emacs-devel@gnu.org > > Widen doesn't go wrong in itself. It what you do when you widen. In multi-modes > which use narrowing to create a micro-universe for inner modes, inner mode might > widen then compute some stuff on code from other language regions. This leads to > errors of all kind. > > For example when multi-mode advices font-lock-default-fontify-region it cannot > control what individual functions in font-lock-keywords are doing. In case of > syntax-propertize-function it's a complete black box. The function can decide to > do whatever there. > > Luckily if major-modes doesn't use widen or parse-partial-sexp directly it all > seem to work quite well with proper advice of relevant functions. Isn't prog-widen the solution to those issues?