[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/widen-less 243a43b 1/2: Remove last references to
From: |
Dmitry Gutov |
Subject: |
[Emacs-diffs] scratch/widen-less 243a43b 1/2: Remove last references to prog-indentation-context |
Date: |
Sat, 2 Dec 2017 15:01:38 -0500 (EST) |
branch: scratch/widen-less
commit 243a43bfcd4243bd6840f048625f8c4769b4b55b
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Remove last references to prog-indentation-context
---
etc/NEWS | 10 +++++-----
lisp/textmodes/mhtml-mode.el | 9 ++++-----
2 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/etc/NEWS b/etc/NEWS
index 6e1561d..eb076c9 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1107,11 +1107,11 @@ This allows better indentation support in modes that
support multiple
programming languages in the same buffer, like literate programming
environments or ANTLR programs with embedded Python code.
-A major mode can provide indentation context for a sub-mode through
-the 'prog-indentation-context' variable. To support this, modes
-should use 'prog-first-column' instead of a literal zero and never
-call 'widen' in their indentation functions. See the node "(elisp)
-Mode-Specific Indent" in the ELisp manual for more details.
+A major mode can provide indentation context for a sub-mode. To
+support this, modes should use 'prog-first-column' instead of a
+literal zero and never call 'widen' in their indentation functions.
+See the node "(elisp) Mode-Specific Indent" in the ELisp manual for
+more details.
** ERC
diff --git a/lisp/textmodes/mhtml-mode.el b/lisp/textmodes/mhtml-mode.el
index 79c1125..90837fa 100644
--- a/lisp/textmodes/mhtml-mode.el
+++ b/lisp/textmodes/mhtml-mode.el
@@ -341,11 +341,10 @@ This is used by `mhtml--pre-command'.")
((eq mhtml-tag-relative-indent 'ignore)
(setq base-indent 0)))
(narrow-to-region region-start (point-max))
- (let ((prog-indentation-context (list base-indent)))
- (mhtml--with-locals submode
- ;; indent-line-function was rebound by
- ;; mhtml--with-locals.
- (funcall indent-line-function)))))
+ (mhtml--with-locals submode
+ ;; indent-line-function was rebound by
+ ;; mhtml--with-locals.
+ (funcall indent-line-function))))
;; HTML.
(sgml-indent-line))))