unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <Michael.Albinus@gmx.de>
To: Stefan Kangas <stefankangas@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: master 838e6cae81: ; * etc/NEWS: Fix typos.
Date: Fri, 16 Sep 2022 15:37:44 +0200	[thread overview]
Message-ID: <87tu57samv.fsf@gmx.de> (raw)
In-Reply-To: <CADwFkmn-p9Cz2iq_uox_r8nq6MDQSKDB4mFU+E4SU7z482jAZQ@mail.gmail.com> (Stefan Kangas's message of "Fri, 16 Sep 2022 09:27:42 -0400")

[-- Attachment #1: Type: text/plain, Size: 561 bytes --]

Stefan Kangas <stefankangas@gmail.com> 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.


[-- Attachment #2: NEWS-checklist --]
[-- Type: text/plain, Size: 1977 bytes --]

** A title shall always have a trailing period, except upper level titles

grep --color=auto -nH --null -E '^\*\*.*[^.:]$' NEWS

** A buffer name shall be placed in double apostrophs.

grep --color=auto -nH --null -E '(^|[^"])\*[^"\*]+\*[^*]' NEWS

** Check for comma in "Previously, "

grep --color=auto -nH --null -E 'Previously ' NEWS

** Check for wrong apostrophes

grep --color=auto -nH --null -E '[`‘’‚ˮ„“]' NEWS

** Check for quoting keystrokes

grep --color=auto -nH --null -E '"(C|M)-' NEWS

** Check for two spaces at sentence end

grep --color=auto -nH --null -E '[^ ]\. [^ ]' NEWS

** Check for two spaces otherwise

grep --color=auto -nH --null -E '[^.]  ' NEWS

** Don't quote .el library names

grep --color=auto -nH --null -E "\.el'" NEWS

** Examples must start in column 4

grep --color=auto -nH --null -E "^( {1,3}| {5,})'?\(" NEWS

** 'M-x ... ' shall not use final RET

grep --color=auto -nH --null -E "RET'" NEWS

** 'M-x command' shall not be used for a single command

grep --color=auto -nH --null -E "'M-x [^[:space:]]+'" NEWS

** MIME types shall be enclosed in "..."

grep --color=auto -nH --null -E '[a-z]/[a-z]' NEWS

** Avoid double empty lines

pcregrep --color=auto -nH -M \$'\n\n\n' NEWS

** Don't use "behaviour" or "colour"

grep --color=auto -nH --null -E 'behaviour|colour' NEWS

** Keys must be enclosed with '...'

(occur "\\(^\\| \\)\\(TAB\\|RET\\|SPC\\|DEL\\|INS\\)" nil)

** Check for "GNU/Linux"

grep --color=auto -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 :-(

  reply	other threads:[~2022-09-16 13:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <166333363759.20767.6682542392675900101@vcs2.savannah.gnu.org>
     [not found] ` <20220916130718.0C2F6C026E1@vcs2.savannah.gnu.org>
2022-09-16 13:27   ` master 838e6cae81: ; * etc/NEWS: Fix typos Stefan Kangas
2022-09-16 13:37     ` Michael Albinus [this message]
2022-09-16 14:01       ` Stefan Kangas
2022-09-16 14:06         ` Michael Albinus
2022-09-16 15:12       ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tu57samv.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=emacs-devel@gnu.org \
    --cc=stefankangas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).