From: Robert Pluim <rpluim@gmail.com>
To: emacs-devel@gnu.org
Cc: Lars Ingebrigtsen <larsi@gnus.org>
Subject: Re: master a1ffee1e82: Add textsec-restriction-level function
Date: Mon, 17 Jan 2022 18:27:18 +0100 [thread overview]
Message-ID: <87a6fuqnm1.fsf@gmail.com> (raw)
In-Reply-To: <20220117152430.59980C0DA2E@vcs2.savannah.gnu.org> (Lars Ingebrigtsen's message of "Mon, 17 Jan 2022 10:24:30 -0500 (EST)")
>>>>> On Mon, 17 Jan 2022 10:24:30 -0500 (EST), Lars Ingebrigtsen <larsi@gnus.org> said:
Lars> branch: master
Lars> commit a1ffee1e82b7152772da86a3adc7513128ffefdf
Lars> Author: Lars Ingebrigtsen <larsi@gnus.org>
Lars> Commit: Lars Ingebrigtsen <larsi@gnus.org>
Lars> Add textsec-restriction-level function
Lars> * lisp/international/textsec.el (textsec-restriction-level): New
Lars> function.
Lars> ---
Lars> lisp/international/textsec.el | 52 ++++++++++++++++++++++++++++++++
Lars> test/lisp/international/textsec-tests.el | 12 ++++++++
Lars> 2 files changed, 64 insertions(+)
Lars> diff --git a/lisp/international/textsec.el b/lisp/international/textsec.el
Lars> index 884425d492..fc809d52c1 100644
Lars> --- a/lisp/international/textsec.el
Lars> +++ b/lisp/international/textsec.el
Lars> @@ -97,6 +97,58 @@ Not that a string may have several different minimal cover sets."
Lars> (setq set (seq-union set (seq-difference s set))))
Lars> (sort (delq 'common (delq 'inherited set)) #'string<)))
Lars> +(defun textsec-restriction-level (string)
Lars> + "Say what restriction level STRING qualifies for.
Lars> +Levels are (in order of restrictiveness) `ascii-only',
Lars> +`single-script', `highly-restrictive', `moderately-restrictive',
Lars> +`minimally-restrictive' and `unrestricted'."
I assume this is 'decreasing order of restrictiveness'? If so we
should perhaps say so.
Robert
--
next parent reply other threads:[~2022-01-17 17:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <164243307005.8397.4723179728390796462@vcs2.savannah.gnu.org>
[not found] ` <20220117152430.59980C0DA2E@vcs2.savannah.gnu.org>
2022-01-17 17:27 ` Robert Pluim [this message]
2022-01-17 17:29 ` master a1ffee1e82: Add textsec-restriction-level function Lars Ingebrigtsen
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=87a6fuqnm1.fsf@gmail.com \
--to=rpluim@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.org \
/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).