From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56637: 28.1.90; [FR] Allow a way around font-lock-mode being unconditionally disabled in " *hidden*" buffers Date: Wed, 20 Jul 2022 19:09:34 +0300 Message-ID: <83lesnlq9t.fsf@gnu.org> References: <874jzdhh5m.fsf@localhost> <83mtd5m54h.fsf@gnu.org> <83ilntlydv.fsf@gnu.org> <83cze0nbk2.fsf@gnu.org> <83a694m40y.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23488"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56637@debbugs.gnu.org, yantar92@gmail.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 20 18:10:30 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1oECHN-0005u6-W5 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Jul 2022 18:10:30 +0200 Original-Received: from localhost ([::1]:59806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oECHL-0002Cc-Ki for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Jul 2022 12:10:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oECGw-000275-3B for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2022 12:10:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60952) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oECGv-0004UD-OK for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2022 12:10:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oECGv-0008Fv-I5 for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2022 12:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Jul 2022 16:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56637 X-GNU-PR-Package: emacs Original-Received: via spool by 56637-submit@debbugs.gnu.org id=B56637.165833339131710 (code B ref 56637); Wed, 20 Jul 2022 16:10:01 +0000 Original-Received: (at 56637) by debbugs.gnu.org; 20 Jul 2022 16:09:51 +0000 Original-Received: from localhost ([127.0.0.1]:58710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oECGl-0008FO-Cx for submit@debbugs.gnu.org; Wed, 20 Jul 2022 12:09:51 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oECGk-0008FA-7b for 56637@debbugs.gnu.org; Wed, 20 Jul 2022 12:09:50 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33262) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oECGe-0004Sn-WD; Wed, 20 Jul 2022 12:09:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=AYW9LrMzhdUUTglHJz3ikwxvMSteIN4WJKymG25Sd14=; b=hA185uej14lN dR8MjRVvFhw4pIF/QGyalW6/8snG0TySJUYB5B5sflxzujq97ISknpJvxPWFoO9LKVzqXQAnB1dcO fLMEDuPPywQNliHOgE/6OGIBomLzVqn7KYfBg/xULIH/FoYQcCo4Ata9wy3M8uu1b0olIXLlWt4J1 j5S/Ekv/CIReN6lQZd1ESI+Nehyt9KGFqU7DeUmd896678N6DwNpSNUK887ERJSopUFzi+HWEFPKV uIeFBKLVczCmNPYotGiq89r9foZQgp4Sk4W1MwUiH/K7NrDgZGHhjSWdSK4Xq+SpWYWOdnhkwRHYx pufuV2IrMw9oVgd4Ic2tdQ==; Original-Received: from [87.69.77.57] (port=2168 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oECGe-0007iV-EN; Wed, 20 Jul 2022 12:09:44 -0400 In-Reply-To: (message from Stefan Monnier on Wed, 20 Jul 2022 11:15:20 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:237513 Archived-At: > From: Stefan Monnier > Cc: yantar92@gmail.com, 56637@debbugs.gnu.org > Date: Wed, 20 Jul 2022 11:15:20 -0400 > > >> But I can't see why we shouldn't accommodate those needs more directly. > > > > I can: we don't need, and really shouldn't, attempt to cater to each > > corner use case in core. Doing that (and we've been doing that for > > quite some time) makes Emacs a larger and less maintainable monster > > than it needs to be or already is. > > I can't see why adding the patch below would make it less maintainable. Well, I explained that. If you still don't see it, I guess we'll have to agree to disagree. > It sure seems much cleaner than the horror quoted above (which suffers > from all kinds of corner case misbehaviors). The horror quoted above won't be in Emacs, so it is of no concern to us. > > You already have one symptom of the monster's size: I already cannot > > tell which hooks are and aren't running in temporary buffers without > > consulting the sources. Way to go, Emacs! > > And for that reason, I think we should try and avoid such special cases > (such the special case of not enabling font-lock in temp buffers), by > replacing them with other measures which give similar results but > without such special casing. Temporary buffers _are_ special cases, whether we want it or not.