mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-04 11:23:24 +00:00
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).
This commit is contained in:
parent
ef9fa3682a
commit
32df203423
3 changed files with 34 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue