[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 1adb687a9d 05/16: Fix query of optional argument
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 1adb687a9d 05/16: Fix query of optional arguments |
Date: |
Mon, 24 Apr 2023 13:44:12 -0400 (EDT) |
branch: externals/auctex
commit 1adb687a9d8816763c787abf751367925788b909
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Fix query of optional arguments
* style/thmtools.el (LaTeX-thmtools-env-label): Add ?\r (RET) to
list of valid chars for input.
---
style/thmtools.el | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/style/thmtools.el b/style/thmtools.el
index dcf02db8d5..cee2790823 100644
--- a/style/thmtools.el
+++ b/style/thmtools.el
@@ -1,6 +1,6 @@
;;; thmtools.el --- AUCTeX style for `thmtools.sty' (v0.72) -*-
lexical-binding: t; -*-
-;; Copyright (C) 2018--2022 Free Software Foundation, Inc.
+;; Copyright (C) 2018--2023 Free Software Foundation, Inc.
;; Author: Arash Esbati <arash@gnu.org>
;; Maintainer: auctex-devel@gnu.org
@@ -205,8 +205,8 @@ Select the content of the optional argument with a key:
RET in order to leave it empty.")
(choice (read-char-choice
(TeX-argument-prompt
- nil nil "Heading (h), Key=val (k), Empty (RET)")
- '(?h ?k)))
+ nil nil "Heading (h), Key=val (k), Empty (RET), Help (C-h)")
+ '(?h ?k ?\r)))
(opthead (cond ((= choice ?h)
(TeX-read-string
(TeX-argument-prompt t nil "Heading")))
@@ -222,7 +222,11 @@ RET in order to leave it empty.")
;; much easier for AUCTeX and RefTeX
;; ("label")
("listhack" ("true" "false")))))
- (t ""))))
+ (t
+ ;; Clear minibuffer and don't leave the ugly
+ ;; ^M there and return an empty string:
+ (message nil)
+ ""))))
(LaTeX-insert-environment environment
(when (and opthead
(not (string= opthead "")))
- [elpa] externals/auctex updated (658832b8a2 -> 9d47b0a1bd), Tassilo Horn, 2023/04/24
- [elpa] externals/auctex bd2c1c676b 14/16: ; Release_13.2, Tassilo Horn, 2023/04/24
- [elpa] externals/auctex 3fc581c356 06/16: ; Silence issues reported by 'make -dynvars-check', Tassilo Horn, 2023/04/24
- [elpa] externals/auctex 1adb687a9d 05/16: Fix query of optional arguments,
Tassilo Horn <=
- [elpa] externals/auctex 91e863aa38 09/16: Improve spelling skip support for fancyvrb macros, Tassilo Horn, 2023/04/24
- [elpa] externals/auctex c19d4003e0 02/16: Replace `TeX-arg-eval' in style/newfloat.el, Tassilo Horn, 2023/04/24
- [elpa] externals/auctex ec742f3332 12/16: ; Prepare for new release, Tassilo Horn, 2023/04/24
- [elpa] externals/auctex 99334fe623 08/16: Improve filling over comments in docTeX-mode, Tassilo Horn, 2023/04/24
- [elpa] externals/auctex 629504af8c 01/16: Simplify implementation of style/overpic.el, Tassilo Horn, 2023/04/24
- [elpa] externals/auctex 9d47b0a1bd 16/16: Release GNU AUCTeX 13.2.0, Tassilo Horn, 2023/04/24
- [elpa] externals/auctex b49bb22929 13/16: ; make change-history-commit, Tassilo Horn, 2023/04/24
- [elpa] externals/auctex 2a65fac9b1 03/16: Return correct completion candidates in math-mode, Tassilo Horn, 2023/04/24
- [elpa] externals/auctex 1c808c0adc 15/16: Merge commit 'bd2c1c67' into externals/auctex, Tassilo Horn, 2023/04/24
- [elpa] externals/auctex 1a2060af30 04/16: * style/pdfpages.el ("pdfpages"): Replace `TeX-arg-eval'., Tassilo Horn, 2023/04/24