Skip to content

Commit 473a420

Browse files
committed
make smie.el respect prog-first-column
* lisp/emacs-lisp/smie.el (smie-indent-bob): Call prog-first-column.
1 parent 14659f6 commit 473a420

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lisp/emacs-lisp/smie.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@
123123

124124
(eval-when-compile (require 'cl-lib))
125125

126+
(require 'prog-mode)
127+
126128
(defgroup smie nil
127129
"Simple Minded Indentation Engine."
128130
:group 'languages)
@@ -1455,7 +1457,7 @@ in order to figure out the indentation of some other (further down) point."
14551457
;; Start the file at column 0.
14561458
(save-excursion
14571459
(forward-comment (- (point)))
1458-
(if (bobp) 0)))
1460+
(if (bobp) (prog-first-column))))
14591461

14601462
(defun smie-indent-close ()
14611463
;; Align close paren with opening paren.

0 commit comments

Comments
 (0)