1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-15 09:47:20 +00:00
Commit Graph

37 Commits

Author SHA1 Message Date
Martin Stjernholm
2a15eb73df Updated CC Mode to 5.30.9. 2004-08-11 16:22:21 +00:00
Juri Linkov
0134151707 * progmodes/cc-cmds.el (c-beginning-of-statement): Use
function `sentence-end' instead of variable `sentence-end'.
2004-04-18 22:09:27 +00:00
Martin Stjernholm
037558bfd9 CC Mode update (5.30.8). 2003-11-16 16:55:08 +00:00
Martin Stjernholm
d858963e6b (c-electric-brace): Fixed a bug in the expand-abbrev' workaround
which caused braces to disbehave inside macros.
2003-09-24 13:55:07 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Martin Stjernholm
0b966e89b3 (c-electric-brace): Work around for a misfeature in `expand-abbrev'
which caused electric keywords like "else" to disappear if an open
brace was typed directly afterwards.
2003-08-26 11:50:03 +00:00
Martin Stjernholm
d9e94c2273 Updated CC Mode to version 5.30. 2003-07-03 12:30:59 +00:00
Juanma Barranquero
a1506d2977 Trailing whitepace deleted. 2003-02-04 13:24:35 +00:00
Martin Stjernholm
07cc1196d2 (c-mask-comment): A better way to ensure point doesn't move around
unexpectedly.  Also handles the paragraph fill case.
2002-04-24 01:27:15 +00:00
Martin Stjernholm
467690bb1b (c-mask-comment): More fixes when used from `c-do-auto-fill' and point
is at or near the limit of the comment.  Fixed bug when the prefix
from `c-guess-fill-prefix' is longer than the text on the first line
of the comment when it's masked.
2002-04-24 00:50:29 +00:00
Martin Stjernholm
477feba798 (c-mask-comment): Fixed bug where point was moved to the following line when
it was at the first line of a block comment where comment-start-skip matched
to eol.
2002-04-22 22:35:45 +00:00
Martin Stjernholm
a66cd3ee16 CC Mode update to version 5.29. This is for testing; it's not a released
version.
2002-04-22 00:35:36 +00:00
Pavel Janík
3afbc435ac Some fixes to follow coding conventions. 2001-07-16 07:46:48 +00:00
Gerd Moellmann
19da29f9b5 (c-indent-exp): Keep the indentation of the block
itself, i.e. only indent the contents in it.
2001-07-10 19:51:27 +00:00
Stefan Monnier
7443aaa688 Extended the kludge to interoperate with the
delsel and pending-del packages wrt to the new function
`c-electric-delete-forward'.
2001-07-09 00:49:22 +00:00
Eli Zaretskii
fdea67e752 (c-electric-delete, c-electric-delete-forward): Split `c-electric-delete'
into two functions where `c-electric-delete-forward' always deletes
forward and `c-electric-delete' only contains the code
necessary for XEmacs to choose between backward and forward
deletion.  `c-electric-delete-forward' is now bound to C-d to
get the electric behavior on that key too.

(c-fill-paragraph): Fixed bogus direct use of c-comment-prefix-regexp,
which caused an error when it's a list.
2001-05-04 09:57:35 +00:00
Stefan Monnier
de28797ffa (c-outline-level):
Bind buffer-invisibility-spec.  Originally from Dave Love, but
got lost when incorporating version 5.26.
2001-04-04 20:13:35 +00:00
Gerd Moellmann
130c507e58 Update to version 5.28. 2001-03-21 12:59:36 +00:00
Dave Love
e7cff5504b Fix copyright years. 2000-12-06 20:24:23 +00:00
Gerd Moellmann
b8ded7944c (c-indent-new-comment-line): Added a kludge
similar to the one in c-fill-paragraph to check the fill
prefix from the adaptive fill function for sanity.
(c-electric-brace): Fixed some bugs in the state
handling that caused class open lines to be recognized as
statement-conts in some cases.
(c-indent-new-comment-line): Keep the fill prefix
guessed by the adaptive fill function unless point is on the
first line of a block comment.
(c-indent-command): Obey c-syntactic-indentation.
(c-electric-brace, c-electric-slash,
c-electric-star, c-electric-semi&comma, c-electric-colon,
c-electric-lt-gt, c-electric-paren): Don't reindent old lines
when c-syntactic-indentation is nil.
(c-fill-paragraph): Keep one or two spaces
between the text and the block comment ender when it hangs,
depending on how many there are before the fill.
(c-indent-new-comment-line): Always break
multiline comments in multiline mode, regardless of
comment-multi-line.
2000-07-24 11:12:07 +00:00
Gerd Moellmann
bcf90db982 (c-fill-paragraph): Count number of spaces
at comment end, and re-insert them after filling.
2000-01-03 14:49:24 +00:00
Gerd Moellmann
a3d4e58757 (c-fill-paragraph): Don't delete white
space in front of a C-style comment end.
1999-12-28 16:16:23 +00:00
Gerd Moellmann
51f606dea8 Installed version 5.26 1999-12-12 18:24:19 +00:00
Karl Heuer
5f625d0c09 (c-indent-command): Doc fix. 1999-03-30 18:00:49 +00:00
Dave Love
f87880f53d (c-outline-level): Bind
buffer-invisibility-spec.
1999-03-06 19:07:47 +00:00
Barry A. Warsaw
0ec8351b95 Installed CC Mode 5.25. 1999-02-08 16:53:18 +00:00
Richard M. Stallman
f23da29ac2 (c-fill-paragraph): Bind fill-paragraph-function to
nil when calling fill-paragraph, to avoid bogus recursion which
will signal an error.

