1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-17 19:30:38 -08:00
Commit graph

89 commits

Author SHA1 Message Date
Tassilo Horn
a9b76eec39 * progmodes/cc-cmds.el (c-forward-into-nomenclature)
(c-backward-into-nomenclature): Adapt to subword renaming.

	* subword.el (subword-forward, subword-backward, subword-mark)
	(subword-kill, subword-backward-kill, subword-transpose)
	(subword-downcase, subword-upcase, subword-capitalize)
	(subword-forward-internal, subword-backward-internal): Renamed
	from forward-subword, backward-subword, mark-subword kill-subword,
	backward-kill-subword, transpose-subwords, downcase-subword,
	upcase-subword, capitalize-subword forward-subword-internal,
	backward-subword-internal.
2009-11-20 18:09:29 +00:00
Tassilo Horn
ab84bfa00e * progmodes/cc-cmds.el: declare-functioned forward-subword and
backward-subword to quit the byte-compiler.
2009-11-20 14:28:54 +00:00
Tassilo Horn
653d15547a 2009-11-20 Tassilo Horn <tassilo@member.fsf.org>
* progmodes/cc-cmds.el (c-update-modeline)
	(c-forward-into-nomenclature, c-backward-into-nomenclature): Refer
	to subword.el functions instead of cc-subword.el.

	* progmodes/cc-mode.el (subword-mode, c-mode-base-map): Refer to
	subword.el functions instead of cc-subword.el.

	* progmodes/cc-subword.el: Renamed to subword.el.
	* subword.el: Renamed from progmodes/cc-subword.el.
	(subword-mode-map): Renamed from c-subword-mode-map.
	(subword-mode): Renamed from c-subword-mode.
	(global-subword-mode): New global minor mode.
	(forward-subword): Renamed from c-forward-subword.
	(backward-subword): Renamed from c-backward-subword.
	(mark-subword): Renamed from c-mark-subword.
	(kill-subword): Renamed from c-kill-subword.
	(backward-kill-subword): Renamed from c-backward-kill-subword.
	(transpose-subwords): Renamed from c-tranpose-subword.
	(downcase-subword): Renamed from c-downcase-subword.
	(capitalize-subword): Renamed from c-capitalize-subword.
	(forward-subword-internal): Renamed from
	c-forward-subword-internal.
	(backward-subword-internal): Renamed from
	c-backward-subword-internal.
