1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

57 commits

Author SHA1 Message Date
Richard M. Stallman
c814718b2e (c-mode-map): Add "Highlight Conditionals" menu item. 1994-09-14 18:55:08 +00:00
Richard M. Stallman
62057cefc1 (indent-c-exp): Preserve point when handling comments. 1994-08-06 21:22:51 +00:00
Richard M. Stallman
84f4e2168f (c-fill-paragraph): Don't include part of comment
terminator in the fill-prefix.
1994-05-25 08:42:32 +00:00
Karl Heuer
5ef470be66 (calculate-c-indent): Don't loop forever at bobp.
(calculate-c-indent, indent-c-exp): Test char against 0, not nil.
1994-03-30 01:43:08 +00:00
Karl Heuer
176afd0492 (c-fill-paragraph): Preserve final sentence boundary. 1994-03-04 00:05:15 +00:00
Richard M. Stallman
bd13332096 (c-mode): Set outline-regexp and outline-level.
(c-outline-level): New function.
1994-02-24 22:34:24 +00:00
Richard M. Stallman
f1ff664544 (indent-c-exp): If line starts with }, ignore what
the previous line ends with.
1994-02-07 00:55:58 +00:00
Richard M. Stallman
410e491707 Comment change. 1994-02-06 01:39:23 +00:00
Karl Heuer
c9a73a9be7 (c-fill-paragraph): Delete extraneous close paren. 1994-02-03 19:18:21 +00:00
Richard M. Stallman
0fef40c099 (c-fill-paragraph): Handle C++ mode. 1994-01-29 01:27:32 +00:00
Richard M. Stallman
d52fd67cd1 (c-indent-region): Keep looping till reach endmark.
Treat #-lines specially.
1994-01-09 21:27:07 +00:00
Richard M. Stallman
0481133773 Comment fix. 1994-01-09 15:03:01 +00:00
Richard M. Stallman
9a474b25f8 Fix typo in previous change. 1994-01-03 10:43:37 +00:00
Richard M. Stallman
1a2ac38862 More menu bar commands. 1994-01-03 07:41:23 +00:00
Richard M. Stallman
885020c535 (c-mode-map): Add menu bar menu. 1994-01-02 21:51:47 +00:00
Richard M. Stallman
7620dcc5bb (c-delete-backslash): Do nothing if empty line. 1993-12-23 04:46:18 +00:00
Richard M. Stallman
988e2aa66b (c-indent-region): As first thing, advance to a nonblank line. 1993-11-23 11:20:27 +00:00
Richard M. Stallman
0b1716286b (c-indent-region): Don't goto-char sexpend if it's nil. 1993-11-23 08:35:46 +00:00
Richard M. Stallman
e6033883a5 Comment change. 1993-11-11 05:25:09 +00:00
Richard M. Stallman
4fd99ee43a (c-indent-region): When looking for a sexp that ends
past this line, make sure it really starts on this line.
1993-11-11 03:02:18 +00:00
Richard M. Stallman
eccf8697a7 (indent-c-exp): Don't document ENDPOS.
(c-indent-region): Rewrite to use indent-c-exp on one sexp at a time,
then use c-indent-line on the next line, etc.
1993-08-02 07:44:36 +00:00
Richard M. Stallman
b70af8d72f (indent-c-exp): Don't move an { from column 0. 1993-08-01 05:17:42 +00:00
Richard M. Stallman
95d19fad86 (calculate-c-indent): When checking whether function decl
is inside a comment, move back to the `(' that starts the arglist.
1993-07-29 04:01:09 +00:00
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