From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#50674: Major mode for etc/AUTHORS with basic font-locking Date: Mon, 20 Sep 2021 00:42:54 -0700 Message-ID: References: <87o88oikye.fsf@mail.linkov.net> <87ee9jpxke.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18567"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 50674@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 20 09:48:45 2021 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 1mSE2e-0004gF-DW for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Sep 2021 09:48:44 +0200 Original-Received: from localhost ([::1]:50720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSE2c-0007LI-Qc for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Sep 2021 03:48:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSDy6-0007mg-2t for bug-gnu-emacs@gnu.org; Mon, 20 Sep 2021 03:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57600) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSDy5-0007Ol-Qn for bug-gnu-emacs@gnu.org; Mon, 20 Sep 2021 03:44:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mSDy5-0007bM-Oe for bug-gnu-emacs@gnu.org; Mon, 20 Sep 2021 03:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Sep 2021 07:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50674 X-GNU-PR-Package: emacs Original-Received: via spool by 50674-submit@debbugs.gnu.org id=B50674.163212378229143 (code B ref 50674); Mon, 20 Sep 2021 07:44:01 +0000 Original-Received: (at 50674) by debbugs.gnu.org; 20 Sep 2021 07:43:02 +0000 Original-Received: from localhost ([127.0.0.1]:40911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSDx7-0007Zz-UA for submit@debbugs.gnu.org; Mon, 20 Sep 2021 03:43:02 -0400 Original-Received: from mail-pf1-f179.google.com ([209.85.210.179]:35653) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSDx6-0007ZU-D1 for 50674@debbugs.gnu.org; Mon, 20 Sep 2021 03:43:00 -0400 Original-Received: by mail-pf1-f179.google.com with SMTP id w14so4920025pfu.2 for <50674@debbugs.gnu.org>; Mon, 20 Sep 2021 00:43:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=90ppeq97Yx/gfugeN6sWSUv3E+y4TNgfl0CNgrXhB5Q=; b=eV1UAScx+t4ptLKs4Pyyg71rgdg1b6VYt+PZ6x5MzaSOgEt9MEIazhyFWhyG2gtZ1l QIUjRt5oRxhkQC82BUZDHeC5qHWoVxd8ZF2V1aBnGg59/xCWUfH/qVwT4CO5VEGALimS /5lDptkzPBjkhvLnd9qkAlgKB4gIpshgoIDjMnE7GcI5zRAvfRXQAYgd1smKENzL2ZON Bgv6HdKZAU5fmiDD4pVCZwIhNc1KEuYHFzMjCqNNGspNS/XoEabvfIdJYeyS8xZKGt5L asxTMel6pSS3dhAo03QhCiIP6i0AAyacMOm7xXtRxn6nckO11OtHIYwPftMcpSeFanEi dSLA== X-Gm-Message-State: AOAM531JWluVD4XGJuQYywowy2ST4YmBnCDtao9z6F1MGiSoPg7b/fC4 bMhiQzsLIwLKNZxbwSaW+au4B0EeR30yWJUCTrk= X-Google-Smtp-Source: ABdhPJwO9RF4xJ6r1kRdzeUGLv5ER28WaTTkndep5GLIkmlB5LEPH0NKZHhqhb51tft4ECQVnhGuHrbu/C/mNq9F1V8= X-Received: by 2002:a63:f946:: with SMTP id q6mr22264480pgk.42.1632123774560; Mon, 20 Sep 2021 00:42:54 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 20 Sep 2021 00:42:54 -0700 In-Reply-To: <87ee9jpxke.fsf@mail.linkov.net> 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:214843 Archived-At: Juri Linkov writes: > I really see no difference from etc-authors-mode and e.g. > etc-fstab-generic-mode defined in generic-x.el by define-generic-mode. > And still it can be autoloaded like c++-mode-syntax-table used to be autoloaded. That means that a user will see font-locking in some files, only if she has first visited AUTHORS. In a subsequent Emacs session, the user will be surprised to see that the font-locking is no longer there. IOW, I can agree to put it in generic-x.el, but only if we autoload some other modes in there. Such as the fstab mode. Otherwise this makes no sense to me. A natural first step would be to make those modes load unconditionally, but that proposal has been rejected; see my last two commits to generic-x.el. Perhaps it will be okay to load only some of the modes unconditionally. This would also have to be coupled with the necessary documentation changes to generic-x.el, to explain that this file is not only about `define-generic-mode'. Personally, I'd rather create a new file for small modes than go down this rabbit hole. generic-x.el is hardly the best library name or location.