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

推荐订阅源

Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
The GitHub Blog
The GitHub Blog
Recent Announcements
Recent Announcements
A
About on SuperTechFans
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏
U
Unit 42
WordPress大学
WordPress大学
Y
Y Combinator Blog
罗磊的独立博客
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
腾讯CDC
博客园 - 叶小钗
Stack Overflow Blog
Stack Overflow Blog
Engineering at Meta
Engineering at Meta
Microsoft Security Blog
Microsoft Security Blog
GbyAI
GbyAI
V
V2EX
雷峰网
雷峰网
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
SegmentFault 最新的问题
酷 壳 – 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 Preserve `crm--choose-completion-string' - elpa/gnu.git - GNU ELPA 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 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
Fix prompt with a default-value - elpa/gnu.git
Arash Esbati · 2026-09-02 · via elpa/gnu.git, branch externals/auctex
authorArash Esbati <arash@gnu.org>2026-09-01 22:36:14 +0200
committerArash Esbati <arash@gnu.org>2026-09-01 22:36:14 +0200
commit414dcb3bfe679f58873e5c815f6867e6be236cab (patch)
treed2b4dea56781341a78ae4c2a33bb1bf09828c4da
parentacf2e1c724dd3bbcf337b1d5efe9c510793e9e3a (diff)

Fix prompt with a default-value

* tex.el (TeX-arg-string): Adjust prompt accordingly when a default-value is given.

-rw-r--r--tex.el5

1 files changed, 4 insertions, 1 deletions

diff --git a/tex.el b/tex.el
index 4e04b8cbf81..02e71b4e8f8 100644
--- a/tex.el
+++ b/tex.el

@@ -3542,7 +3542,10 @@ LEFTBRACE and RIGHTBRACE."

(let ((TeX-argument (buffer-substring (point) (mark))))

(delete-region (point) (mark))

TeX-argument)

- (TeX-read-string (TeX-argument-prompt optional prompt "Text")

+ (TeX-read-string (TeX-argument-prompt

+ optional prompt

+ (concat "Text" (when default-value

+ (concat" (default " default-value ")"))))

initial-input history default-value))

optional)))