emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 0c9da50 2/2: Default lisp-mode to use Common Lisp indentation


From: Lars Ingebrigtsen
Subject: master 0c9da50 2/2: Default lisp-mode to use Common Lisp indentation
Date: Wed, 22 Jan 2020 08:19:02 -0500 (EST)

branch: master
commit 0c9da50e96108589c1cac5e25a3627c25a484bc9
Author: Helmut Eller <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Default lisp-mode to use Common Lisp indentation
    
    * lisp/emacs-lisp/lisp-mode.el (lisp-mode): Use
    common-lisp-indent-function instead of lisp-indent-function as
    Common Lisp is the most common non-Emacs Lisp today (bug#10097).
---
 etc/NEWS                     | 5 +++++
 lisp/emacs-lisp/lisp-mode.el | 1 +
 2 files changed, 6 insertions(+)

diff --git a/etc/NEWS b/etc/NEWS
index 3147cf4..a2919d8 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 fbbd389..f66122d 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]\\)\\(\\\\\\\\\\)*\\)\\(;+\\|#|\\) *")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]