











| author | Arash Esbati <arash@gnu.org> | 2026-09-01 22:36:14 +0200 |
|---|---|---|
| committer | Arash Esbati <arash@gnu.org> | 2026-09-01 22:36:14 +0200 |
| commit | 414dcb3bfe679f58873e5c815f6867e6be236cab (patch) | |
| tree | d2b4dea56781341a78ae4c2a33bb1bf09828c4da | |
| parent | acf2e1c724dd3bbcf337b1d5efe9c510793e9e3a (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.el | 5 |
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)))
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。