From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Major modes using `widen' is a good, even essential, programming practice. Date: Sun, 7 Aug 2022 22:26:20 +0300 Message-ID: <256ed76e-d42b-ef23-5ebe-1b56c86b5ab1@yandex.ru> References: <6ae35c9306ade07b4c45@heytings.org> <835yj4xhh7.fsf@gnu.org> <83y1w0w0gk.fsf@gnu.org> <83pmhcvugm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3406"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Cc: gregory@heytings.org, emacs-devel@gnu.org To: Alan Mackenzie , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 07 21:27:46 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oKlwA-0000om-6o for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Aug 2022 21:27:46 +0200 Original-Received: from localhost ([::1]:46000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKlw8-0001sD-Vt for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Aug 2022 15:27:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKlv9-0008Uq-Ia for emacs-devel@gnu.org; Sun, 07 Aug 2022 15:26:43 -0400 Original-Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:45677) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oKlv7-0000Ox-Hq; Sun, 07 Aug 2022 15:26:43 -0400 Original-Received: by mail-wr1-x432.google.com with SMTP id z16so8649028wrh.12; Sun, 07 Aug 2022 12:26:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=JlDz5cDcllIFMzP4c/rWFf5bJjr9ynAWzdCJSVRCa64=; b=I7QZFC+FUmMJr5+boACu6uA1c4nTMEQ2YsEtDVdzkJOyq+0iJOgL7+DOmiS8ki65F0 +TJSK7zW1D1PBgGD1L5T2LvAgQh6HcLzCwiIftDoEgqd6Jt6/9gusFSq2IclxiyWf/Q/ 2plfb3jN4yz205MK+AAI8xSwiVL+Xk3PAjFxg9v6ZqCH28+4qH0G5pzUtBrqlxms5U4a Nm8rr5g2oujEL10mxT7Rf892e7S1/3H0ypkq2/4LBFHjtCwzqeKf5+sG8Mre26K0fpmD fwWzHVPheMuOHtS6IwBEqMYeNjZjvh+HugI4s2awTlICGAkx9PuNPkuN9I19kc7H2PPg 05gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=JlDz5cDcllIFMzP4c/rWFf5bJjr9ynAWzdCJSVRCa64=; b=nH34I1ZFcr0Fw5T0YY2orQcHmPhUio8Qe1YHNdAEj5uWPa2LcjOKF7/OGHE2W5Xjqy jzdy+Xjia/MV70Jvz/iEr5X/RIjAUxOvFtSC25qEgnmEO9W5no3cmNraDPWXTM3CVJgq O5nNNorXNl4wSxOHKyz/oAtBCQWcNfApxAJMAEoDex0dRWwZ14DTktJCdaW6/4KiFa2Q XvDAeBwRbn4+0quSw22QJyDIJC/rP50PJAm853nt6mPG4/t9Fi6AEn2JSGYaL7GBOZjn I3oHZM4vrFDYC4PYjwm86bFcg0dLY+oTw6Q1R2TZEUeN9mqU41QXRECeyDi8SMYnVSkn C5Sw== X-Gm-Message-State: ACgBeo3THICFaxQDZhPUYbur0bvpIWXKD+cg5/rW615M+quBuyjcNh2U tTpOHYG87ovnkj0JLGgHN2o= X-Google-Smtp-Source: AA6agR7vhRgttGhRrwKFNonqE1NFBjBm+A0IS5MFB1GhLDzxT6w5iCNWDR3UClZyRb3WEkmmJywJDg== X-Received: by 2002:a05:6000:1863:b0:220:6d5f:deb5 with SMTP id d3-20020a056000186300b002206d5fdeb5mr9255678wri.470.1659900383106; Sun, 07 Aug 2022 12:26:23 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id b6-20020a5d6346000000b0022063e5228bsm9686977wrw.93.2022.08.07.12.26.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 07 Aug 2022 12:26:22 -0700 (PDT) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=raaahh@gmail.com; helo=mail-wr1-x432.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:293232 Archived-At: On 07.08.2022 22:20, Alan Mackenzie wrote: >>> The search for line boundaries is done by font-lock.el. >> I don't trust it to DTRT when lines are very long. > I think I raised the topic a few days ago of font-lock expanding regions > to whole lines. Maybe we shouldn't do it for long lines. We'd need > something in its place, though. > See the recent addition of syntax-wholeline-max.