branch: externals/auctex commit 563f0e68c1d126cbdfd8cb576a0b02ab514e1054 Author: Tassilo Horn <t...@gnu.org> Commit: Tassilo Horn <t...@gnu.org>
Fix docstring and spelling errors * tex.el (TeX-string-divide-number-unit): Fix docstring. * style/mathtools.el ("mathtools"): Fix typos. --- ChangeLog | 6 ++++++ style/mathtools.el | 2 +- tex.el | 3 +-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index d1eb41b..3f387e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-04-29 Tassilo Horn <t...@gnu.org> + + * tex.el (TeX-string-divide-number-unit): Fix docstring. + + * style/mathtools.el ("mathtools"): Fix typos. + 2015-04-25 Tassilo Horn <t...@gnu.org> * tex.el (TeX-parse-macro): Improve docstring. diff --git a/style/mathtools.el b/style/mathtools.el index fc43a80..68fed88 100644 --- a/style/mathtools.el +++ b/style/mathtools.el @@ -124,7 +124,7 @@ '("shoveright" [ TeX-arg-size ] 1) ;; don't understand t, but intertext in amsmath.el uses it '("shortintertext" t) - '("DeclarePairedDelimeter" TeX-arg-macro "Left delimeter" "Right delimeter") + '("DeclarePairedDelimiter" TeX-arg-macro "Left delimiter" "Right delimiter") ;; 3.4.4 '("MoveEqLeft" [ "Number" ]) '("ArrowBetweenLines" [ TeX-arg-macro ] ) diff --git a/tex.el b/tex.el index 680c4a1..b7ffc1f 100644 --- a/tex.el +++ b/tex.el @@ -3230,8 +3230,7 @@ Unless optional argument COMPLETE is non-nil, ``: '' will be appended." (if complete "" ": "))) (defun TeX-string-divide-number-unit (string) - "Divide number and unit in STRING. -Return the number as car and unit as cdr." + "Divide number and unit in STRING and return a list (number unit)." (if (string-match "[0-9]*\\.?[0-9]+" string) (list (substring string 0 (string-match "[^.0-9]" string)) (substring string (if (string-match "[^.0-9]" string)