]> git.eshelyaron.com Git - emacs.git/commit
Consolidate 'widen' calls
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 14 Dec 2017 09:18:51 +0000 (11:18 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 14 Dec 2017 09:18:51 +0000 (11:18 +0200)
commit7e9eef0ffd90cd7e39f15b003e4a9770be27b0ce
tree65c46eac3785849457ba9d989ed4acf19b3e8fac
parent6067f0c702e3652a9d489852752f038320cb91ae
Consolidate 'widen' calls

* lisp/progmodes/prog-mode.el (prog-indentation-context):
Un-document all elements but the first.
(prog-widen): Remove.
(http://lists.gnu.org/archive/html/emacs-devel/2017-12/msg00321.html)

* doc/lispref/text.texi (Mode-Specific Indent): Update.

* lisp/progmodes/ruby-mode.el (ruby-calculate-indent):
Don't call widen.

* lisp/progmodes/python.el
(python-indent-guess-indent-offset)
(python-info-current-defun): Replace prog-widen with widen;
these functions are not called during indentation.
(python-indent-context)
(python-indent--calculate-indentation)
(python-info-dedenter-opening-block-message)
(python-info-line-ends-backslash-p)
(python-info-beginning-of-backslash)
(python-info-continuation-line-p)
(python-info-current-defun): Remove 'widen' calls.

* lisp/indent.el (indent-according-to-mode)
(indent-for-tab-command, indent-region): Move them here.

* lisp/textmodes/mhtml-mode.el (mhtml-indent-line):
Bind prog-indentation-context to one-element list.
doc/lispref/text.texi
etc/NEWS
lisp/indent.el
lisp/progmodes/prog-mode.el
lisp/progmodes/python.el
lisp/progmodes/ruby-mode.el
lisp/textmodes/mhtml-mode.el