







| author | Arash Esbati <arash@gnu.org> | 2026-09-02 12:56:14 +0200 |
|---|---|---|
| committer | Arash Esbati <arash@gnu.org> | 2026-09-02 12:56:14 +0200 |
| commit | 82189092e425f48f8da60b68ffb0b276d9eeb833 (patch) | |
| tree | 8f7a90b83734baf0a47fd63cbc90e314de3c9d23 | |
| parent | 414dcb3bfe679f58873e5c815f6867e6be236cab (diff) | |
* tex.el (TeX-arg-string): Adjust prompt when a default-value is given also for a custom prompt string.
| -rw-r--r-- | tex.el | 7 |
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)))
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。