From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] scratch/widen-less a4ba846: Replace prog-widen with consolidating widen calls Date: Mon, 4 Dec 2017 00:03:14 +0000 Message-ID: References: <20171129233237.27462.23351@vcs0.savannah.gnu.org> <20171129233238.504B5204F1@vcs0.savannah.gnu.org> <5d668ce5-1482-a3d4-c01b-7d996a532567@yandex.ru> <20171130214621.GA22157@ACM> <27985594-3bb4-ce88-8928-2ccfeac13eae@yandex.ru> <20171201154913.GB3840@ACM> <1e542021-e389-cca4-6acd-349efddb2652@yandex.ru> <20171201223529.GG3840@ACM> <4a94ec5c-efdd-50f1-ff4d-277f5f45c2df@yandex.ru> <83lgil1qme.fsf@gnu.org> <83d13x1j2s.fsf@gnu.org> <34abea95-c7f7-e8fa-8407-8c2fd2a4cfe1@yandex.ru> <83y3mkzw1n.fsf@gnu.org> <83mv2zzv7z.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1512345838 27800 195.159.176.226 (4 Dec 2017 00:03:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 4 Dec 2017 00:03:58 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Thunderbird/57.0 To: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 04 01:03:51 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLeEg-0006oB-8b for ged-emacs-devel@m.gmane.org; Mon, 04 Dec 2017 01:03:50 +0100 Original-Received: from localhost ([::1]:40597 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLeEn-00053M-Fq for ged-emacs-devel@m.gmane.org; Sun, 03 Dec 2017 19:03:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eLeEA-00053E-QO for emacs-devel@gnu.org; Sun, 03 Dec 2017 19:03:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eLeEA-0005QL-1F for emacs-devel@gnu.org; Sun, 03 Dec 2017 19:03:18 -0500 Original-Received: from mail-lf0-x22f.google.com ([2a00:1450:4010:c07::22f]:45722) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eLeE9-0005Q1-Py for emacs-devel@gnu.org; Sun, 03 Dec 2017 19:03:17 -0500 Original-Received: by mail-lf0-x22f.google.com with SMTP id f13so17164913lff.12 for ; Sun, 03 Dec 2017 16:03:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=omhsQfyrhb1DfopKhm97JeHktJWTFePlMKctRgETkuA=; b=jvKKc1i2zQ66+BDK8gMdEJBWzUsFc80jOTO2d+zVxED8n3sKR1xX99DwckCSQyfCBM N8urF5zkSGMFDYqzOBwFpwtyD7qWxwZaA0EO/agY9x1e35H59DLZjXQ/naSzInE6ZNu1 ApwL7dsvmuEkfiH7G0QiD92Mk3B7/LAX2nab5r1sBGVGvM1m+jSmbB7+rjGMBvx6uBYE FzMpISTknawDxVwmnxTtiFNZsczE2pquvO37LXZNGe10DYAaMsviQjiM1qfrCBeIscpL tdQL3WLfx9kL/VbVMfPNivz83ulODwzlsDr4lNB73pj7dC5/5Sn1oN69ZbK4SBZLotMB oPBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=omhsQfyrhb1DfopKhm97JeHktJWTFePlMKctRgETkuA=; b=WzBz15KsZVtllIpD9Rru8O2R+ZB4O9Tk1Wb2khd7ZVY3Bt0eMS18sxHpekvNzqirmh LtDIjUnG88i++P3yjX6qyxo8YrE9jNSMDA9FKabqu2Wtjj20YXf4HiDaL6M9DGwk6Dbg NlsUl7ejo+8/ClGxAeTf53kOV0ujwdELl+Otn+KxnwGJr3cH0TY5gQAdhdGWbd7qjTdQ NCpQL01PJv0fJPwZ1PuTOEhHhxHBOAkmhT2g5/zWRMfYUB34pWAIm0nXmwBgGm5hxPsr s2L/FDBOse1TeKlEebaIyc24GET4e24q8zaRiMXsVT74zJPBz6V/dgRWmMdqgSrWf686 //TQ== X-Gm-Message-State: AJaThX6LECd/LWcOycw55Afo2p9ORijw+iLNAoxZDzWAWaDeNwRzpMWL utAUupFN8h53W7CQLADttoi77csf X-Google-Smtp-Source: AGs4zMYp4ScR6GLfD3nsbIGyvZ17bksi4B2t+jIYMQas2sPxfduOoBln3hUtjQuNkgFoI2q5tUhCoA== X-Received: by 10.25.87.210 with SMTP id l201mr6498431lfb.101.1512345796092; Sun, 03 Dec 2017 16:03:16 -0800 (PST) Original-Received: from ?IPv6:2a02:a311:413e:e480::4? ([2a02:a311:413e:e480::4]) by smtp.googlemail.com with ESMTPSA id b25sm2469651lje.14.2017.12.03.16.03.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Dec 2017 16:03:15 -0800 (PST) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4010:c07::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:220673 Archived-At: Hi Stefan, On 12/3/17 9:52 PM, Stefan Monnier wrote: > No, it's just a small matter of adjusting CC-mode here and there. > But given that the only person who understands this part of CC-mode well > enough is Alan, it's difficult for anyone but Alan to do it (I think > I could do it as well, but I know that my solution wouldn't please Alan > because it would involve switching over to syntax-propertize, so my > motivation to do it is rather low). Maybe you understand the issue better than me. Or maybe it's the conversion to syntax-propertize that would do away with the extra caches that IIRC were giving me troubles. >> How do you address the issues which prog-indentation-context did >> (e.g., if the embedded chunk of code is incomplete, and perhaps even >> syntactically invalid)? > > We can easily provide a similar functionality with Dmitry's design. > Dmitry hasn't bothered doing that, because so far it's never been used > (so it's not even clear whether it's ever needed nor whether it would > provide the needed info). To be clear, I'm not sure what you mean. But then, the problem/question isn't well-formulated here.