[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 05c09bd 06/43: Remove TeX-how-many function
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 05c09bd 06/43: Remove TeX-how-many function |
Date: |
Tue, 20 Mar 2018 11:34:06 -0400 (EDT) |
branch: externals/auctex
commit 05c09bd9d5c9091674e7d94d75b397d713e90c1d
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>
Remove TeX-how-many function
* tex.el (TeX-how-many): Remove function.
* latex.el (LaTeX-hanging-ampersand-position): Replace `TeX-how-many' with
`how-many'.
---
latex.el | 2 +-
tex.el | 28 ----------------------------
2 files changed, 1 insertion(+), 29 deletions(-)
diff --git a/latex.el b/latex.el
index fe905d6..4dcb4bf 100644
--- a/latex.el
+++ b/latex.el
@@ -6522,7 +6522,7 @@ function would return non-nil and `(match-string 1)'
would return
(let* ((cur-pos (point)))
(save-excursion
(if (re-search-backward "\\\\\\\\" beg-pos t)
- (let ((cur-idx (TeX-how-many "[^\\]&" (point) cur-pos)))
+ (let ((cur-idx (how-many "[^\\]&" (point) cur-pos)))
(goto-char beg-pos)
(re-search-forward "[^\\]&" cur-pos t (+ 1 cur-idx))
;; If the above searchs fails, i.e. no "&" found,
diff --git a/tex.el b/tex.el
index 5927b49..bedd252 100644
--- a/tex.el
+++ b/tex.el
@@ -6708,34 +6708,6 @@ error."
(put 'TeX-insert-dollar 'delete-selection
(lambda () (null TeX-electric-math))))
-(defun TeX-how-many (regexp &optional rstart rend)
- "Compatibily function for `how-many'.
-Supports restriction to a region where the XEmacs version doesn't
-and always returns the number of matches, also in XEmacs and GNU
-Emacs 21."
- ;; Emacs >= 22 does what we want.
- (if (>= emacs-major-version 22)
- (how-many regexp rstart rend)
- ;; XEmacs and GNU Emacs 21 don't return the number of matches but only
print
- ;; it.
- (let ((string
- (if (featurep 'xemacs)
- ;; XEmacs doesn't even support restriction to a region.
- (save-excursion
- (save-restriction
- (when (and (integer-or-marker-p rstart)
- (integer-or-marker-p rend))
- (narrow-to-region rstart rend)
- (goto-char (point-min)))
- (how-many regexp)))
- (how-many regexp rstart rend))))
- ;; Hide the message printed by `how-many'.
- (message "")
- ;; Select the number of occurrences and convert it to a number.
- (if (string-match "\\([0-9]+\\).*" string)
- (string-to-number (replace-match "\\1" nil nil string))
- 0))))
-
(defun TeX--list-of-string-p (lst)
"Return non-nil iff `LST' is a list of strings.
Used as function for validating a variable's `safe-local-variable' property."
- [elpa] externals/auctex updated (aeeedbd -> 0011b68), Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 6cb1e7d 07/43: Remove XEmacs compatibility code in tex.el, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 2df2746 14/43: Delete unused options, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 52e1426 02/43: Remove XEmacs compatibility code in latex.el, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 8f46dea 08/43: Remove TeX-line-number-at-pos, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 9ba765e 04/43: Remove TeX-deactivate-mark, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 12618af 09/43: Remove code for compatibility with old Emacsens in tex.el, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 77c2cda 15/43: Remove XEmacs compatibility code in tex-jp.el, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 6861a88 10/43: Change encoding of Elisp source files to UTF-8, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 62d3606 18/43: Remove compatibility code for XEmacs in tex-fold.el, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 05c09bd 06/43: Remove TeX-how-many function,
Tassilo Horn <=
- [elpa] externals/auctex f366130 03/43: Remove old compat functions for commenting and uncommenting, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex f8290fc 21/43: Restore loading of prv-emacs, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 39d4959 23/43: * texmathp.el (texmathp-tex-commands-default): Add entries for breqn.sty., Tassilo Horn, 2018/03/20
- [elpa] externals/auctex d3d321a 05/43: Remove TeX-assoc-string, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex d86e95e 30/43: Support flymake in Emacs 26+ using chktex, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 7f9d64b 39/43: * font-latex.el (font-latex--get-script-props): Use `cl-case' instead of `case'., Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 5592c69 35/43: Improve flymake documentation, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex f7a4622 16/43: Delte prv-xemacs.el, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 3cdfdc8 19/43: Remove compatibility code for XEmacs in font-latex.el, Tassilo Horn, 2018/03/20
- [elpa] externals/auctex 45d9e1b 13/43: Make sure `LaTeX-default-options' is honored, Tassilo Horn, 2018/03/20