惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The GitHub Blog
The GitHub Blog
IT之家
IT之家
B
Blog RSS Feed
罗磊的独立博客
GbyAI
GbyAI
博客园 - Franky
Y
Y Combinator Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
博客园 - 聂微东
N
Netflix TechBlog - Medium
博客园 - 三生石上(FineUI控件)
人人都是产品经理
人人都是产品经理
U
Unit 42
博客园 - 叶小钗
Jina AI
Jina AI
MyScale Blog
MyScale Blog
雷峰网
雷峰网
B
Blog
Hugging Face - Blog
Hugging Face - Blog
Blog — PlanetScale
Blog — PlanetScale
Recent Announcements
Recent Announcements
腾讯CDC
酷 壳 – CoolShell
酷 壳 – CoolShell

elpa/gnu.git, branch externals/auctex

Release GNU AUCTeX 14.2.0 - elpa/gnu.git * latex.el (LaTeX-what-macro): Fix chars to skip backwards. - elpa/gnu.git * tex-ispell.el: Consolidate regexp for tabular environments. - elpa/gnu.git ; * latex.el (LaTeX-what-macro): Fix last change. - elpa/gnu.git * latex.el (LaTeX-what-macro): Improve macro recognition. - elpa/gnu.git Accept '-' as macro modifier - elpa/gnu.git Add new styles - elpa/gnu.git ; * tex-info.el (outline-heading-alist): Silence the compiler. - elpa/gnu.git Update style/simpleicons.el to package v16.29.0 - elpa/gnu.git Update NEWS.org for new preview feature - elpa/gnu.git Robustify check for escaped math switches/togglers - elpa/gnu.git Fix custom prompt with a default-value - elpa/gnu.git Fix prompt with a default-value - elpa/gnu.git Make `TeX-listify' an obsolete alias - elpa/gnu.git Fix 'syntax-propertize because of narrowing!' error - elpa/gnu.git Update style/ltx-talk.el to class v0.6.0 - elpa/gnu.git elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA elpa/gnu.git - GNU ELPA Return context for RefTeX also for macros - elpa/gnu.git ; Fix last change - elpa/gnu.git Add in-buffer completion for citation keys - elpa/gnu.git ; Adjust Copyright years - elpa/gnu.git Improve query of the optional float placement - elpa/gnu.git Sort predefined environment hooks - elpa/gnu.git Sort predefined hooks - elpa/gnu.git Allow additional properties for in-buffer completion - elpa/gnu.git Use ConTeXt Mark XL instead of LMTX - elpa/gnu.git
Preserve `crm--choose-completion-string' - elpa/gnu.git -...
Arash Esbati · 2026-09-09 · via elpa/gnu.git, branch externals/auctex

* tex.el (TeX-crm--choose-completion-string): New compatibility function. The function `crm--choose-completion-string' was deleted in Emacs with commit e8b46219. It is needed for `TeX-completing-read-multiple'.

diff --git a/tex.el b/tex.el
index e86461f5078..9b3b8811eb9 100644
--- a/tex.el
+++ b/tex.el

@@ -823,6 +823,22 @@ overlays between two existing ones.")

;; which results in a void-variable error if crm hasn't been loaded before.

(require 'crm)

+;; The function `crm--choose-completion-string' was removed with Emacs

+;; 32 (git commit e8b46219). We preserve it here:

+(defun TeX-crm--choose-completion-string (choice buffer base-position

+ &rest _ignored)

+ "Completion string chooser for `completing-read-multiple'.

+This is called from `choose-completion-string-functions'.

+It replaces the string that is currently being completed, without

+exiting the minibuffer.

+

+This is a copy of the function `crm--choose-completion-string' removed

+in Emacs 32.1."

+ (let ((completion-no-auto-exit t)

+ (choose-completion-string-functions nil))

+ (choose-completion-string choice buffer base-position)

+ t))

+

;; For GNU Emacs 24.4 or later, based on `completing-read-multiple' of

;; git commit b14abca9476cba2f500b5eda89441d593dd0f12b

;; 2013-01-10 * lisp/emacs-lisp/crm.el: Allow any regexp for separators.

@@ -835,7 +851,7 @@ in nil across different emacs versions."

(unwind-protect

(progn

(add-hook 'choose-completion-string-functions

- #'crm--choose-completion-string)

+ #'TeX-crm--choose-completion-string)

(let* ((minibuffer-completion-table #'crm--collection-fn)

(minibuffer-completion-predicate predicate)

;; see completing_read in src/minibuf.c

@@ -857,7 +873,7 @@ in nil across different emacs versions."

nil

result)))

(remove-hook 'choose-completion-string-functions

- #'crm--choose-completion-string)))

+ #'TeX-crm--choose-completion-string)))

(defun TeX-read-string (prompt &optional initial-input history default-value)

(read-string prompt initial-input history default-value t))