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

推荐订阅源

博客园 - 司徒正美
M
MIT News - Artificial intelligence
博客园_首页
IT之家
IT之家
L
LangChain Blog
D
DataBreaches.Net
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
Blog — PlanetScale
Blog — PlanetScale
人人都是产品经理
人人都是产品经理
博客园 - Franky
云风的 BLOG
云风的 BLOG
罗磊的独立博客
量子位
G
Google Developers Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 【当耐特】
博客园 - 叶小钗
S
SegmentFault 最新的问题
Stack Overflow Blog
Stack Overflow Blog
B
Blog
T
Tailwind CSS Blog
A
About on SuperTechFans
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

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 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 custom 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-02 12:56:14 +0200
committerArash Esbati <arash@gnu.org>2026-09-02 12:56:14 +0200
commit82189092e425f48f8da60b68ffb0b276d9eeb833 (patch)
tree8f7a90b83734baf0a47fd63cbc90e314de3c9d23
parent414dcb3bfe679f58873e5c815f6867e6be236cab (diff)

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

-rw-r--r--tex.el7

1 files changed, 5 insertions, 2 deletions

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

@@ -3543,9 +3543,12 @@ LEFTBRACE and RIGHTBRACE."

(delete-region (point) (mark))

TeX-argument)

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

- optional prompt

+ optional

+ (if (and prompt default-value)

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

+ prompt)

(concat "Text" (when default-value

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

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

initial-input history default-value))

optional)))