Commit graph

66 commits

Author SHA1 Message Date
Lars Magne Ingebrigtsen
9c34a34446 Tell the caller that the next line needs recomputation, even though it doesn't start a sexp.
Fixes: debbugs:10094
2011-11-21 22:58:38 +01:00
Glenn Morris
b75567193d Doc fixes related to lisp-indent-function (bug#9484)
* lisp/emacs-lisp/lisp-mode.el (lisp-indent-function): Doc fix.

* lisp/progmodes/scheme.el (scheme-indent-function): Give it a doc string.

* lisp/emacs-lisp/cl-indent.el (common-lisp-indent-function): Comment.
2011-09-12 23:55:10 -07:00
Didier Verna
8497a2977c Common Lisp indentation improvements on defmethod and lambda-lists.
* cl-indent.el: Advertise the changes and remove obsolete TODO entries.
(lisp-lambda-list-keyword-parameter-indentation)
(lisp-lambda-list-keyword-parameter-alignment)
(lisp-lambda-list-keyword-alignment): New customizable user options.
(lisp-indent-defun-method): Improve docstring.
(extended-loop-p): Fix comment.
(lisp-indent-lambda-list-keywords-regexp): New variable.
(lisp-indent-lambda-list): New function.
(lisp-indent-259): Use it.
(lisp-indent-defmethod): Support for more than one
method qualifier and properly indent methods lambda-lists.
(defgeneric): Provide a missing common-lisp-indent-function property.
2011-05-13 16:27:52 -03:00
Glenn Morris
73b0cd5003 Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
Glenn Morris
0d9f702fd0 Nuke arch-tags. 2011-01-15 15:16:57 -08:00
Stefan Monnier
77ab81d054 Merge from emacs-23 2011-01-14 12:18:41 -05:00
Glenn Morris
5df4f04cd3 Add 2011 to FSF/AIST copyright years. 2011-01-02 15:50:46 -08:00
Chong Yidong
bd78fa1d54 Add "Package:" file headers to denote built-in packages. 2010-08-29 12:17:13 -04:00
Glenn Morris
114f9c9679 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
Glenn Morris
c66cd0ff65 Remove leading "*" from defcustom docs.
Refill.
2009-06-22 06:27:00 +00:00
Glenn Morris
0ae8ebe848 (lisp-indent-defun-method, common-lisp-indent-function): Add doc strings. 2009-06-21 01:16:55 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Glenn Morris
d6cba7ae45 Switch to recommended form of GPLv3 permissions notice. 2008-05-06 03:21:21 +00:00
Stefan Monnier
cbee283dd7 Fix up comment convention on the arch-tag lines. 2008-04-10 14:10:46 +00:00
Glenn Morris
8b72699e88 Add 2008 to copyright years. 2008-01-07 01:14:52 +00:00
Glenn Morris
e0085d62fa Switch license to GPLv3 or later. 2007-07-25 04:14:29 +00:00
Glenn Morris
f0fa15c5e5 Add 2007 to copyright years. 2007-01-21 02:48:43 +00:00
Chong Yidong
6655e16dba * emacs-lisp/cl-indent.el (lisp-indent-259): Fix last fix. 2006-10-27 00:52:06 +00:00
Chong Yidong
bec9dc7b07 * emacs-lisp/cl-indent.el (lisp-indent-259): Indent nil's in the
pattern normally.
2006-10-26 20:39:53 +00:00
Thien-Thi Nguyen
ceb4c4d303 Update years in copyright notice; nfc. 2006-02-06 12:31:40 +00:00
Thien-Thi Nguyen
3731a85096 Update years in copyright notice; nfc. 2005-08-06 17:48:15 +00:00
Lute Kamstra
3a35cf56e7 Update FSF's address. 2005-07-04 17:55:18 +00:00
Juanma Barranquero
ec0421f3c8 (lisp-indent-maximum-backtracking): Fix typos in docstrings.
(lisp-indent): Finish `defgroup' description with period.
2005-07-04 00:39:30 +00:00
Eli Zaretskii
3166fce661 (lisp-indent-defmethod): Correct
indentation of DEFMETHODS with non-standard method
combinations (e.g., PROGN, MIN, MAX).
2004-08-21 12:24:13 +00:00
Sam Steingold
410019e59c (common-lisp-indent-function-1): Indent "without-" forms just
like "with-" and "do-".  Use regexp-opt.
2004-05-17 17:00:00 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Sam Steingold
10b97bf735 symbol-macrolet' is similar to let', not `multiple-value-bind'. 2003-04-25 02:00:17 +00:00
Juanma Barranquero
a1506d2977 Trailing whitepace deleted. 2003-02-04 13:24:35 +00:00
John Paul Wallington
cb0fd101b9 * emacs-lisp/cl-indent.el (extended-loop-p): Doc fix.
* emacs-lisp/find-func.el (find-function-recenter-line): Add
custom type.  Doc fix.
2002-09-07 06:45:43 +00:00
Richard M. Stallman
f620e5e2ed (common-lisp-indent-function-1):
When recognizing a def... construct, make that indentation
tentative, so that it can be overridden if the list in question
is not actually an expression.
(common-lisp-indent-call-method): New subroutine.
2002-05-29 16:40:34 +00:00
Gerd Moellmann
9309787357 (common-lisp-loop-part-indentation):
Fix simple loop indentation.
2002-03-15 08:57:55 +00:00
Gerd Moellmann
59e0f57942 (lisp-loop-keyword-indentation)
(lisp-loop-forms-indentation, lisp-simple-loop-indentation): New
user options.
(extended-loop-p, common-lisp-loop-part-indentation): New
functions.
(common-lisp-indent-function-1): Renamed from
common-lisp-indent-function.
(common-lisp-indent-function): Handle loop forms specially.
(lisp-indent-defmethod): Use car/cdr instead of first/rest.
2002-03-12 16:27:15 +00:00
Richard M. Stallman
b6f053c6a5 (define-modify-macro): Better indent spec. 2001-12-22 00:03:08 +00:00
Richard M. Stallman
c298849896 (lisp-indent-defmethod): At first three elements, act like defun.
Advance to start of 3rd sexp by moving fwd and backing over it.
2001-11-19 06:24:05 +00:00
Sam Steingold
e7c8c428f1 Indent properly generic-flet', generic-labels', `with-accessors',
`with-condition-restarts'.
2001-11-12 19:58:33 +00:00
Gerd Moellmann
ec69d5ec2b (lisp-indent-defmethod): New function.
(toplevel): Set it as `common-lisp-indent-function' for
`defmethod'.
2001-08-15 11:57:03 +00:00
Sam Steingold
2180ea97a8 (toplevel): indent the :method sub-form of `defgeneric' correctly. 2001-05-16 21:13:21 +00:00
Gerd Moellmann
6f26dfa51f (toplevel): Comment out the spec
for defmethod.
2001-04-18 15:09:36 +00:00
Dave Love
968880c416 Remove erroneous spec for condition-case. 2000-12-04 17:05:57 +00:00
Sam Steingold
5e9e032a38 * emacs-lisp/cl-indent.el (toplevel): Indent `defclass',
`defconst', `define-condition', `with-slots'.
* font-lock.el (lisp-font-lock-keywords-2): Added `with-' and `do-'.
2000-08-07 16:51:57 +00:00
Sam Steingold
5d80cc9cbc handle print-unreadable-object 2000-06-20 15:01:59 +00:00
Gerd Moellmann
7dd210174f Indent `pprint-logical-block' properly. 2000-02-25 15:46:24 +00:00
Dave Love
3d8700e8f1 Remove bogus spec for define-condition. 2000-02-22 11:52:25 +00:00
Gerd Moellmann
3c0ed7cec3 (lisp-indent-259): Indentation fix. 2000-02-17 20:45:37 +00:00
Dave Love
2ac6f2c837 Add defclass, define-condition, defmethod, symbol-macrolet. 2000-01-06 23:46:13 +00:00
Gerd Moellmann
893d4ef0ad (common-lisp-indent-function): Use eq' instead of eql'. 1999-10-16 12:00:02 +00:00
Karl Heuer
44c705d46a indent `with-output-to-string' as a CL
macro, not ELisp one.
1998-11-16 06:37:55 +00:00
Richard M. Stallman
ef96556f84 (top-level let): add defsubst. 1998-08-05 20:41:55 +00:00
Richard M. Stallman
bbf1ae49ae (lisp-indent-defun-method): New variable.
(common-lisp-indent-function): Use it.
(lisp-indent-259): Uncomment the `&lambda' code.
(top-level let): Remove duplicate `catch' and `block'.  Use
`&lambda' when appropriate.  Now the lambda lists are indented appropriately.
1998-07-31 03:21:07 +00:00
Richard M. Stallman
09a4d958b2 Indent restart-case', handler-bind' and `restart-bind' correctly. 1998-07-14 08:20:17 +00:00