From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#68691: 30.0.50; [WISHLIST] Make it easier to conform to desired commit message format Date: Sun, 28 Jan 2024 10:43:02 +0200 Organization: LINKOV.NET Message-ID: <86zfwpkfvt.fsf@mail.linkov.net> References: <87r0i6sl68.fsf@gmail.com> <87il3gopdq.fsf@yahoo.com> <864jey6kvz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38640"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: luangruo@yahoo.com, Eli Zaretskii , iarchivedmywholelife@gmail.com, 68691@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 28 09:47:10 2024 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 1rU0on-0009qY-GR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Jan 2024 09:47:09 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rU0oc-0002oC-Ch; Sun, 28 Jan 2024 03:46:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rU0oa-0002o3-MI for bug-gnu-emacs@gnu.org; Sun, 28 Jan 2024 03:46:57 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rU0oZ-0002Iw-1C for bug-gnu-emacs@gnu.org; Sun, 28 Jan 2024 03:46:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rU0og-0000B3-HV for bug-gnu-emacs@gnu.org; Sun, 28 Jan 2024 03:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Jan 2024 08:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68691 X-GNU-PR-Package: emacs Original-Received: via spool by 68691-submit@debbugs.gnu.org id=B68691.1706431595640 (code B ref 68691); Sun, 28 Jan 2024 08:47:02 +0000 Original-Received: (at 68691) by debbugs.gnu.org; 28 Jan 2024 08:46:35 +0000 Original-Received: from localhost ([127.0.0.1]:56562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rU0oE-0000AD-LE for submit@debbugs.gnu.org; Sun, 28 Jan 2024 03:46:34 -0500 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:46359) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rU0oB-00009x-Hv for 68691@debbugs.gnu.org; Sun, 28 Jan 2024 03:46:32 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id E6F6F240002; Sun, 28 Jan 2024 08:46:16 +0000 (UTC) In-Reply-To: (Stefan Kangas's message of "Sat, 27 Jan 2024 23:21:47 -0800") X-GND-Sasl: juri@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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:279076 Archived-At: > or mark in red any line matching "^lisp/foo/bar.el" (which should be > a mistake 99.9 % of the time). Stuff like that. There is already some linting in log-edit that could be extended further: (defconst log-edit-font-lock-gnu-keywords ;; Use ;; * foo.el (bla, bli) ;; (blo, blu): Toto. ;; Rather than ;; * foo.el (bla, bli, ;; blo, blu): Toto. '(("^[ \t]*\\(?:\\* .*\\)?\\(([^\n)]*,\\s-*\\)$" (1 '(face font-lock-warning-face help-echo "Continue function lists with \")\\n(\".") t)) ;; Don't leave a lone word on a single line. ;;("^\\s-*\\(\\S-*[^\n:)]\\)\\s-*$" (1 font-lock-warning-face t)) ;; Don't cut a sentence right after the first word (better to move ;; the sentence on the next line, then). ;;("[.:]\\s-+\\(\\sw+\\)\\s-*$" (1 font-lock-warning-face t)) ;; Change Log entries should use present tense. ("):[ \t\n]*[[:alpha:]]+\\(ed\\)\\>" (1 '(face font-lock-warning-face help-echo "Use present tense.") t)) ;; Change log entries start with a capital letter. ("): [a-z]" (0 '(face font-lock-warning-face help-echo "Capitalize.") t)) ("[^[:upper:]]\\(\\. [[:upper:]]\\)" (1 '(face font-lock-warning-face help-echo "Use two spaces to end a sentence") t)) ("^(" (0 (let ((beg (max (point-min) (- (match-beginning 0) 2)))) (put-text-property beg (match-end 0) 'font-lock-multiline t) (if (eq (char-syntax (char-after beg)) ?w) '(face font-lock-warning-face help-echo "Punctuate previous line."))) t)) ))