GNU bug report logs -
#78756
Difference in indentation behavior between elisp-mode and sh-mode
Previous Next
Full log
View this message in rfc822 format
When defining a function in elisp-mode, the text following
the function is not indented, regardless of where the closing
parenthesis is placed:
(defun lana ()
"Desc"
(interactive)
(message "lana"))
;; lana ends here
But in sh-mode, the text after the function is indented by
1 character.
opcon ()
{
echo "TODO"
}
## opcon ends here
In elisp-mode, this does not happen—the next line of
text is never indented, regardless of the closing
parenthesis's position.
It appears that the correct approach is not to indent
the following text. This discrepancy may also exist
in other programming modes.
It would be ideal if indentation behavior were made
consistent across all programming modes in Emacs.
This bug report was last modified 4 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.