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

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
云风的 BLOG
云风的 BLOG
小众软件
小众软件
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 司徒正美
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
宝玉的分享
宝玉的分享
量子位
V
Visual Studio Blog
罗磊的独立博客
Vercel News
Vercel News
B
Blog
J
Java Code Geeks
S
SegmentFault 最新的问题
Recent Announcements
Recent Announcements
有赞技术团队
有赞技术团队
P
Proofpoint News Feed
GbyAI
GbyAI
G
Google Developers Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

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)