~ubuntu-branches/ubuntu/karmic/emacs-snapshot/karmic

« back to all changes in this revision

Viewing changes to lisp/progmodes/cc-vars.el

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-04-05 09:14:30 UTC
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: james.westby@ubuntu.com-20090405091430-nw07lynn2arotjbe
Tags: upstream-20090320
ImportĀ upstreamĀ versionĀ 20090320

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
;;; cc-vars.el --- user customization variables for CC Mode
2
2
 
3
3
;; Copyright (C) 1985, 1987, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
4
 
;;   1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
4
;;   1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
5
5
;;   Free Software Foundation, Inc.
6
6
 
7
7
;; Authors:    2002- Alan Mackenzie
8
8
;;             1998- Martin Stjernholm
9
9
;;             1992-1999 Barry A. Warsaw
10
 
;;             1987 Dave Detlefs and Stewart Clamen
 
10
;;             1987 Dave Detlefs
 
11
;;             1987 Stewart Clamen
11
12
;;             1985 Richard M. Stallman
12
13
;; Maintainer: bug-cc-mode@gnu.org
13
14
;; Created:    22-Apr-1997 (split from cc-mode.el)
284
285
  "*Controls the operation of the TAB key.
285
286
If t, hitting TAB always just indents the current line.  If nil, hitting
286
287
TAB indents the current line if point is at the left margin or in the
287
 
line's indentation, otherwise it inserts a `real' tab character \(see
288
 
note\).  If some other value (not nil or t), then tab is inserted only
289
 
within literals \(comments and strings), but the line is always
290
 
reindented.
291
 
 
292
 
Note: The value of `indent-tabs-mode' will determine whether a real
293
 
tab character will be inserted, or the equivalent number of spaces.
294
 
When inserting a tab, actually the function stored in the variable
295
 
`c-insert-tab-function' is called.
296
 
 
297
 
Note: indentation of lines containing only comments is also controlled
298
 
by the `c-comment-only-line-offset' variable."
 
288
line's indentation, otherwise it calls `c-insert-tab-function' to
 
289
insert a `real' tab character.  If some other value (neither nil nor t),
 
290
then inserts a tab only within literals (comments and strings), but
 
291
always reindents the line.
 
292
 
 
293
Note: the variable `c-comment-only-line-offset' also controls the
 
294
indentation of lines containing only comments."
299
295
  :type '(radio
300
296
          (const :tag "TAB key always indents, never inserts TAB" t)
301
297
          (const :tag "TAB key indents in left margin, otherwise inserts TAB" nil)
305
301
(defcustom c-insert-tab-function 'insert-tab
306
302
  "*Function used when inserting a tab for \\[c-indent-command].
307
303
Only used when `c-tab-always-indent' indicates a `real' tab character
308
 
should be inserted.  Value must be a function taking no arguments."
 
304
should be inserted.  Value must be a function taking no arguments.
 
305
The default, `insert-tab', inserts either a tab or the equivalent
 
306
number of spaces depending on the value of `indent-tabs-mode'."
309
307
  :type 'function
310
308
  :group 'c)
311
309
 
1368
1366
    c-special-indent-hook
1369
1367
    c-indentation-style"
1370
1368
  :type 'boolean
 
1369
  :safe 'booleanp
1371
1370
  :group 'c)
1372
1371
 
1373
1372
(defcustom c-mode-hook nil