[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] elpa 1cb2678 04/23: Delete redundant code
From: |
Tassilo Horn |
Subject: |
[elpa] elpa 1cb2678 04/23: Delete redundant code |
Date: |
Wed, 30 Mar 2016 19:08:02 +0000 |
branch: elpa
commit 1cb2678f599231d151aa85f14e4ee5d608048ad2
Author: Arash Esbati <address@hidden>
Commit: Tassilo Horn <address@hidden>
Delete redundant code
* style/enumitem.el (LaTeX-arg-SetLabelAlign)
(LaTeX-arg-SetEnumitemKey, LaTeX-arg-SetEnumitemValue): Delete
redundant code which is part of the function
`LaTeX-enumitem-update-key-val-options'.
(LaTeX-enumitem-env-with-opts): Fix the name of argument in the
body of function.
---
style/enumitem.el | 24 ++++--------------------
1 files changed, 4 insertions(+), 20 deletions(-)
diff --git a/style/enumitem.el b/style/enumitem.el
index 87249bc..c81cd96 100644
--- a/style/enumitem.el
+++ b/style/enumitem.el
@@ -209,7 +209,7 @@ key-val and the first item."
;; The inserted \item may have outdented the first line to the
;; right. Fill it, if appropriate.
(when (and (not (looking-at "$"))
- (not (assoc environment LaTeX-indent-environment-list))
+ (not (assoc env LaTeX-indent-environment-list))
(> (- (line-end-position) (line-beginning-position))
(current-fill-column)))
(LaTeX-fill-paragraph nil)))
@@ -218,13 +218,7 @@ key-val and the first item."
"Ask for new type (value) for the \"align\" key and add it to
`LaTeX-enumitem-key-val-options-local'."
(LaTeX-enumitem-update-key-val-options)
- (let* ((key "align")
- (val (TeX-read-string "Alignment: "))
- (val-match (cdr (assoc key LaTeX-enumitem-key-val-options-local)))
- (temp (copy-alist LaTeX-enumitem-key-val-options-local))
- (opts (assq-delete-all (car (assoc key temp)) temp)))
- (pushnew (list key (delete-dups (apply 'append (list val) val-match)))
- opts :test #'equal)
+ (let ((val (TeX-read-string "Alignment: ")))
(TeX-argument-insert val optional)
(LaTeX-add-enumitem-SetLabelAligns val)))
@@ -237,7 +231,6 @@ key-val and the first item."
LaTeX-enumitem-key-val-options-local
"Replacement")))
(TeX-argument-insert key optional)
(TeX-argument-insert replace optional)
- (add-to-list 'LaTeX-enumitem-key-val-options-local (list key))
(LaTeX-add-enumitem-SetEnumitemKeys key)))
;; In `LaTeX-enumitem-SetEnumitemValue-regexp', we match (0 1 2).
@@ -250,17 +243,8 @@ key-val and the first item."
"Ask for a new value added to an existing key incl. the final
replacement of the value."
(LaTeX-enumitem-update-key-val-options)
- (let* ((key (completing-read "Key: " LaTeX-enumitem-key-val-options-local))
- (val (TeX-read-string "String value: "))
- ;; (key-match (car (assoc key LaTeX-enumitem-key-val-options-local)))
- (val-match (cdr (assoc key LaTeX-enumitem-key-val-options-local)))
- (temp (copy-alist LaTeX-enumitem-key-val-options-local))
- (opts (assq-delete-all (car (assoc key temp)) temp)))
- (if val-match
- (pushnew (list key (delete-dups (apply 'append (list val) val-match)))
- opts :test #'equal)
- (pushnew (list key (list val)) opts :test #'equal))
- (setq LaTeX-enumitem-key-val-options-local (copy-alist opts))
+ (let ((key (completing-read "Key: " LaTeX-enumitem-key-val-options-local))
+ (val (TeX-read-string "String value: ")))
(TeX-argument-insert key optional)
(TeX-argument-insert val optional)
(LaTeX-add-enumitem-SetEnumitemValues
- [elpa] elpa 0f8baf6 16/23: TikZ: Ignore case when prompting for argument types., (continued)
- [elpa] elpa 0f8baf6 16/23: TikZ: Ignore case when prompting for argument types., Tassilo Horn, 2016/03/30
- [elpa] elpa 4a1728b 15/23: TikZ: Apply suggestions from checkdoc., Tassilo Horn, 2016/03/30
- [elpa] elpa cf4ce35 18/23: TikZ: Add more path connector types., Tassilo Horn, 2016/03/30
- [elpa] elpa f23fbd6 14/23: Fill environment content onley when auto-fill-mode is active, Tassilo Horn, 2016/03/30
- [elpa] elpa eddf3ff 20/23: Fix previous commit, Tassilo Horn, 2016/03/30
- [elpa] elpa 608e874 01/23: Add the beginnings of TikZ support., Tassilo Horn, 2016/03/30
- [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 <=
- [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, 2016/03/30
- [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