(c-fill-paragraph): Always keep point in the same
relative position.  Fill comment before point if there's nothing
else on the same line.  Fill block comments after code a little
better.  Try harder to find a good fill-prefix when point is on a
block comment ender line.  Use c-Java-javadoc-paragraph-start in
block comments in Java mode.  Leave block comment ender alone when
c-hanging-comment-ender-p is nil and point is on that line.
Detect paragraph-separate in multiparagraph comments.  Fix for bug
that may strip the `*' off `*/' if fill-prefix ends with `*' and
c-hanging-comment-ender-p is t.  Added filling of multiline string
literals.  Always return t to disable filling in any unhandled
area, i.e. actual code where fill-paragraph only mess things up.
1998-03-08 06:50:21 +00:00
Richard M. Stallman
28c236dee3 (c-beginning-of-statement)
(c-end-of-statement): Do not move by sentence in strings.

(c-beginning-of-statement): Major rewrite.

(c-beginning-of-defun, c-indent-defun):
Use (c-point 'bod) instead of beginning-of-defun directly.

(c-beginning-of-defun, c-end-of-defun): New commands.

(c-beginning-of-statement): When moving forward by sentences, because
we're either inside or at the start of a comment, be sure to limit
movement to only within the extent of the comment.

(c-electric-colon): Don't insert newlines before or after scope
operators, regardless of the value of c-hanging-colons.

(c-electric-brace): namespace-open and namespace-close braces can hang.

(c-comment-line-break-function): When breaking a
line-oriented comment, copy the comment leader from the previous
line instead of hardcoding it to "// ".  This ensures that
whitespace between the slashes and the text is preserved.

(c-electric-pound, c-electric-brace)
(c-electric-slash, c-electric-star, c-electric-semi&comma)
(c-electric-colon, c-electric-lt-gt, c-scope-operator)
(c-electric-backspace, c-electric-delete)
(c-indent-command, c-indent-exp, c-indent-defun)
(c-backslash-region, c-fill-paragraph): Add "*" to interactive spec.

(c-fill-paragraph): regexp-quote the
fill-prefix when search forward for the end of line oriented comments.
(c-backslash-region): Do not preserve the zmacs region (XEmacs).
1998-02-17 07:04:48 +00:00
Karl Heuer
a7c7b186ff (c-progress-init, c-progress-fini):
Be slient if c-progress-interval
is nil.

(c-comment-line-break-function):
Fix for when comment starts at
comment-column and there is non-whitespace preceding this on the
current line.
1997-10-23 07:48:34 +00:00
Karl Heuer
11e9410ecf (c-beginning-of-statement):
Fixes in sentence movement to properly
handle M-e moving forward into a comment when looking at preceding
whitespace, and M-a moving backward into comment when looking at
following whitespace.

Uncommented the looking-at call in the
sentence-flag clause so that moving by forward-sentence when looking
at the beginning of a comment works again.  A previous log message in
cc-mode.el indicates this was commented out "because
c-beginning-of-statement-1 should do the right thing", but clearly it
doesn't.

I don't know if this breaks something else, because I can't figure out
why it was commented out in the first place.
1997-10-23 07:32:37 +00:00
Richard M. Stallman
fd3b1ef655 (c-beginning-of-statement): Fixes in sentence movement to properly
handle M-e moving forward into a comment when looking at preceding
whitespace, and M-a moving backward into comment when looking at
following whitespace.

(c-comment-line-break-function): Don't break line in the middle of a string.
1997-09-08 03:20:02 +00:00
Richard M. Stallman
0f0b1be199 (c-comment-line-break-function): In this function, and the defadvice,
call indent-new-comment-line if not in a comment.

(c-fill-paragraph): Remove conditional on obsolete variable
c-double-slash-is-comments-p.
1997-08-16 03:40:20 +00:00
Richard M. Stallman
811fd07a2f (c-electric-brace): Make preserve-p nil at BOB. 1997-08-11 23:51:04 +00:00
Richard M. Stallman
0fc3821efe (indent-new-comment-line): Add advice for older Emacs versions if they
don't have the variable comment-line-break-function.

(c-electric-slash): Make this work as the final slash in a */ block
oriented comment closing token.

(c-comment-line-break-function): New function for proposed
mode-specific comment-line-break-function variable.
1997-08-11 22:09:45 +00:00
Richard M. Stallman
5cc9696990 Comment change. 1997-08-09 18:30:01 +00:00
Richard M. Stallman
c93a62d8c1 Require cc-defs for the c-add-syntax macro.
(c-electric-backspace): Must get 'supercede property
values to work with delsel and pending-del.

(c-electric-brace): Fix ebola eradication consequence
in the preserve-p test.
1997-07-18 02:10:48 +00:00
Richard M. Stallman
785eecbbba Initial revision 1997-07-10 07:54:06 +00:00