aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/cc-cmds.el
Commit message (Collapse)AuthorAgeFilesLines
* (c-defun-name): Widen, to allow it to work in narrowed buffers.Alan Mackenzie2009-02-131-58/+60
|
* Minor doc fix.Chong Yidong2009-01-251-1/+1
|
* Comment (minor header format fixes).Glenn Morris2009-01-111-1/+2
|
* Replace last-command-char with last-command-event.Glenn Morris2009-01-091-15/+15
|
* Add 2009 to copyright years.Glenn Morris2009-01-051-1/+1
|
* (c-defun-name): Handle DEFFOO(name,...),Sam Steingold2008-12-151-0/+5
| | | | mostly for CLISP modules, but could also be useful elsewhere.
* (c-defun-name): Fix CLISP DEFUN handling.Sam Steingold2008-11-071-4/+6
|
* (c-defun-name): Make it work for "struct foo bar [] = { ...".Alan Mackenzie2008-10-171-9/+8
|
* (c-indent-region): Fix previous patch so that the function works onAlan Mackenzie2008-10-131-12/+17
| | | | one-line macros.
* (c-indent-region): Fix so that indenting a macro followed by blank linesAlan Mackenzie2008-10-071-30/+25
| | | | doesn't backslash the following non-blank line into the macro.
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-061-6/+4
|
* Fix up comment convention on the arch-tag lines.Stefan Monnier2008-04-101-1/+1
|
* (c-defun-name, c-cpp-define-name): New optimised functions to get theAlan Mackenzie2008-04-021-0/+75
| | | | name of the current defun/macro.
* Introduce elements for the syntactic symbol arglist-cont-nonempty intoAlan Mackenzie2008-01-271-1/+5
| | | | c-hanging-braces-alist. Amend pertinent functions and 5 styles.
* Merge from emacs--rel--22Miles Bader2008-01-081-1/+1
|\ | | | | | | Revision: [email protected]/emacs--devo--0--patch-987
| * Add 2008 to copyright years.Glenn Morris2008-01-071-1/+1
| |
* | (c-indent-line-or-region):Richard M. Stallman2007-12-251-9/+10
| | | | | | | | Pass prefix arg to `c-indent-command'. Use `use-region-p'.
* | (c-mask-paragraph): Avoid invalid searchMartin Rudalics2007-12-081-1/+6
| | | | | | | | bound error in block comment branch.
* | (top level): Use mapc rather than mapcar.Glenn Morris2007-10-131-1/+1
| |
* | (c-indent-line-or-region): Only indent theDan Nicolaescu2007-09-261-1/+2
|/ | | | region if in transient-mark-mode.
* Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
|
* Whitespace change.Richard M. Stallman2007-04-221-1/+1
|
* (c-electric-slash): Replace wrong use of `kill-region' byAlan Mackenzie2007-04-211-1/+1
| | | | `delete-region'.
* (c-in-function-trailer-p): Fix this: when a function return type containsAlan Mackenzie2007-04-191-4/+18
| | | | "struct", "union", etc. c-end-of-defun goes too far forward.
* (c-beginning-of-defun): With -ve arg and point too close to EOB, leaveAlan Mackenzie2007-04-171-1/+1
| | | | point at EOB rather than last `}'.
* Changes to make `narrow-to-defun' and `mark-defun' work properly in CCAlan Mackenzie2007-04-091-2/+4
| | | | | | | | | | | | | | | 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.
* (c-end-of-defun): Tidy up, to eliminate byte-compiler warning "valueAlan Mackenzie2007-04-081-4/+2
| | | | unused".
* (c-electric-paren): clean-up space-before-funcall: only insert space when onAlan Mackenzie2007-04-071-5/+5
| | | | | identifier, etc. Patch by David Hansen. ----------------------------------------------------------------------
* (c-forward-to-nth-EOF-}): Fix EOB bug.Alan Mackenzie2007-03-301-14/+8
|
* (c-indent-new-comment-line): When splitting an empty one-line C-styleAlan Mackenzie2007-02-151-1/+10
| | | | comment, post-position point properly.
* (c-indent-line): Don't erase ^L when a line containing it is re-indented.Alan Mackenzie2007-02-041-2/+4
|
* Correct the handling of K&R stuff in c-where-wrt-brace-construct.Alan Mackenzie2007-01-211-4/+4
|
* Add 2007 to copyright years.Glenn Morris2007-01-211-2/+2
|
* Add my name.Alan Mackenzie2007-01-201-1/+2
|
* (c-mask-paragraph): Fix yesterday's buggy patch.Alan Mackenzie2007-01-031-2/+7
|
* (c-mask-paragraph): In a block comment, check that the "*/" is presentAlan Mackenzie2007-01-021-7/+8
| | | | before trying to manipulate the "*/".
* Update CC Mode to version 5.31.4. The detailed changes are thoseAlan Mackenzie2007-01-011-214/+399
| | | | recorded in the ChangeLog for 2007-01-01.
* Fix Copyright format.Glenn Morris2006-12-031-2/+3
|
* (c-indent-exp): Fix typo in docstring.Juanma Barranquero2006-11-301-11/+11
|
* cc-align.el, cc-awk.el, cc-bytecomp.el, cc-cmds.el, cc-compat.el,Alan Mackenzie2006-02-241-13/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Update copyright for 2006.Nick Roberts2006-02-101-2/+2
|
* Update CC Mode to release 5.31.Alan Mackenzie2005-12-021-1095/+1826
|
* (c-electric-paren): Call old-blink-paren only for close-paren.Richard M. Stallman2005-09-251-1/+3
|
* Update copyright for release of 22.1 for progmodes directory.Nick Roberts2005-08-011-1/+1
|
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* 2005-05-23 Martin Stjernholm <[email protected]>Martin Stjernholm2005-05-231-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CC Mode update to 5.30.10: * cc-fonts.el (c-font-lock-declarators): Fixed bug where the point could go past the limit in decoration level 2, thereby causing errors during interactive fontification. * cc-mode.el (c-make-inherited-keymap): Fixed cc-bytecomp bug when the file is evaluated interactively. * cc-engine.el (c-guess-basic-syntax): Handle operator declarations somewhat better in C++. * cc-styles.el, cc-mode.el (c-run-mode-hooks): New helper macro to make use of run-mode-hooks' which has been added in Emacs 21.1. (c-mode, c++-mode, objc-mode, java-mode, idl-mode, pike-mode, awk-mode): Use it. (make-local-hook): Suppress warning about obsoleteness. * cc-engine.el, cc-align.el, cc-cmds.el (c-append-backslashes-forward, c-delete-backslashes-forward, c-find-decl-spots, c-semi&comma-no-newlines-before-nonblanks): Compensate for return value from forward-line' when it has moved but not to a different line due to eob. * cc-engine.el (c-guess-basic-syntax): Fixed anchoring in objc-method-intro' and objc-method-args-cont'. 2005-05-23 Alan Mackenzie <[email protected]> CC Mode update to 5.30.10: * cc-mode.el, cc-engine.el, cc-align.el: Change the FSF's address in the copyright statement. Incidentally, change "along with GNU Emacs" to "along with this program" where it occurs. * cc-mode.el: Add a fourth parameter t' to the awk-mode autoload, so that it is interactive, hence can be found by M-x awk-mode whilst cc-mode is yet to be loaded. Reported by Glenn Morris <[email protected]>. * cc-awk.el: Add character classes (e.g. "[:alpha:]") into AWK Mode's regexps. 2005-05-23 Kevin Ryde <[email protected]>: * cc-align.el (c-lineup-argcont): Ignore conses for {} pairs from c-parse-state, to avoid a lisp error (on bad code).
* Updated CC Mode to 5.30.9.Martin Stjernholm2004-08-111-3/+6
|
* * progmodes/cc-cmds.el (c-beginning-of-statement): UseJuri Linkov2004-04-181-1/+1
| | | | function `sentence-end' instead of variable `sentence-end'.
* CC Mode update (5.30.8).Martin Stjernholm2003-11-161-31/+0
|
* (c-electric-brace): Fixed a bug in the expand-abbrev' workaroundMartin Stjernholm2003-09-241-2/+4
| | | | which caused braces to disbehave inside macros.