Commit graph

84 commits

Author SHA1 Message Date
Richard M. Stallman
3bbf636395 (indent-c-exp): When previous line ends in comma,
use calculate-c-indent.  Fix the "inner loop" to properly detect
a line that ends outside of comments and strings.
1993-07-26 07:10:13 +00:00
Richard M. Stallman
3746159f73 (indent-c-exp): Call calculate-c-indent-within-comment when appropriate. 1993-07-21 08:50:30 +00:00
Richard M. Stallman
9ce49c8d77 (indent-c-exp): If ENDPOS, always set OPOINT
to the function start.  And don'tindet a line which is past ENDPOS.
Don't indent a comment on the first line if it's the only
thing on that line.
1993-07-21 08:44:36 +00:00
Richard M. Stallman
3c8aaef219 (c-forward-conditional): New function.
(c-up-conditional): Use c-forward-conditional.
(c-backward-conditional): New function.
(c-mode-map): Make bindings for them.
1993-06-28 04:48:51 +00:00
Richard M. Stallman
eca5b04cf9 (c-indent-line): Call c-backward-to-start-of-if
in the case of else following a close brace.
1993-06-13 19:16:02 +00:00
Jim Blandy
eb8c3be94e Apply typo patches from Paul Eggert. 1993-06-09 11:59:12 +00:00
Richard M. Stallman
1e2d7ccea0 (c-up-conditional): Handle commented-out #-cmds properly. 1993-05-29 18:14:34 +00:00
Richard M. Stallman
069b6ce323 (mark-c-function): Activate the mark. 1993-05-16 17:43:36 +00:00
Eric S. Raymond
e41b2db1da Added or corrected Commentary sections 1993-03-22 03:27:18 +00:00
Richard M. Stallman
17f0e88a1b (c-beginning-of-statement): If next to a comment, use sentence motion. 1993-03-09 22:14:36 +00:00
Jim Blandy
dbc4e1c129 JimB's changes since January 18th 1993-01-26 01:58:16 +00:00
Jim Blandy
3a65941e41 * c-mode.el (c-switch-label-regexp): New constant.
(electric-c-terminator, c-indent-line, indent-c-exp): Use it to
	correctly recognize default labels in switch statements.
1993-01-16 06:04:16 +00:00
Jim Blandy
8931ecc028 * c-mode.el (c-fill-paragraph): Calculating the proper fill-prefix
shouldn't change the buffer text.  Make it not.  If we're in the
	blank space before another comment, fill that one as a comment,
	not as normal text.

	* c-mode.el (c-fill-paragraph): When guessing the fill prefix,
	don't ever grab any actual text.
1992-12-24 05:59:00 +00:00
Jim Blandy
bc254115cc Fri Dec 4 00:31:30 1992 Jim Blandy (jimb@totoro.cs.oberlin.edu)
* c-mode.el (c-fill-paragraph): When trying to make sure that the
	comment ender isn't on its own line, don't signal an error if
	there is no comment ender.
1992-12-06 22:40:25 +00:00
Eric S. Raymond
ce4b7b0246 * c-mode.el (c-style-alist): Add quotes around C++ style name. 1992-12-06 22:32:20 +00:00
Richard M. Stallman
791cc57dfa (calculate-c-indent): When testing for function-start line,
always match the first paren if have more than one.
1992-09-23 04:21:23 +00:00
Richard M. Stallman
35a4d1439f entered into RCS 1992-09-21 08:28:43 +00:00
Richard M. Stallman
f37dc9fbe5 *** empty log message *** 1992-09-20 22:45:13 +00:00
Richard M. Stallman
f5e16d96be *** empty log message *** 1992-09-20 19:06:51 +00:00
Jim Blandy
5852d14562 *** empty log message *** 1992-09-17 21:54:44 +00:00
Richard M. Stallman
6cf420725b *** empty log message *** 1992-09-05 23:19:22 +00:00
Richard M. Stallman
c9c5649217 *** empty log message *** 1992-09-04 23:38:45 +00:00
Richard M. Stallman
6ec3899e16 *** empty log message *** 1992-08-31 21:42:28 +00:00
Richard M. Stallman
1635fcdddd *** empty log message *** 1992-08-29 08:27:31 +00:00
Richard M. Stallman
1586b965b9 *** empty log message *** 1992-08-03 02:02:37 +00:00
Richard M. Stallman
d4fbc2d5fa *** empty log message *** 1992-07-24 23:48:49 +00:00
Richard M. Stallman
e6dfdce516 *** empty log message *** 1992-07-24 05:00:23 +00:00
Eric S. Raymond
3a801d0c71 *** empty log message *** 1992-07-22 04:22:42 +00:00
Richard M. Stallman
1832dbd149 *** empty log message *** 1992-07-22 01:36:20 +00:00
Eric S. Raymond
e516799970 *** empty log message *** 1992-07-16 21:47:34 +00:00
Richard M. Stallman
c763f396fc *** empty log message *** 1992-07-11 18:59:17 +00:00
Eric S. Raymond
c0274f385f *** empty log message *** 1992-05-30 23:54:21 +00:00
Jim Blandy
2b529dd25e *** empty log message *** 1991-12-21 08:11:14 +00:00
Eric S. Raymond
a17915dc4c Initial revision 1991-12-11 16:08:43 +00:00