2009-11-20 08:22:32 +00:00
Alan Mackenzie
0a218d34a2 (c-scan-conditionals): A new function like c-forward-conditionals, but it
doesn't move point and doesn't set the mark.
(c-up-conditional, c-up-conditional-with-else, c-down-conditional)
(c-down-conditional-with-else, c-backward-conditional)
(c-forward-conditional): Refactor to use c-scan-conditionals.
2009-09-24 20:19:58 +00:00
Stefan Monnier
efbc652a8f * progmodes/cc-vars.el (c-comment-continuation-stars):
* progmodes/cc-engine.el (c-looking-at-bos):
* progmodes/cc-cmds.el (c-toggle-auto-state)
(c-forward-into-nomenclature, c-backward-into-nomenclature)
(c-comment-line-break-function): Add version of obsolescence.
2009-08-29 02:07:42 +00:00
Alan Mackenzie
2b78d42cb5 (c-mask-paragraph): Remove a spurious correction between the visible
width of TABs and their number of bytes, so that point is undisturbed
after typing a space, when there are tabs just before "*/".
2009-06-29 14:44:04 +00:00
Alan Mackenzie
649504a17b (c-defun-name): Widen, to allow it to work in narrowed buffers. 2009-02-13 14:54:27 +00:00
Chong Yidong
21d461130e Minor doc fix. 2009-01-25 21:31:49 +00:00
Glenn Morris
5858f68cd1 Comment (minor header format fixes). 2009-01-11 00:37:05 +00:00
Glenn Morris
1ba983e8d9 Replace last-command-char with last-command-event. 2009-01-09 04:23:38 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Sam Steingold
55d150f329 (c-defun-name): Handle DEFFOO(name,...),
mostly for CLISP modules, but could also be useful elsewhere.
2008-12-15 18:31:59 +00:00
Sam Steingold
3f71582da6 (c-defun-name): Fix CLISP DEFUN handling. 2008-11-07 15:39:53 +00:00
Alan Mackenzie
4588b317cd (c-defun-name): Make it work for "struct foo bar [] = { ...". 2008-10-17 20:24:45 +00:00
Alan Mackenzie
9644a7dac3 (c-indent-region): Fix previous patch so that the function works on
one-line macros.
2008-10-13 18:34:05 +00:00
Alan Mackenzie
24f15006fe (c-indent-region): Fix so that indenting a macro followed by blank lines
doesn't backslash the following non-blank line into the macro.
2008-10-07 13:14:17 +00:00
Glenn Morris
b1fc2b5014 Switch to recommended form of GPLv3 permissions notice. 2008-05-06 07:25:26 +00:00
Stefan Monnier
cbee283dd7 Fix up comment convention on the arch-tag lines. 2008-04-10 14:10:46 +00:00
Alan Mackenzie
fa7056bcee (c-defun-name, c-cpp-define-name): New optimised functions to get the
name of the current defun/macro.
2008-04-02 21:24:30 +00:00
Alan Mackenzie
4fae8922be Introduce elements for the syntactic symbol arglist-cont-nonempty into
c-hanging-braces-alist.  Amend pertinent functions and 5 styles.
2008-01-27 13:59:47 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
4e643dd23c Add 2008 to copyright years. 2008-01-07 02:11:00 +00:00
Richard M. Stallman
c02a1ee94d (c-indent-line-or-region):
Pass prefix arg to `c-indent-command'.  Use `use-region-p'.
2007-12-25 22:14:07 +00:00
Martin Rudalics
dc56b2ba13 (c-mask-paragraph): Avoid invalid search
bound error in block comment branch.
2007-12-08 09:55:50 +00:00
Glenn Morris
6b7513e304 (top level): Use mapc rather than mapcar. 2007-10-13 03:01:31 +00:00
Dan Nicolaescu
62035afde2 (c-indent-line-or-region): Only indent the
region if in transient-mark-mode.
2007-09-26 03:18:21 +00:00
Glenn Morris
1a484753b2 Switch license to GPLv3 or later. 2007-07-25 04:29:40 +00:00
Richard M. Stallman
c05ddcf77b Whitespace change. 2007-04-22 16:53:13 +00:00
Alan Mackenzie
0abe900ba1 (c-electric-slash): Replace wrong use of `kill-region' by
`delete-region'.
2007-04-21 20:05:53 +00:00
Alan Mackenzie
8007b73c14 (c-in-function-trailer-p): Fix this: when a function return type contains
"struct", "union", etc.  c-end-of-defun goes too far forward.
2007-04-19 17:35:16 +00:00
Alan Mackenzie
f7510c4036 (c-beginning-of-defun): With -ve arg and point too close to EOB, leave
point at EOB rather than last `}'.
2007-04-17 20:48:43 +00:00
Alan Mackenzie
28abe5e279 Changes to make narrow-to-defun' and mark-defun' work properly in CC
Mode:

cc-defs.el (c-beginning-of-defun-1):
cc-cmds.el (c-beginning-of-defun, c-end-of-defun): bind
beginning/end-of-defun-function to nil around calls to
beginning/end-of-defun.

cc-langs.el (beginning-of-defun-function, end-of-defun-function): new
c-lang-setvar's.

cc-awk.el (c-awk-beginning-of-defun): Add "(or arg (setq arg 1))" to
enable non-interactive call.
2007-04-09 10:51:29 +00:00
Alan Mackenzie
de5c0bc1bc (c-end-of-defun): Tidy up, to eliminate byte-compiler warning "value
unused".
2007-04-08 11:18:55 +00:00
Alan Mackenzie
8ccf9f7ab1 (c-electric-paren): clean-up space-before-funcall: only insert space when on
identifier, etc.  Patch by David Hansen.
----------------------------------------------------------------------
2007-04-07 19:50:06 +00:00
Alan Mackenzie
15279e7455 (c-forward-to-nth-EOF-}): Fix EOB bug. 2007-03-30 20:20:35 +00:00
Alan Mackenzie
94dd9d6dc9 (c-indent-new-comment-line): When splitting an empty one-line C-style
comment, post-position point properly.
2007-02-15 22:31:52 +00:00
Alan Mackenzie
647a3247fc (c-indent-line): Don't erase ^L when a line containing it is re-indented. 2007-02-04 11:16:54 +00:00
Alan Mackenzie
f325b5703c Correct the handling of K&R stuff in c-where-wrt-brace-construct. 2007-01-21 19:29:51 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
Alan Mackenzie
e309f66c9e Add my name. 2007-01-20 18:33:11 +00:00
Alan Mackenzie
fd85cfb794 (c-mask-paragraph): Fix yesterday's buggy patch. 2007-01-03 20:19:29 +00:00
Alan Mackenzie
e6a24f43fd (c-mask-paragraph): In a block comment, check that the "*/" is present
before trying to manipulate the "*/".
2007-01-02 20:54:10 +00:00
Alan Mackenzie
51c9af45fe Update CC Mode to version 5.31.4. The detailed changes are those
recorded in the ChangeLog for 2007-01-01.
2007-01-01 22:11:28 +00:00
Glenn Morris
92ab38343d Fix Copyright format. 2006-12-03 01:00:52 +00:00
Juanma Barranquero
1726419131 (c-indent-exp): Fix typo in docstring. 2006-11-30 15:42:04 +00:00
Alan Mackenzie
cb694ab730 cc-align.el, cc-awk.el, cc-bytecomp.el, cc-cmds.el, cc-compat.el,
cc-defs.el, cc-engine.el, cc-fonts.el, cc-langs.el, cc-menus.el,
cc-mode.el, cc-styles.el, cc-subword.el, cc-vars.el:  Add 2006 to the
copyright statement.

cc-awk.el: (c-awk-after-change): Protect the match data with
save-match-data.  It was being corrupted when Font Lock was not enabled.
(ii): Fix a typo.

cc-cmds.el, cc-mode.el, cc-engine.el (c-update-modeline): Concatenate the
minor mode indicators directly onto mode-name, removing
c-submode-indicators.  Sometimes, c-s-i got separated from the mode name
on the mode line.

cc-cmds.el, cc-mode.el: Rename c-hungry-backspace to
c-hungry-delete-backwards, at the request of RMS.  Leave the old name as
an alias.

cc-cmds.el (c-electric-brace, c-electric-semi&comma, c-electric-colon):
Correct doc-strings: "/ln" -> "/la".

cc-cmds.el (c-electric-brace): Fix clean-up brace-else-brace (error due
to mbeg, mend being undefined).

cc-defs.el (c-version): Update to 5.31.3.

cc-defs.el: [Supersedes patch V1.38]: (top level): Check for a buggy
font-lock-compile-keywords ONLY in XEmacs.  GNU Emacs 22 now has a check
which would throw an error here.

cc-engine.el (c-beginning-of-statement-1): Clarify doc-string and
comments.  Distinguish real labels ("case 1:" or "foo:") from non-labels
("public:").

cc-engine.el (c-after-change-check-<>-operators): Remove save-match-data,
reversing change for V1.45.  save-match-data is now in c-after-change.

cc-engine.el (c-forward-objc-directive): Replace c-forward-token-2 with
crude coding; c-f-t-2 doesn't move over a token at EOB.  Objc Mode was
hanging after typing, e.g., "@implementation".

cc-langs.el (c-filter-ops): Made it available at runtime too to work when
`c-make-init-lang-vars-fun' needs to evaluate from source.

cc-langs.el (c-make-init-lang-vars-fun): Improved the error message when
there's an evaluation error to show whether it's loaded from source or
not.
(c-mode-menu): Add menu items for Electric Mode and Subword Mode.

cc-mode.el (c-after-change): Protect the match data with save-match-data.
It was getting corrupted by c-after-change-check-<>-operators.

cc-mode.el: File Local variables: Solve the problem where both `mode' and
c-file-offsets are specified: `mode' will overwrite c-f-o's settings:
(c-remove-any-local-eval-or-mode-variables): new function.
(c-postprocess-file-styles): call the above new function, within
c-tentative-buffer-change, to splat `mode' and `eval' before the second
hack-local-variables.
2006-02-24 15:33:02 +00:00
Nick Roberts
d91362c9e0 Update copyright for 2006. 2006-02-10 09:00:31 +00:00
Alan Mackenzie
0386b551af Update CC Mode to release 5.31. 2005-12-02 12:30:36 +00:00
Richard M. Stallman
96fdce72bb (c-electric-paren): Call old-blink-paren only for close-paren. 2005-09-25 23:58:28 +00:00
Nick Roberts
034babe1e1 Update copyright for release of 22.1 for progmodes directory. 2005-08-01 08:43:45 +00:00