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

推荐订阅源

J
Java Code Geeks
美团技术团队
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
Jina AI
Jina AI
博客园_首页
M
MIT News - Artificial intelligence
D
DataBreaches.Net
L
LangChain Blog
宝玉的分享
宝玉的分享
F
Fortinet All Blogs
A
About on SuperTechFans
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
Y
Y Combinator Blog
腾讯CDC
Vercel News
Vercel News
雷峰网
雷峰网
GbyAI
GbyAI
aimingoo的专栏
aimingoo的专栏
阮一峰的网络日志
阮一峰的网络日志
博客园 - 【当耐特】

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 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 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
Improve query of the optional float placement - elpa/gnu.git
Arash Esbati · 2026-08-08 · via elpa/gnu.git, branch externals/auctex

* latex.el (LaTeX-env-figure): Use `format-prompt' and the DEFAULT-VALUE argument of `TeX-read-string' which leaves the minibuffer empty during the query. Fix comments. * style/floatrow.el (LaTeX-floatrow-env-figure): * style/revtex4-2.el (LaTeX-env-revtex4-2-video): Adjust accordingly.

diff --git a/latex.el b/latex.el
index bccc0d1ef3d..69ff6d8f7b6 100644
--- a/latex.el
+++ b/latex.el

@@ -1229,9 +1229,10 @@ If SHORT-CAPTION is non-nil pass it as an optional argument to

(defun LaTeX-env-figure (environment)

"Create ENVIRONMENT with \\caption and \\label commands."

- (let* ((float (and LaTeX-float ; LaTeX-float can be nil, i.e.

- ; do not prompt

- (TeX-read-string "(Optional) Float position: " LaTeX-float)))

+ (let* ((float (and LaTeX-float ;; `LaTeX-float' can be nil, i.e., do not prompt

+ (TeX-read-string

+ (format-prompt "(Optional) Float position" LaTeX-float)

+ nil nil LaTeX-float)))

(caption (TeX-read-string "Caption: "))

(short-caption (when (>= (length caption) LaTeX-short-caption-prompt-length)

(TeX-read-string "(Optional) Short caption: ")))

@@ -8221,8 +8222,8 @@ function `TeX--completion-at-point' which should come later in

;; The next defcustom and functions control the annotation of labels

;; during in-buffer completion which is done by

-;; `TeX--completion-at-point' also inside the arguments of \ref and

-;; such and not with the code above.

+;; `TeX--completion-at-point' inside the arguments of \ref and such as

+;; well as with `TeX-arg-ref'

(defcustom LaTeX-label-annotation-max-length 30

"Maximum number of characters for annotation of labels.

@@ -423,10 +423,10 @@ entries are available under \"rawfigure*?\" and \"rawtable*?\"."

(defun LaTeX-floatrow-env-figure (environment)

"Create floating ENVIRONMENT suitable for floatrow macros."

- (let ((float (and LaTeX-float

+ (let ((float (and LaTeX-float ;; LaTeX-float can be nil, i.e., do not prompt

(TeX-read-string

- (TeX-argument-prompt t nil "Float position")

- LaTeX-float))))

+ (format-prompt "(Optional) Float position" LaTeX-float)

+ nil nil LaTeX-float))))

(LaTeX-insert-environment environment

(unless (zerop (length float))

(concat LaTeX-optop float LaTeX-optcl)))))

@@ -45,10 +45,10 @@

"Create ENVIRONMENT with \\caption and \\label commands.

This function is meant to be used for \"video\" environment

provided by REVTeX class."

- (let* ((float (and LaTeX-float ; LaTeX-float can be nil, i.e. do not prompt

+ (let* ((float (and LaTeX-float ;; LaTeX-float can be nil, i.e., do not prompt

(TeX-read-string

- (TeX-argument-prompt t nil "Float position")

- LaTeX-float)))

+ (format-prompt "(Optional) Float position" LaTeX-float)

+ nil nil LaTeX-float)))

(caption (TeX-read-string

(TeX-argument-prompt nil nil "Caption")))

(short-caption (when (>= (length caption) LaTeX-short-caption-prompt-length)