summaryrefslogtreecommitdiff
path: root/test/manual/indent
diff options
context:
space:
mode:
authorakater <nuclearspace@gmail.com>2020-05-29 00:26:09 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2020-05-29 00:26:09 -0400
commit1b2a881c9b3ef9158cbf28a65b9e94c2dbc6cec2 (patch)
tree866d6c596ae734bf9ba3f06fd2e9530aa11de50e /test/manual/indent
parentdf4991093b94ccc48255a0387a98c536962fd0a7 (diff)
downloademacs-1b2a881c9b3ef9158cbf28a65b9e94c2dbc6cec2.tar.gz
emacs-1b2a881c9b3ef9158cbf28a65b9e94c2dbc6cec2.tar.bz2
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/manual/indent')
-rw-r--r--test/manual/indent/elisp.el5
-rw-r--r--test/manual/indent/lisp.lisp5
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 @@
+(defun x ()
+ (print (quote ( thingy great
+ stuff)))
+ (print (quote (thingy great
+ 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 @@
+(defun x ()
+ (print (quote ( thingy great
+ stuff)))
+ (print (quote (thingy great
+ stuff))))