diff options
| author | akater | 2020-05-29 00:26:09 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2020-05-29 00:26:09 -0400 |
| commit | 1b2a881c9b3ef9158cbf28a65b9e94c2dbc6cec2 (patch) | |
| tree | 866d6c596ae734bf9ba3f06fd2e9530aa11de50e /test | |
| parent | df4991093b94ccc48255a0387a98c536962fd0a7 (diff) | |
| download | emacs-1b2a881c9b3ef9158cbf28a65b9e94c2dbc6cec2.tar.gz emacs-1b2a881c9b3ef9158cbf28a65b9e94c2dbc6cec2.zip | |
* lisp/emacs-lisp/lisp-mode.el: Add new indentation convention
(calculate-lisp-indent): To distinguish code and data when indenting,
introduce the convention that a space between an open paren and
a symbol indicate that this should be indented as a simple data list.
Diffstat (limited to 'test')
| -rw-r--r-- | test/manual/indent/elisp.el | 5 | ||||
| -rw-r--r-- | test/manual/indent/lisp.lisp | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/manual/indent/elisp.el b/test/manual/indent/elisp.el new file mode 100644 index 00000000000..f3874b5c3e0 --- /dev/null +++ b/test/manual/indent/elisp.el | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | (defun x () | ||
| 2 | (print (quote ( thingy great | ||
| 3 | stuff))) | ||
| 4 | (print (quote (thingy great | ||
| 5 | stuff)))) | ||
diff --git a/test/manual/indent/lisp.lisp b/test/manual/indent/lisp.lisp new file mode 100644 index 00000000000..f3874b5c3e0 --- /dev/null +++ b/test/manual/indent/lisp.lisp | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | (defun x () | ||
| 2 | (print (quote ( thingy great | ||
| 3 | stuff))) | ||
| 4 | (print (quote (thingy great | ||
| 5 | stuff)))) | ||