diff --git a/etc/NEWS b/etc/NEWS index 3147cf48faa..a2919d8e5e2 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -72,6 +72,11 @@ line numbers that were previously jumped to. ** The sb-image.el library is now marked obsolete. This file was a compatibility kludge which is no longer needed. +--- +** 'lisp-mode' now uses 'common-lisp-indent-function'. +To revert to the previous behaviour, +(setq lisp-indent-function 'lisp-indent-function) from 'lisp-mode-hook'. + ** Edebug +++ diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index fbbd389bf96..f66122d6d72 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -747,6 +747,7 @@ Blank lines separate paragraphs. Semicolons start comments. Note that `run-lisp' may be used either to start an inferior Lisp job or to switch back to an existing one." (lisp-mode-variables nil t) + (setq-local lisp-indent-function 'common-lisp-indent-function) (setq-local find-tag-default-function 'lisp-find-tag-default) (setq-local comment-start-skip "\\(\\(^\\|[^\\\\\n]\\)\\(\\\\\\\\\\)*\\)\\(;+\\|#|\\) *")