summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-03-23 11:32:59 -0600
committerTom Tromey <tom@tromey.com>2017-04-05 15:53:39 -0600
commit473a42010c5b37e30d9bfb81cae77de6a95073eb (patch)
treea130d7e796cdfc44a769edec9910be19a4704086 /lisp/emacs-lisp
parent14659f69b0330187c7390418a0c7366083de9fd7 (diff)
downloademacs-473a42010c5b37e30d9bfb81cae77de6a95073eb.tar.gz
emacs-473a42010c5b37e30d9bfb81cae77de6a95073eb.tar.bz2
emacs-473a42010c5b37e30d9bfb81cae77de6a95073eb.zip
make smie.el respect prog-first-column
* lisp/emacs-lisp/smie.el (smie-indent-bob): Call prog-first-column.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/smie.el4
1 files changed, 3 insertions, 1 deletions
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.