summaryrefslogtreecommitdiff
path: root/lisp/language
AgeCommit message (Collapse)Author
2026-04-23Add language-environment and input methods for SyriacLee Thompson
* lisp/leim/quail/syriac.el: New file * lisp/language/misc-lang.el: ("Syriac"): New language environment. ("Arabic"): Add comment explaining usage of `arabic-shape-gstring' for Syriac as well as Arabic. * etc/NEWS: Announce the new language environment and input methods. * etc/HELLO: Add a Syriac greeting. (Bug#80451)
2026-03-25; Make 'default-korean-keyboard' a defcustomEli Zaretskii
* lisp/language/korea-util.el (default-korean-keyboard): Now a defcustom. (Bug#80648)
2026-02-12Improve composition rules for Devanagari scriptसमीर सिंह Sameer Singh
* lisp/language/indian.el (devanagari-composable-pattern): Account for contextual positioning of punctuation signs when preceded by a character. (Bug#80368) Improve the Devanagari composition rules to account for contextual positioning of punctuation signs when preceded by a character.
2026-01-01; Add 2026 to copyright years.Sean Whitton
2025-12-21Fix VIQR decoding and encodingEli Zaretskii
* lisp/language/viet-util.el (viqr-regexp): Include escaped punctuation characters, to handle escaped punctuation correctly. (viqr-punctuation-regexp): New defconst. (viet-encode-viqr-region): Backslash-escape punctuation characters matching 'viqr-punctuation-regexp' before encoding Vietnamese characters with diacritics. (Bug#80039) * test/lisp/language/viet-util-tests.el (viet-util-test-viqr): New file with tests for VIQR encoding and decoding.
2025-03-31japan-util.el: Cosmetic changesStefan Monnier
* lisp/language/japan-util.el (<toplevel>): Use `pcase-dolist` and `when`. (japanese-string-conversion): Use `point-min`.
2025-03-31Fix replace-region in japan-util.elEli Zaretskii
* lisp/language/japan-util.el (japanese-replace-region): Allow STRING to be a character in addition to a string. Un-obsolete it. (japanese-katakana-region, japanese-hiragana-region) (japanese-hankaku-region, japanese-zenkaku-region): Call 'japanese-replace-region' instead of 'replace-region-contents'. (Bug#77397)
2025-03-29Use `replace-region-contents` to replace insert+deleteStefan Monnier
* lisp/minibuffer.el (completion--replace): * lisp/emacs-lisp/cl-lib.el (cl--set-buffer-substring): * lisp/subr.el (replace-string-in-region): Use `replace-region-contents` instead of insert+delete. * lisp/help-fns.el (help-fns--signature): Use `replace-region-contents` instead of `cl--set-buffer-substring`. * lisp/language/japan-util.el (japanese-replace-region): Rewrite using `replace-region-contents` and mark obsolete. (japanese-katakana-region, japanese-hankaku-region): Use `replace-region-contents` instead. * lisp/progmodes/flymake-proc.el (flymake-proc--replace-region): Rewrite using `replace-region-contents` and mark obsolete. (flymake-proc--check-patch-master-file-buffer): Use `replace-region-contents` instead.
2025-03-24Expose some lambdas currently hidden in quoted dataStefan Monnier
* lisp/language/chinese.el ("Chinese-GB", "Chinese-BIG5") ("Chinese-CNS", "Chinese-EUC-TW", "Chinese-GBK"): * lisp/isearch.el (isearch-menu-bar-map): * lisp/international/mule-cmds.el (language-info-custom-alist): * lisp/font-lock.el (cpp-font-lock-keywords): * lisp/cus-start.el (<toplevel>): Expose lambda-expressions to the compiler.
2025-03-12Merge from origin/emacs-30Sean Whitton
894b0e3a2fe ; Adapt comment in tramp.el cc87717fa07 Add keyword placeholder to tramp.el 7d0d61d8549 Rewrite ERT manual introduction b2f124f2a88 ; cperl-mode.el: Don't misinterpret exec_fcn as keyword exec 59d1aac49df Document return values of the various read-* functions
2025-03-09Document return values of the various read-* functionsEli Zaretskii
* lisp/textmodes/string-edit.el (read-string-from-buffer): * lisp/simple.el (read-from-kill-ring, read-shell-command) (read-signal-name): * lisp/replace.el (read-regexp-case-fold-search): * lisp/auth-source.el (read-passwd): * lisp/subr.el (read-key, read-number): * lisp/minibuffer.el (read-file-name, read-no-blanks-input): * lisp/international/mule-cmds.el (read-multilingual-string): * lisp/language/japan-util.el (read-hiragana-string): * lisp/files-x.el (read-file-local-variable) (read-file-local-variable-mode, read-file-local-variable-value): * lisp/faces.el (read-face-font, read-face-name): * lisp/simple.el (read-extended-command): * lisp/env.el (read-envvar-name): * lisp/files.el (read-directory-name): * lisp/faces.el (read-color): * lisp/international/mule-diag.el (read-charset): * lisp/emacs-lisp/map-ynp.el (read-answer): * src/coding.c (Fread_coding_system) (Fread_non_nil_coding_system): * src/minibuf.c (Fread_command, Fread_from_minibuffer): * src/lread.c (Fread_char, Fread_char_exclusive, Fread_event): Doc fixes.
2025-02-05(font-ccl-encoder-alist): Delete variable, unusedStefan Monnier
* src/ccl.c (syms_of_ccl): Remove `font-ccl-encoder-alist`. * lisp/language/ethiopic.el (ccl-encode-ethio-font): Delete CCL program. (font-ccl-encoder-alist): Don't modify it.
2025-02-01Merge branch 'scratch/no-purespace' into 'master'Stefan Kangas
2025-01-02Update copyright year to 2025Stefan Kangas
Run "TZ=UTC0 admin/update-copyright".
2025-01-01Update copyright year to 2025Paul Eggert
Run "TZ=UTC0 admin/update-copyright".
2024-12-12Delete remaining calls to purecopyStefan Kangas
* lisp/button.el (default-button): * lisp/calendar/holidays.el (holiday-solar-holidays) (holiday-bahai-holidays, holiday-islamic-holidays) (holiday-christian-holidays, holiday-hebrew-holidays) (holiday-oriental-holidays, holiday-general-holidays): * lisp/comint.el (comint-file-name-prefix): * lisp/composite.el (unicode-category-table): * lisp/cus-face.el (custom-declare-face): * lisp/custom.el (custom-add-load, custom-add-package-version) (custom-add-version, custom-add-link, custom-declare-group) (custom-declare-variable): * lisp/dired.el (dired-listing-switches): * lisp/epa-hook.el (epa-file-name-regexp): * lisp/faces.el (x-font-regexp, x-font-regexp-head) (x-font-regexp-slant, x-font-regexp-weight, ) (set-face-attribute, set-face-documentation, face-x-resources) (face-font-registry-alternatives, face-font-family-alternatives) (term-file-prefix): * lisp/find-file.el (ff-special-constructs): * lisp/format.el (format-alist): * lisp/help.el (help-for-help): * lisp/image-file.el (image-file-name-extensions): * lisp/info.el: * lisp/isearch.el (isearch-help-for-help-internal) (search-whitespace-regexp): * lisp/jka-cmpr-hook.el (jka-compr-load-suffixes) (jka-compr-mode-alist-additions) (jka-compr-compression-info-list, jka-compr-build-file-regexp): * lisp/language/ethiopic.el (font-ccl-encoder-alist): * lisp/language/korea-util.el (default-korean-keyboard): * lisp/language/tibetan.el (tibetan-precomposition-rule-regexp) (tibetan-precomposed-regexp): * lisp/locate.el (locate-ls-subdir-switches): * lisp/lpr.el (lpr-command): * lisp/mail/rmail.el (rmail-secondary-file-regexp) (rmail-secondary-file-directory, rmail-highlighted-headers) (rmail-ignored-headers, rmail-spool-directory, rmail-file-name): * lisp/mail/sendmail.el (mail-default-directory) (mail-signature-file, mail-citation-prefix-regexp) (mail-personal-alias-file, mail-header-separator): * lisp/menu-bar.el (yank-menu): * lisp/net/eudc.el (eudc-tools-menu): * lisp/newcomment.el (comment-padding, comment-end): * lisp/obsolete/autoload.el (autoload-generate-file-autoloads): * lisp/progmodes/hideshow.el (hs-special-modes-alist): * lisp/ps-print.el (ps-page-dimensions-database): * lisp/rfn-eshadow.el (file-name-shadow-tty-properties): * lisp/shell.el (shell-dumb-shell-regexp): * lisp/simple.el (overwrite-mode-binary, overwrite-mode-textual) (mark-inactive, shell-command-switch) (next-error-overlay-arrow-position): * lisp/subr.el (package--builtin-versions, eval-after-load): * lisp/tab-bar.el ([tab-bar]): * lisp/term/pgtk-win.el (x-gtk-stock-map): * lisp/term/x-win.el (x-gtk-stock-map): * lisp/tool-bar.el ([tool-bar]): * lisp/widget.el (define-widget): Remove calls to purecopy.
2024-07-28* lisp/language/misc-lang.el ("Tifinagh"): Fix `language-info-alist'.Juri Linkov
2024-07-27* lisp/language/misc-lang.el ("Tifinagh"): Fix `sample-text'.Michael Albinus
2024-07-26Add support for Tifinagh scriptEli Zaretskii
* lisp/leim/quail/tifinagh.el: New file. Contributed by Adam Oudad <adam.oudad@gmail.com>. * lisp/language/misc-lang.el ("Tifinagh"): New language environment. * etc/HELLO: Add a greeting in Tifinagh. * etc/NEWS: Announce the addition of Tifinagh.
2024-07-18; Fix typosStefan Kangas
2024-06-24; * lisp/language/cyrillic.el: Delete obsolete commentary (bug#71754).Eli Zaretskii
2024-03-02* lisp/language/japanese.el (map): Fix typo (bug#69494).Kazuhiro Ito
2024-03-02Fix Japanese language environment on Cygwin and MS-WindowsKazuhiro Ito
* lisp/language/japan-util.el (setup-japanese-environment-internal): Prefer UTF-8 for Cygwin and other Posix hosts; prefer Codepage 932 on DOS/Windows. (Bug#69493)
2024-01-02Merge from savannah/emacs-29Po Lu
dc4e6b13296 ; Update copyright years in more files 64b37776318 ; Run set-copyright from admin.el 8e1c56ae467 ; Add 2024 to copyright years # Conflicts: # doc/misc/modus-themes.org # doc/misc/texinfo.tex # etc/NEWS # etc/refcards/ru-refcard.tex # etc/themes/modus-operandi-theme.el # etc/themes/modus-themes.el # etc/themes/modus-vivendi-theme.el # lib/alloca.in.h # lib/binary-io.h # lib/c-ctype.h # lib/c-strcasecmp.c # lib/c-strncasecmp.c # lib/careadlinkat.c # lib/cloexec.c # lib/close-stream.c # lib/diffseq.h # lib/dup2.c # lib/filemode.h # lib/fpending.c # lib/fpending.h # lib/fsusage.c # lib/getgroups.c # lib/getloadavg.c # lib/gettext.h # lib/gettime.c # lib/gettimeofday.c # lib/group-member.c # lib/malloc.c # lib/md5-stream.c # lib/md5.c # lib/md5.h # lib/memmem.c # lib/memrchr.c # lib/nanosleep.c # lib/save-cwd.h # lib/sha1.c # lib/sig2str.c # lib/stdlib.in.h # lib/strtoimax.c # lib/strtol.c # lib/strtoll.c # lib/time_r.c # lib/xalloc-oversized.h # lisp/auth-source-pass.el # lisp/emacs-lisp/lisp-mnt.el # lisp/emacs-lisp/timer.el # lisp/info-look.el # lisp/jit-lock.el # lisp/loadhist.el # lisp/mail/rmail.el # lisp/net/ntlm.el # lisp/net/webjump.el # lisp/progmodes/asm-mode.el # lisp/progmodes/project.el # lisp/progmodes/sh-script.el # lisp/textmodes/flyspell.el # lisp/textmodes/reftex-toc.el # lisp/textmodes/reftex.el # lisp/textmodes/tex-mode.el # lisp/url/url-gw.el # m4/alloca.m4 # m4/clock_time.m4 # m4/d-type.m4 # m4/dirent_h.m4 # m4/dup2.m4 # m4/euidaccess.m4 # m4/fchmodat.m4 # m4/filemode.m4 # m4/fsusage.m4 # m4/getgroups.m4 # m4/getloadavg.m4 # m4/getrandom.m4 # m4/gettime.m4 # m4/gettimeofday.m4 # m4/gnulib-common.m4 # m4/group-member.m4 # m4/inttypes.m4 # m4/malloc.m4 # m4/manywarnings.m4 # m4/mempcpy.m4 # m4/memrchr.m4 # m4/mkostemp.m4 # m4/mktime.m4 # m4/nproc.m4 # m4/nstrftime.m4 # m4/pathmax.m4 # m4/pipe2.m4 # m4/pselect.m4 # m4/pthread_sigmask.m4 # m4/readlink.m4 # m4/realloc.m4 # m4/sig2str.m4 # m4/ssize_t.m4 # m4/stat-time.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/stdio_h.m4 # m4/stdlib_h.m4 # m4/stpcpy.m4 # m4/strnlen.m4 # m4/strtoimax.m4 # m4/strtoll.m4 # m4/time_h.m4 # m4/timegm.m4 # m4/timer_time.m4 # m4/timespec.m4 # m4/unistd_h.m4 # m4/warnings.m4 # nt/configure.bat # nt/preprep.c # test/lisp/register-tests.el
2024-01-02; Add 2024 to copyright yearsPo Lu
2023-12-16Merge from origin/emacs-29Eli Zaretskii
bf4ccb0be07 ; * lisp/term.el (term--xterm-paste): Fix last change. 0d9e2e448d9 ; * doc/lispref/functions.texi (Function Documentation): ... 791cc5065da Fix shaping of Sinhala text efcbf0b5abf Add use cases of (fn) documentation facility. c3331cb3659 Fix pasting into terminal-mode on term.el 5be94e2bce5 Fix opening directory trees from Filesets menu 6b6e770a1f5 Eglot: Add ruff-lsp as an alternative Python server ed8a8a5ba16 Fix symbol name in Multisession Variables examples 400ef15bdc3 js-ts-mode: Fix font-lock rules conflict c165247c300 Add indentation rules for bracketless statements in js-ts... 7f1bd69cd19 Fix c-ts-mode bracketless indentation for BSD style (bug#... e23068cb9a1 Add missing indent rules in c-ts-mode (bug#66152) d2c4b926ac2 Fix treesit-default-defun-skipper (bug#66711) 9874561f39e Fix treesit-node-field-name and friends (bug#66674) eace9e11226 python-ts-mode: Highlight default parameters 23c06c7c308 Update to Org 9.6.13
2023-12-16Fix shaping of Sinhala textEli Zaretskii
* lisp/language/sinhala.el (composition-function-table): Allow U+200D U+0DCA as well as U+0DCA U+200D between consonants. Suggested by Richard Wordingham <richard.wordingham@ntlworld.com>. (Bug#67828)
2023-12-09Merge from origin/emacs-29Eli Zaretskii
0f361cc985d ; Minor copyedits in description of ':box' face property 46fe7a17f53 Fix dragging mode line on text terminals with a mouse (bu... 12daf386f37 ; * doc/lispref/processes.texi (Network): Fix wording and... 037d858dc1a (rust-ts-mode): Set electric-indent-chars dc9b733ab88 js-ts-mode: Highlight function parameters inside destruct... 4a72f13bdfb js-ts-mode: Highlight property shorthands in assignments 83ed9018ede (js--treesit-font-lock-settings): Highlight parameters in... ad0f87bb4c3 (js--treesit-font-lock-settings): Remove some duplicates 71c5f3694fd ; Another fix of doc string of 'message-mail-user-agent' ... 04a39353bae ; * lisp/gnus/message.el (message-mail-user-agent): Doc f... 82ddcf37ec6 ; * doc/lispref/files.texi (Changing Files): Fix last cha... 89068516b3e Don't claim to signal an error when deleting a nonexistin... 4fd254e1830 * lisp/indent.el (indent-rigidly): Improve prompt (bug#67... 5f923ff1a6a ; Fix typos a1f88963f5d rust-ts-mode--comment-docstring: Handle block doc comments a547b0e2e83 rust-ts-mode--comment-docstring: Fix/improve the previous...
2023-12-03; Fix typosStefan Kangas
2023-10-29Prefer seq-filter in hanja-util.elStefan Kangas
Benchmarking shows seq-filter to be ~30% faster on this machine. * lisp/language/hanja-util.el (hanja-filter): Make into obsolete alias for 'seq-filter'. Update single caller.
2023-08-16tibetan.el: compute constants at compile time, optimise regexpsMattias Engdegård
* lisp/language/tibetan.el (tibetan-subjoined-transcription-alist) (tibetan-regexp, tibetan-precomposed-regexp) (tibetan-precomposition-rule-regexp): Evaluate at compile time. Use regexp-opt.
2023-08-05Allow user control on char-width of "ambiguous" charactersEli Zaretskii
* src/character.c (syms_of_character) <ambiguous-width-chars>: New char-table. * lisp/international/characters.el (ambiguous-width-chars): Fill the table. (update-cjk-ambiguous-char-widths): New function. (cjk-ambiguous-chars-are-wide): New defcustom, uses 'update-cjk-ambiguous-char-widths' as its :set function. (use-cjk-char-width-table): Obey 'cjk-ambiguous-chars-are-wide' by adding another child char-table for ambiguous-width characters, where the width is set according to the option. * lisp/language/chinese.el ("Chinese-GB", "Chinese-BIG5") ("Chinese-CNS", "Chinese-EUC-TW", "Chinese-GBK"): * lisp/language/japanese.el ("Japanese"): * lisp/language/korean.el ("Korean"): Add new language-info slot 'cjk-locale-symbol'. Bug#64420
2023-07-31Drop duplicate vietnamese-tcvn coding systemUlrich Müller
* lisp/language/vietnamese.el (vietnamese-vscii): Update docstring. (vietnamese-tcvn, tcvn, tcvn-5712): Make them aliases of vietnamese-vscii. ("Vietnamese"): Drop vietnamese-tcvn from coding-system values. Update docstring. * etc/NEWS: Announce this change.
2023-07-08; Re-add recently removed comment in cyrillic.el.Basil L. Contovounesios
https://lists.gnu.org/r/emacs-devel/2023-07/msg00303.html
2023-07-08; Simplify last change to cyrillic.el.Basil L. Contovounesios
https://lists.gnu.org/r/emacs-devel/2023-07/msg00297.html
2023-07-08; Fix last change to lisp/language/cyrillic.el.Basil L. Contovounesios
For discussion, see the following emacs-devel thread: https://lists.gnu.org/r/emacs-devel/2023-07/msg00221.html
2023-07-08Disambiguate mode line indication for utf-8 and utf-16Ulrich Müller
* lisp/international/mule-conf.el (utf-7): * lisp/language/cyrillic.el (koi8-u): Change mnemonic letters to ?u and ?\N{cyrillic capital letter u}, respectively.
2023-07-05; fix last changeMattias Engdegård
* lisp/language/tibetan.el (tibetan-regexp, tibetan-precomposed-regexp) (tibetan-precomposition-rule-regexp): Don't use regexp-opt after all since it breaks bootstrapping.
2023-07-05Improve some big regexpsMattias Engdegård
* lisp/language/lao-util.el (lao-transcription-pattern): Remove duplicate definition. * lisp/language/tibetan.el (tibetan-regexp, tibetan-precomposed-regexp) (tibetan-precomposition-rule-regexp): Use regexp-opt.
2023-04-25Followup to addition of TUTORIAL.faEli Zaretskii
* etc/NEWS: Announce addition of TUTORIAL.fa. * etc/tutorials/TUTORIAL.translators (TUTORIAL.fa): New entry. * lisp/language/misc-lang.el ("Persian"): Add tutorial property.
2023-04-25Add Farsi/Persian translation of the tutorialMohsen Banan
* etc/tutorials/TUTORIAL.fa: New file. * lisp/language/misc-lang.el (arabic-shaper-ZWNJ-handling): Fix typo in doc string.
2023-04-25Add Mongolian language environmentsEli Zaretskii
* lisp/language/misc-lang.el ("Mongolian-traditional"): * lisp/language/cyrillic.el ("Mongolian-cyrillic"): New language environments. * etc/HELLO: Add Mongolian Traditional. * etc/NEWS: Announce the new language environments. (Bug#63028)
2023-04-23Fix rendering of Traditional Mongolian scriptEli Zaretskii
* lisp/international/characters.el: Set punctuation syntax for Po characters from the Mongolian block * lisp/international/fontset.el (setup-default-fontset): Add fontset setting for Traditional Mongolic. * lisp/language/misc-lang.el (composition-function-table): Add rules for Traditional Mongolic. (Bug#63028)
2023-01-01; Add 2023 to copyright years.Eli Zaretskii
2022-12-11* lisp/language/indian.el: Improve Brahmi composition rules. (bug#58957)समीर सिंह Sameer Singh
2022-12-09Update Turkish HelloEli Zaretskii
* etc/HELLO (Turkish): * lisp/language/european.el ("Turkish"): Add a Turkish Hello. Suggested by YUSUF ALPER ÇIKIŞIR <yusufcikisir@std.iyte.edu.tr>.
2022-11-19; Improve doc strings of Ethiopic support functions and variablesEli Zaretskii
* lisp/language/ethio-util.el (ethio-primary-language) (ethio-secondary-language, ethio-use-colon-for-colon) (ethio-use-three-dot-question, ethio-quote-vowel-always) (ethio-W-sixth-always, ethio-sera-to-fidel-buffer) (ethio-sera-to-fidel-region, ethio-sera-to-fidel-marker) (ethio-fidel-to-sera-buffer, ethio-fidel-to-sera-region) (ethio-fidel-to-sera-marker, ethio-get-consonant) (ethio-fidel-to-tex-buffer, ethio-tex-to-fidel-buffer) (ethio-fidel-to-java-buffer, ethio-java-to-fidel-buffer) (ethio-find-file, ethio-write-file, ethio-gemination) ("ethiopic-sera"): Doc fixes.
2022-11-19; Explain why some files are encoded in utf-8-emacsEli Zaretskii
* lisp/international/titdic-cnv.el: * lisp/language/ethio-util.el: * lisp/language/ethiopic.el: * lisp/language/ind-util.el: * lisp/language/tibetan.el: * lisp/language/tibet-util.el: * lisp/leim/quail/ethiopic.el: * lisp/leim/quail/tibetan.el: Add commentary explaining why these files are encoded in utf-8-emacs. (Bug#59341)
2022-11-11; Fix typosStefan Kangas
2022-10-30; Change parent language-environment of KharoshthiEli Zaretskii
* lisp/language/misc-lang.el ("Kharoshthi"): Change its parent to "Indian". (Bug#58376) * lisp/international/mule-cmds.el (set-language-info-alist): Fix indentation.