Commit 1f35d401 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/textmodes/text-mode.el (paragraph-indent-minor-mode): Use add-function.

parent 986545b5
2013-11-18 Stefan Monnier <>
* textmodes/text-mode.el (paragraph-indent-minor-mode): Use add-function.
2013-11-17 Stefan Monnier <>
* emacs-lisp/nadvice.el (remove-function): Align with
......@@ -121,9 +121,10 @@ Turning on Paragraph-Indent minor mode runs the normal hook
(concat ps-re paragraph-start)))))
;; Change the indentation function.
(if paragraph-indent-minor-mode
(set (make-local-variable 'indent-line-function) 'indent-to-left-margin)
(if (eq indent-line-function 'indent-to-left-margin)
(set (make-local-variable 'indent-line-function) 'indent-region))))
(add-function :override (local 'indent-line-function)
(remove-function (local 'indent-line-function)
(defalias 'indented-text-mode 'text-mode)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment