From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: master 838e6cae81: ; * etc/NEWS: Fix typos. Date: Fri, 16 Sep 2022 15:37:44 +0200 Message-ID: <87tu57samv.fsf@gmx.de> References: <166333363759.20767.6682542392675900101@vcs2.savannah.gnu.org> <20220916130718.0C2F6C026E1@vcs2.savannah.gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6154"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 16 15:39:30 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 1oZBZ4-0001U1-1k for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Sep 2022 15:39:30 +0200 Original-Received: from localhost ([::1]:47814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZBZ2-0001zL-W7 for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Sep 2022 09:39:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZBXa-00088i-GS for emacs-devel@gnu.org; Fri, 16 Sep 2022 09:37:59 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:50021) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZBXT-0002C6-EE for emacs-devel@gnu.org; Fri, 16 Sep 2022 09:37:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1663335465; bh=zpdtjvQKme0HSe3ykPci7j3CY7kuG1Jq4Ikaa/TLFxw=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=Hc02jDnawq7ymiekniWkQfes5ProYfV2KrU2JDW6t7XNiS47PHZmKyWgDdc2xfoOr PP9bUy00rzcLwaYdPB4vGjPqtHOwR6UuesweVioGEtNTATpP4UI4zCrWRmvu5zKUY3 +lmAfEugR2XTIK6GYWeRX1HPVrqdrLOQcsJ8DIOc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.151.147]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M26rD-1obeVc2Si1-002WnN; Fri, 16 Sep 2022 15:37:45 +0200 In-Reply-To: (Stefan Kangas's message of "Fri, 16 Sep 2022 09:27:42 -0400") X-Provags-ID: V03:K1:MR9iVhGsEGXP1T26LhXgxCMhl0Fr/LdCY08gRFNFxPitByXV1JJ E4qELw3HMdLpgx+AohpfTk03vEhI2Er8nySnhFc5HJzhvDFtA+HjXA2dJbVSKEKh2mt+e3N b0ZXV6wG3ZZq2vAxwcYWWF2WYJcn8LHoznxY1jk+zxC214jmwA19AZ/uvAaTlDrLt4+jy2Q IQ9nMhMtdifbD4SmggbPQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:lV80zRw8TFQ=:UM4sK3mf94c7yIfPS/qSij uzpqcMKs5Oe4vuUk4iPtvb/ub/AI9pnJAxfGG7JapqA8YK7wlCotvnsKBZwk17uzKLsGECo3f fC+CfecKOQZePo1zqjqiPApmZX5yTEj9oZe98+/21GvM37NLuwZ+QwHpYBs4JZvbubUnbjNJj QpJOLrYG0nsZeOc7GlGb6uRn+XOlyFlHU+fZkMA79R3aqBm8qnxH4bGnCnP/u9fu6LQ38mqcw 5iKjdzTD8+cQShYn2qT2jun5b742Bp6dJVffOj/Smm6cTGtqG5UYrU3WZMV7D/FHDQREvtqJC cw89yK+NNidw24uHi4WXttNi+jlXrj89B5+1FhvrxN3A7Ptp0XyIhoigMLYFJLS6h10Lz+FyO rQvMSIv/JhIzLAWQYYtE2g8j/M9WQNjlRHFe0XK/DkI32uuUFgyAJv7lWITR6MT/dsR4z+zb2 sF4iNzCVyTPjmSV4U/HbPyMfa4cDtSSxDnTcSOjfvSncNPHjulevRnuvqevkA6Bh2IJBskFZ1 qiYx3Vvw6BNlraUsG5/07R3Hz71QZV5Na5gLPs+y9gjzfqKSvOd0AmTHIboq4WqQWHK5HxpZ1 c8kb9HfWyDo4RBYomMJpKtbZn8o+HY9zAwGfyM5C9CcuHQEN9b1Kb6YvcAmGo57AiLzg340RM zDKhmwn5UnHmQsNUgko1I2pJeyMhtnQKTpYn52vKTAOYUpLMEsJBKfLu0Le2yBzM+lIh8eEcR tvCFW7Iydjo5OA0TZ/k95uhL4ECZUeNore6NSMIKDXFEqdMq32BPnU4/4ENMpzkaarfSl407 Received-SPF: pass client-ip=212.227.15.15; envelope-from=Michael.Albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:295467 Archived-At: --=-=-= Content-Type: text/plain Stefan Kangas writes: Hi Stefan, >> ; * etc/NEWS: Fix typos. > > Maybe we could write up a function for `emacs-news-mode' that catches > some of these mistakes? If it works well, we could even consider > sticking it in `before-save-hook'. Yes, I've discussed this with Eli some weeks ago, and he does agree. It is just a matter of time for implementation. Something like checkdoc, ideally. If you want to beat me (much appreciated!) I append my blurb for checking. Just some code fragments, unordered. Best regards, Michael. --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename=NEWS-checklist Content-Transfer-Encoding: quoted-printable ** A title shall always have a trailing period, except upper level titles grep --color=3Dauto -nH --null -E '^\*\*.*[^.:]$' NEWS ** A buffer name shall be placed in double apostrophs. grep --color=3Dauto -nH --null -E '(^|[^"])\*[^"\*]+\*[^*]' NEWS ** Check for comma in "Previously, " grep --color=3Dauto -nH --null -E 'Previously ' NEWS ** Check for wrong apostrophes grep --color=3Dauto -nH --null -E '[`=E2=80=98=E2=80=99=E2=80=9A=CB=AE=E2= =80=9E=E2=80=9C]' NEWS ** Check for quoting keystrokes grep --color=3Dauto -nH --null -E '"(C|M)-' NEWS ** Check for two spaces at sentence end grep --color=3Dauto -nH --null -E '[^ ]\. [^ ]' NEWS ** Check for two spaces otherwise grep --color=3Dauto -nH --null -E '[^.] ' NEWS ** Don't quote .el library names grep --color=3Dauto -nH --null -E "\.el'" NEWS ** Examples must start in column 4 grep --color=3Dauto -nH --null -E "^( {1,3}| {5,})'?\(" NEWS ** 'M-x ... ' shall not use final RET grep --color=3Dauto -nH --null -E "RET'" NEWS ** 'M-x command' shall not be used for a single command grep --color=3Dauto -nH --null -E "'M-x [^[:space:]]+'" NEWS ** MIME types shall be enclosed in "..." grep --color=3Dauto -nH --null -E '[a-z]/[a-z]' NEWS ** Avoid double empty lines pcregrep --color=3Dauto -nH -M \$'\n\n\n' NEWS ** Don't use "behaviour" or "colour" grep --color=3Dauto -nH --null -E 'behaviour|colour' NEWS ** Keys must be enclosed with '...' (occur "\\(^\\| \\)\\(TAB\\|RET\\|SPC\\|DEL\\|INS\\)" nil) ** Check for "GNU/Linux" grep --color=3Dauto -nH --null -E '(^| )Linux' NEWS ** Check for "it's", it must be "it is" (occur "it's" nil) ** Check for "filename", it must be "file name" (occur "filename" nil) ** Check for "doc string", it must be "docstring" (occur "doc[[:space:]]+string" nil) ** Keywords (symbols starting with a colon) must be quoted (occur "\\(^\\| \\):" nil) ** External program names shall be enclosed in "..." nil ; No proper regexp :-( --=-=-=--