From: Tom Tromey Date: Thu, 23 Mar 2017 17:32:59 +0000 (-0600) Subject: make smie.el respect prog-first-column X-Git-Tag: emacs-26.0.90~521^2~716 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=473a42010c5b37e30d9bfb81cae77de6a95073eb;p=emacs.git make smie.el respect prog-first-column * lisp/emacs-lisp/smie.el (smie-indent-bob): Call prog-first-column. --- diff --git a/lisp/emacs-lisp/smie.el b/lisp/emacs-lisp/smie.el index 4d02b751afe..7baccbc7524 100644 --- a/lisp/emacs-lisp/smie.el +++ b/lisp/emacs-lisp/smie.el @@ -123,6 +123,8 @@ (eval-when-compile (require 'cl-lib)) +(require 'prog-mode) + (defgroup smie nil "Simple Minded Indentation Engine." :group 'languages) @@ -1455,7 +1457,7 @@ in order to figure out the indentation of some other (further down) point." ;; Start the file at column 0. (save-excursion (forward-comment (- (point))) - (if (bobp) 0))) + (if (bobp) (prog-first-column)))) (defun smie-indent-close () ;; Align close paren with opening paren.