branch: master commit 12e5a216519a4955cd02975880f4556e15506577 Author: Dmitry Gutov <dgu...@yandex.ru> Commit: Dmitry Gutov <dgu...@yandex.ru>
Remove js2-current-indent --- js2-mode.el | 11 +---------- 1 files changed, 1 insertions(+), 10 deletions(-) diff --git a/js2-mode.el b/js2-mode.el index 48a2c77..348b0d1 100644 --- a/js2-mode.el +++ b/js2-mode.el @@ -11305,15 +11305,6 @@ indentation is aligned to that column." (interactive) (while (forward-comment 1))) -(defun js2-current-indent (&optional pos) - "Return column of indentation on current line. -If POS is non-nil, go to that point and return indentation for that line." - (save-excursion - (if pos - (goto-char pos)) - (back-to-indentation) - (current-column))) - (defun js2-arglist-close () "Return non-nil if we're on a line beginning with a close-paren/brace." (save-excursion @@ -11368,7 +11359,7 @@ of the buffer to the current point. NORMAL-COL is the indentation column computed by the heuristic guesser based on current paren, bracket, brace and statement nesting. If BACKWARDS, cycle positions in reverse." - (let ((cur-indent (js2-current-indent)) + (let ((cur-indent (current-indentation)) (old-buffer-undo-list buffer-undo-list) ;; Emacs 21 only has `count-lines', not `line-number-at-pos' (current-line (save-excursion