[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 4688310 65/95: Add new compat function `TeX-repl
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 4688310 65/95: Add new compat function `TeX-replace-regexp-in-string' |
Date: |
Sun, 16 Apr 2017 01:26:56 -0400 (EDT) |
branch: externals/auctex
commit 46883103da47a8b9cea80dc11a2090fb248a04c0
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>
Add new compat function `TeX-replace-regexp-in-string'
* tex.el (TeX-replace-regexp-in-string): New compat function.
With XEmacs, pass arguments to `replace-in-string', with Emacs to
`replace-regexp-in-string'. This function supports only mandatory
arguments of the original functions just mentioned.
---
tex.el | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/tex.el b/tex.el
index 64e5ea2..d5a8513 100644
--- a/tex.el
+++ b/tex.el
@@ -762,7 +762,11 @@ overlays."
(/ outer-priority 2))
((and inner-priority outer-priority)
(+ (/ (- outer-priority inner-priority) 2) inner-priority))
- (t TeX-overlay-priority-step)))) )
+ (t TeX-overlay-priority-step))))
+
+ (defun TeX-replace-regexp-in-string (regexp rep string)
+ "Compatibility function mimicking `replace-regexp-in-string' for XEmacs."
+ (replace-in-string string regexp rep)) )
;; require crm here, because we often do
;;
@@ -900,7 +904,9 @@ overlays."
(/ outer-priority 2))
((and inner-priority outer-priority)
(+ (/ (- outer-priority inner-priority) 2) inner-priority))
- (t TeX-overlay-priority-step)))) )
+ (t TeX-overlay-priority-step))))
+
+ (defalias #'TeX-replace-regexp-in-string #'replace-regexp-in-string) )
(defun TeX-delete-dups-by-car (alist &optional keep-list)
"Return a list of all elements in ALIST, but each car only once.
- [elpa] externals/auctex 194a8f8 62/95: Add LaTeX inline math delimiters to Ispell skip list, (continued)
- [elpa] externals/auctex 194a8f8 62/95: Add LaTeX inline math delimiters to Ispell skip list, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 7390999 61/95: ; Simplify insertion of a newline after label, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 6a298a8 47/95: Fix documents and add trivial improvements., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex a286e8b 57/95: Improve parsing capabilities of style/fancyvrb.el, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 11e234b 55/95: Remove spurious entries of view settings., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 83a875b 83/95: ; * tex.el (TeX-ispell-tex-arg-verb-end): Drop unnecessary `format'., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 2116248 94/95: * doc/changes.texi: Update with recent changes., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 65e56e1 93/95: ; Make sure that `regex-opt' builds a shy group., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex e6c95e9 78/95: * tests/latex/fontification-verb-macros.tex: New file., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex a8dba19 60/95: Fix addition of key=val's, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 4688310 65/95: Add new compat function `TeX-replace-regexp-in-string',
Tassilo Horn <=
- [elpa] externals/auctex 6b5a7e0 56/95: Improve fallback for indentation when & is omitted, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 592297d 64/95: Avoid altering user option as much as possible, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 7a382d2 72/95: * texmathp.el (texmathp-tex-commands-default): Add entries for empheq.sty., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 2fef12e 80/95: ; Clear out byte compile warning, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex 51d8d3d 75/95: Recognize optional argument in verb macros with delimiters/braces, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex d5951e6 79/95: Improve skipping of inline verbatim macros, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex a45821b 92/95: ; * latex.el (LaTeX-section-list-add-locally): Fix doc string., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex d82f66c 91/95: ; * style/paracol.el (TeX-arg-paracol-switchcolumn*): Guard point movement., Tassilo Horn, 2017/04/16
- [elpa] externals/auctex b2f69e1 84/95: Fix detection of bibliography files with dots in path, Tassilo Horn, 2017/04/16
- [elpa] externals/auctex ee42d37 73/95: Enhance Japanese class files support, Tassilo Horn, 2017/04/16