[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/typescript-mode 99c2b74ac3 059/222: Make current-column fu
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/typescript-mode 99c2b74ac3 059/222: Make current-column function internal. |
Date: |
Sun, 6 Feb 2022 16:59:14 -0500 (EST) |
branch: elpa/typescript-mode
commit 99c2b74ac38ef1bf0e66729ed7cace152bb14003
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>
Make current-column function internal.
---
typescript-mode-tests.el | 6 +++---
typescript-mode.el | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/typescript-mode-tests.el b/typescript-mode-tests.el
index c7fa26fceb..f1bd21be2a 100644
--- a/typescript-mode-tests.el
+++ b/typescript-mode-tests.el
@@ -104,15 +104,15 @@ a severity set to WARNING, no rule name."
(with-temp-buffer
(insert "大塚愛")
- (should (equal 3 (typescript-current-column)))))
+ (should (equal 3 (typescript--current-column)))))
(ert-deftest correctly-accounts-wide-chars-as-1-char-without-sideeffects ()
"Otsuka Ai and other multi-char users should be a happy to write typescript."
(with-temp-buffer
(insert "大塚愛")
- (let ((pos1 (typescript-current-column))
- (pos2 (typescript-current-column)))
+ (let ((pos1 (typescript--current-column))
+ (pos2 (typescript--current-column)))
(should (equal pos1 pos2)))))
(provide 'typescript-mode-tests)
diff --git a/typescript-mode.el b/typescript-mode.el
index 07466125db..12840a00f1 100644
--- a/typescript-mode.el
+++ b/typescript-mode.el
@@ -1795,7 +1795,7 @@ nil."
(+ typescript-indent-level typescript-expr-indent-offset))
(t 0))))
-(defun typescript-current-column ()
+(defun typescript--current-column ()
"Unicode aware version of `CURRENT-COLUMN' which correctly accounts for wide
characters."
(save-excursion
@@ -1810,7 +1810,7 @@ nil."
(widen)
(let* ((parse-status
(save-excursion (syntax-ppss (point-at-bol))))
- (offset (- (typescript-current-column) (current-indentation))))
+ (offset (- (typescript--current-column) (current-indentation))))
(indent-line-to (typescript--proper-indentation parse-status))
(when (> offset 0) (forward-char offset)))))
- [nongnu] elpa/typescript-mode 32f5034e9d 127/222: Extract tests as general tests, (continued)
- [nongnu] elpa/typescript-mode 32f5034e9d 127/222: Extract tests as general tests, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode e15e2bfa1a 131/222: Add jsdoc tests, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode c0f11efdfd 143/222: Fixing typescript--forward-expression for multiline indented string, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode a0f2c3ebd4 164/222: Reimplement template auto conversion as a post-self-insert-hook, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode b44b75dbe1 172/222: Add test case for infinite loop, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 5bf30fe8d6 175/222: Add member expressions tests involving type parameters., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 1c27fb09ed 220/222: Fix cl deprecation warning, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode dd832751ab 217/222: Merge pull request #156 from zkry/fix-dot-after-exclamation-indentation, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 4249a20d6d 187/222: Added file for indent test case, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode c5e7788ce9 044/222: Merge pull request #28 from ananthakumaran/testing, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 99c2b74ac3 059/222: Make current-column function internal.,
ELPA Syncer <=
- [nongnu] elpa/typescript-mode 89d22c4e18 051/222: Don't interpret forward slash in list as operator., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 393ac6db0f 081/222: add tests for regexp font locking, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 361564c4a9 057/222: typescript-current-column: Dont cause side-effects., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode d155a4b623 063/222: Revert indent of complex parameters., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode e0b4a6cb31 055/222: Merge pull request #36 from lddubeau/feature/improved-tslint-regex, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode bce2e73cf2 107/222: Remove unused dependencies, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 7172a23d86 072/222: Add a custom predicate for flyspell-prog-mode., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode d8501770f6 103/222: Fix indentation of multiple curly braces in sequence., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode a09e9c78f9 108/222: Highlight class names., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 7c6fd0f4a8 115/222: Document how to handle ANSI codes in error messages., ELPA Syncer, 2022/02/06