diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-10-18 10:00:20 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-10-18 10:00:20 +0200 |
commit | 32df2034234056bf24312ef5883671b59a387520 (patch) | |
tree | 2bd36819154daf61f36fc85f20df79573ce62872 /lisp/emacs-lisp | |
parent | ef9fa3682a799ea94db11c3d7f3da03294f17196 (diff) | |
download | emacs-32df2034234056bf24312ef5883671b59a387520.tar.gz emacs-32df2034234056bf24312ef5883671b59a387520.tar.bz2 emacs-32df2034234056bf24312ef5883671b59a387520.zip |
Remove the "def" indentation heuristic
* lisp/emacs-lisp/lisp-mode.el (lisp-indent-function): Don't
indent function calls with names that that start with "def"
specially (bug#43329).
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/lisp-mode.el | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index c2f756c9770..fadc0a73791 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -1220,9 +1220,6 @@ Lisp function does not specify a special indentation." 'lisp-indent-function) (get (intern-soft function) 'lisp-indent-hook))) (cond ((or (eq method 'defun) - (and (null method) - (> (length function) 3) - (string-match "\\`def" function)) ;; Check whether we are in flet-like form. (lisp--local-defform-body-p state)) (lisp-indent-defform state indent-point)) |