Lars Ingebrigtsen
696bd360f6
Deconfuse textsec doc strings slightly
...
* lisp/international/textsec.el (textsec-name-suspicious-p):
(textsec-domain-suspicious-p):
(textsec-local-address-suspicious-p):
(textsec-name-suspicious-p):
(textsec-suspicious-nonspacing-p):
(textsec-email-suspicious-p): Suspiciosness isn't only about
homoglyphs, so don't claim so in the doc strings.
2022-01-19 11:34:48 +01:00
Robert Pluim
db714e08e0
Improve textsec doc strings
...
* lisp/international/textsec.el (textsec-domain-suspicious-p)
(textsec-local-address-suspicious-p, textsec-name-suspicious-p)
(textsec-suspicious-nonspacing-p): Improve doc strings.
2022-01-19 11:21:01 +01:00
Eli Zaretskii
596d0bda6d
Minor improvement in textsec diagnostics
...
* lisp/international/textsec.el (textsec-suspicious-nonspacing-p):
Clarify wording of the strings returned to explain the suspicious
use of nonspacing characters.
2022-01-19 10:57:03 +02:00
Eli Zaretskii
877c4e849f
Improve doc strings in textsec.el
...
* lisp/international/textsec.el (textsec-mixed-numbers-p)
(textsec-ascii-confusable-p, textsec-resolved-script-set)
(textsec-single-script-confusable-p)
(textsec-mixed-script-confusable-p)
(textsec-whole-script-confusable-p, textsec-domain-suspicious-p)
(textsec-local-address-suspicious-p, textsec-name-suspicious-p)
(textsec-suspicious-nonspacing-p): Doc fix.
2022-01-18 21:08:19 +02:00
Lars Ingebrigtsen
5006e19856
The name in textsec-email-suspicious-p is optional
...
* lisp/international/textsec.el (textsec-email-suspicious-p): The
name is optional.
2022-01-18 13:34:39 +01:00
Lars Ingebrigtsen
ce63f91025
Add textsec functions for verifying email addresses
...
* lisp/international/characters.el (bidi-control-characters):
Rename from glyphless--bidi-control-characters for use in textsec,
and add LRM/RLM/ALM.
(update-glyphless-char-display): Adjust the code.
* lisp/international/textsec.el (textsec-local-address-suspicious-p)
(textsec-name-suspicious-p, textsec-suspicious-nonspacing-p)
(textsec-email-suspicious-p): New functions.
2022-01-18 13:20:04 +01:00
Lars Ingebrigtsen
9f25c41ad4
Add textsec-domain-suspicious-p
...
* .gitignore: Ignore idna-mapping.el.
* admin/notes/unicode: Note idna-mapping file.
* admin/unidata/IdnaMappingTable.txt: New file.
* admin/unidata/Makefile.in (all): Generate idna-mapping.el.
* admin/unidata/unidata-gen.el (unidata-gen-idna-mapping): Generate.
* lisp/international/textsec.el (textsec-domain-suspicious-p): New
function.
2022-01-18 11:53:09 +01:00
Lars Ingebrigtsen
4eebf528fc
Add textsec predicates for different types of confusability
...
* lisp/international/textsec.el (textsec-resolved-script-set)
(textsec-single-script-confusable-p)
(textsec-mixed-script-confusable-p)
(textsec-whole-script-confusable-p): New functions.
2022-01-18 10:24:32 +01:00
Lars Ingebrigtsen
19fefea1ca
Add textsec support for confusable characters
...
* admin/notes/unicode: Note the confusables.txt file.
* admin/unidata/Makefile.in (${unidir}/uni-confusable.el):
Generate the confusable file.
* admin/unidata/README (https): Add confusables.txt.
* admin/unidata/confusables.txt: New file.
* admin/unidata/unidata-gen.el (unidata-gen-confusable): Parse the
confusables.txt file.
* lisp/international/textsec.el (textsec-ascii-confusable-p)
(textsec-unconfuse-string): New functions.
2022-01-18 09:57:54 +01:00
Lars Ingebrigtsen
65c9f57856
Improve textsec-restriction-level doc string
...
* lisp/international/textsec.el (textsec-restriction-level):
Improve doc string.
2022-01-18 09:57:54 +01:00
Eli Zaretskii
8fe828db78
; * lisp/international/fontset.el (setup-default-fontset): Fix last change.
2022-01-18 05:33:28 +02:00
Eli Zaretskii
0ddc03cf8c
Fix minor inconsistencies in 'char-script-table'
...
* admin/unidata/blocks.awk (name2alias): Map some obscure blocks
to their native scripts, to follow Scripts.txt.
* lisp/international/characters.el (char-script-table): Add
few exceptions.
* lisp/international/fontset.el (script-representative-chars):
Remove scripts no longer used.
2022-01-17 21:49:58 +02:00
Robert Pluim
346747451f
; textsec.el: fix typo
...
* lisp/international/textsec.el (textsec-covering-scripts): Fix typo
in docstring.
2022-01-17 18:24:31 +01:00
Eli Zaretskii
ef1f5dfe2b
Doc fixes in textsec.el
...
* lisp/international/textsec.el (textsec-scripts)
(textsec-single-script-p, textsec-covering-scripts): Clarify "script".
2022-01-17 19:15:30 +02:00
Lars Ingebrigtsen
9f902eb808
Change textsec-mixed-numbers-p to use recommended algorithm
...
* lisp/international/textsec.el (textsec-mixed-numbers-p): New
function.
2022-01-17 18:01:59 +01:00
Lars Ingebrigtsen
1c7307673b
Add new function textsec-mixed-numbers-p
...
* lisp/international/textsec.el (textsec-mixed-numbers-p): New
function.
2022-01-17 17:32:58 +01:00
Lars Ingebrigtsen
9b358a99d6
Add some textsec-restriction-level comments
...
* lisp/international/textsec.el (textsec-restriction-level): Add
comment about source of the list of languages.
2022-01-17 16:27:10 +01:00
Lars Ingebrigtsen
a1ffee1e82
Add textsec-restriction-level function
...
* lisp/international/textsec.el (textsec-restriction-level): New
function.
2022-01-17 16:24:17 +01:00
Lars Ingebrigtsen
523a96a99e
Fix some doc strings in textsec.el
...
* lisp/international/textsec.el (textsec-single-script-p): Fix
typo in doc string.
(textsec-covering-scripts): Improve doc string and sort the results.
2022-01-17 16:06:04 +01:00
Lars Ingebrigtsen
e2c8091113
Add support for functions that deal with Unicode scripts
...
* admin/unidata/Makefile.in (${unidir}/uni-scripts.el): Build
uni-scripts.el.
* admin/unidata/Scripts.txt:
* admin/unidata/ScriptExtensions.txt:
* admin/unidata/PropertyValueAliases.txt: New files from Unicode.
* admin/unidata/README: Update.
* admin/unidata/unidata-gen.el (unidata-gen-charprop): Allow
writing other data, too.
(unidata-gen-scripts, unidata-gen--read-script-aliases)
(unidata-gen--insert-file): New functions to parse the Script* files.
* lisp/international/textsec.el: Implement some functions that
work on scripts.
2022-01-17 15:47:50 +01:00
Lars Ingebrigtsen
015d881b6d
Add emoji-alternate-names variable
...
* lisp/international/emoji.el (emoji-alternate-names): New
variable (bug#52860).
(emoji-search): Note usage.
(emoji--choose-emoji): Use it.
2022-01-15 12:06:48 +01:00
Stefan Monnier
04c0245d36
Merge remote-tracking branch 'origin/emacs-28' into trunk
2022-01-02 17:07:42 -05:00
Stefan Monnier
9156e10927
(define-char-code-property): Workaround for bug#52945
...
* lisp/international/mule-cmds.el (define-char-code-property): Ignore
requests to re-setup lazy loading after the char-table is already loaded.
2022-01-02 02:25:55 -05:00
Eli Zaretskii
823b6b8d26
; Add 2022 to copyright years.
2022-01-01 07:07:15 -05:00
Eli Zaretskii
dcd76bd48d
Merge from origin/emacs-28
...
836be7a112
; * etc/refcards/ru-refcard.tex: Update Copyright year.
86cbc6ee4a
* lisp/net/tramp-sh.el: Adapt copyright year
ebe8772f65
; Minor fixes related to copyright years
23c1ee6989
; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye...
8d3fc7ec89
* src/xfaces.c (face_for_font): Make 'hash' be uintptr_t.
19dcb237b5
; Add 2022 to copyright years.
# Conflicts:
# etc/NEWS
# etc/refcards/ru-refcard.tex
# lib/cdefs.h
# lisp/erc/erc-dcc.el
# lisp/erc/erc-imenu.el
# lisp/erc/erc-replace.el
# lisp/image-dired.el
# lisp/progmodes/xref.el
# m4/alloca.m4
# m4/byteswap.m4
# m4/errno_h.m4
# m4/getopt.m4
# m4/gnulib-common.m4
# m4/inttypes.m4
# m4/stddef_h.m4
# m4/stdint.m4
# m4/sys_socket_h.m4
2022-01-01 07:03:03 -05:00
Eli Zaretskii
19dcb237b5
; Add 2022 to copyright years.
2022-01-01 02:45:51 -05:00
Stefan Kangas
036e88ce2f
Merge from origin/emacs-28
...
c0815aca18
Fix typos in in 'reset-language-environment'
ea65de7577
eshell-complete-parse-arguments: don't use string-match on...
2021-12-28 06:30:38 +01:00
Eli Zaretskii
c0815aca18
Fix typos in in 'reset-language-environment'
...
* lisp/international/mule-cmds.el (reset-language-environment):
Fix a typo in 'windows-nt'. (Bug#52816)
2021-12-27 19:00:33 +02:00
Jonas Bernoulli
5b0121b708
Help outline-minor-mode avoid some false matches
...
* lisp/international/emoji.el (emoji--generate-file): Help
'outline-minor-mode' avoid false matches by quoting certain
characters when they appear at bol in a multi-line string.
2021-12-22 20:03:00 +01:00
Jonas Bernoulli
7be73593b4
Hide transient prefix/suffix commands from execute-extended-command
...
* lisp/international/emoji.el (emoji--define-transient): Hide
transient prefix/suffix commands from 'execute-extended-command'
by declaring that they should only be listed in the non-existent
'not-a-mode' mode.
2021-12-22 20:02:00 +01:00
Lars Ingebrigtsen
e34017fdbe
Further tweaks to emoji person groups
...
* lisp/international/emoji.el (emoji--score): Don't take the bit
after the colon into consideration, like in "kiss: person, person,
light skin tone, medium-light skin tone".
2021-12-19 20:25:44 +01:00
Lars Ingebrigtsen
6aac4caaff
Further tweaks to the emoji segmentation
...
* lisp/international/emoji.el (emoji--parse-emoji-test): Ensure
that we key off of the "person" variants, even if they come after
the gendered variations (which is the case for a handful of glyphs).
2021-12-19 20:21:15 +01:00
Lars Ingebrigtsen
df3fde6fa5
Further fixes for emojis in the "people" categories
...
* lisp/international/emoji.el (emoji--base-name): Get more derived
categories right.
2021-12-19 19:53:08 +01:00
Lars Ingebrigtsen
9051a93747
Fix indexing gendered emoji forms that have "person" base forms
...
* lisp/international/emoji.el (emoji--base-name): Index man/woman
on the generic form we have read already (bug#52580).
2021-12-19 12:46:01 +01:00
Eli Zaretskii
7a886aab90
Improve doc strings in emoji.el
...
* lisp/international/emoji.el (emoji-insert, emoji-recent)
(emoji-search, emoji-list, emoji-describe, emoji-list-help):
Improve and clarify the doc strings.
2021-12-18 21:54:39 +02:00
Po Lu
32b9b22f66
Merge remote-tracking branch 'origin/master' into feature/pgtk
2021-12-16 17:57:56 +08:00
Lars Ingebrigtsen
35dbc79cc3
Make emoji--recent use multisession variables
...
* lisp/international/emoji.el (emoji--recent): Make into a
multisession variable.
(emoji-recent, emoji--recent-transient): Use it.
(emoji--add-recent): Update it.
2021-12-16 07:23:52 +01:00
Po Lu
30ac6fbbed
Merge remote-tracking branch 'origin/master' into feature/pgtk
2021-12-14 17:43:16 +08:00
Stefan Kangas
7c4c72fa52
Make two aliases obsolete in lisp/international/robin.el
...
* lisp/international/robin.el (robin-transliterate-region)
(robin-transliterate-buffer): Make obsolete.
2021-12-13 15:58:49 +01:00
Po Lu
6919d5a7c0
Merge remote-tracking branch 'origin/master' into feature/pgtk
2021-12-10 08:54:56 +08:00
Stefan Kangas
6ecb24f877
Merge from origin/emacs-28
...
1821844357
Add missing K key documentation for Cangjie input methods
be860c1385
Fix manual entry of 'quit-restore-window' (Bug#52328)
35a96139df
Clarify a comment in xdisp.c
6ba2f028cf
Revert "Grep alias `all' shall not match parent directory"
eb9e33e238
; * etc/NEWS: Non-nil repeat-keep-prefix is not the defaul...
538fc1d0e0
Fix mode-line display in Calendar mode
# Conflicts:
# etc/NEWS
# lisp/help.el
2021-12-09 14:53:51 +01:00
Cameron Desautels
1821844357
Add missing K key documentation for Cangjie input methods
...
* lisp/international/titdic-cnv.el (tsang-quick-converter): Add the
missing K key in input method documentation. (Bug#52264)
2021-12-09 13:03:12 +02:00
Yuuki Harano
d44d6ae016
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs into feature/pgtk
2021-12-04 16:06:16 +09:00
Stefan Kangas
76bbb7e648
Remove two functions obsolete since Emacs 23
...
* lisp/international/mule-cmds.el (unify-8859-on-encoding-mode)
(unify-8859-on-decoding-mode): Remove functions obsolete since
Emacs 23.
* lisp/nxml/xsd-regexp.el: Doc fix.
2021-12-03 19:27:16 +01:00
Tor Kringeland
d0997eefea
Add a docstring to `iso-transl-set-language'
...
* lisp/international/iso-transl.el: Document
`iso-transl-set-language' (bug#52261).
Copyright-paperwork-exempt: yes
2021-12-03 18:09:07 +01:00
Lars Ingebrigtsen
d003f70c6f
Move 'C-x 8 .' to 'C-x 8 . .'
...
* lisp/international/iso-transl.el (iso-transl-char-map): Move
'C-x 8 .' to 'C-x 8 . .' and add ż.
2021-12-03 17:43:02 +01:00
Tor Kringeland
b56f2737c6
Add support for some Polish characters with `C-x 8'
...
* lisp/international/iso-transl.el: Add support for some Polish
characters (bug#52173).
Copyright-paperwork-exempt: yes
2021-12-03 17:40:14 +01:00
Po Lu
15d5af8cb0
Merge remote-tracking branch 'origin/master' into feature/pgtk
2021-12-03 08:36:48 +08:00
Lars Ingebrigtsen
a97fce7a89
Fix characters.el build issue
...
* lisp/international/characters.el
(glyphless--bidi-control-characters): Don't use names here,
because it's too early (bug#52240).
2021-12-02 17:33:00 +01:00
Eli Zaretskii
dfc7338828
; * lisp/international/characters.el: Fix a typo in last change.
2021-12-02 12:34:37 +02:00