[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] elpa e8b5498 09/23: TikZ: allow arg type prompt to be specified.
From: |
Tassilo Horn |
Subject: |
[elpa] elpa e8b5498 09/23: TikZ: allow arg type prompt to be specified. |
Date: |
Wed, 30 Mar 2016 19:08:02 +0000 |
branch: elpa
commit e8b5498342962c4bd09c1b78c6ca79f0c9e68d44
Author: Matthew Leach <address@hidden>
Commit: Matthew Leach <address@hidden>
TikZ: allow arg type prompt to be specified.
* style/tikz.el (TeX-TikZ-get-arg-type): Add a new optional argument,
prompt, and show that to the user when non-nil, instead of the
default.
---
style/tikz.el | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/style/tikz.el b/style/tikz.el
index f5e11b1..d7857b0 100644
--- a/style/tikz.el
+++ b/style/tikz.el
@@ -94,10 +94,14 @@ string \"node[OPTIONS](NAME){TEXT}\"."
(text (TeX-TikZ-arg-text nil)))
(concat "node" options name text " ")))
-(defun TeX-TikZ-get-arg-type (types)
- "Prompt the user for the next argument type.
-TYPES is a list of possible types that the user can specify."
- (completing-read "Next argument type (RET to finish): " types nil t))
+(defun TeX-TikZ-get-arg-type (types &optional prompt)
+ "Prompt the user for an argument type.
+TYPES is a list of possible types that the user can specify. If
+PROMPT is non-nil use that prompt instead."
+ (let ((prompt (if prompt
+ prompt
+ "Next argument type (RET to finish): ")))
+ (completing-read prompt types nil t)))
(defun TeX-TikZ-macro-arg (function-alist)
"Prompt the user for arguments to compose a TikZ macro.
- [elpa] elpa 201ed15 06/23: Fix a misplaced closing parenthesis, (continued)
- [elpa] elpa 201ed15 06/23: Fix a misplaced closing parenthesis, Tassilo Horn, 2016/03/30
- [elpa] elpa 1288609 07/23: Add fontification support, Tassilo Horn, 2016/03/30
- [elpa] elpa 00740ed 08/23: TikZ: split out the prompts to TeX-TikZ-arg-node & TeX-TikZ-macro-arg., Tassilo Horn, 2016/03/30
- [elpa] elpa c49b547 17/23: TikZ: Rename 'text' to 'label' to be consistent with TikZ terminology., Tassilo Horn, 2016/03/30
- [elpa] elpa 1cb2678 04/23: Delete redundant code, Tassilo Horn, 2016/03/30
- [elpa] elpa bb67e18 13/23: TikZ: Add 'Named Point' point type with completion., Tassilo Horn, 2016/03/30
- [elpa] elpa 0423aae 19/23: New function TeX-error-report-has-errors-p, Tassilo Horn, 2016/03/30
- [elpa] elpa df60ed5 05/23: Fix the name of argument in function body, Tassilo Horn, 2016/03/30
- [elpa] elpa 00430f2 21/23: Restore compatibility with XEmacs, Tassilo Horn, 2016/03/30
- [elpa] elpa b211827 10/23: TikZ: Extract the prompting of the next arg from TeX-TikZ-macro-arg., Tassilo Horn, 2016/03/30
- [elpa] elpa e8b5498 09/23: TikZ: allow arg type prompt to be specified.,
Tassilo Horn <=
- [elpa] elpa 0bb9765 11/23: TikZ: Add prompting for \coordinate macro., Tassilo Horn, 2016/03/30
- [elpa] elpa 4770a35 12/23: TikZ: Add prompting for TikZ's \node macro., Tassilo Horn, 2016/03/30
- [elpa] elpa 7573813 23/23: Release GNU AUCTeX 11.89.3, Tassilo Horn, 2016/03/30
- [elpa] elpa d120a27 22/23: Merge branch 'master' into elpa, Tassilo Horn, 2016/03/30