diff options
| author | Glenn Morris | 2008-12-02 03:32:05 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-12-02 03:32:05 +0000 |
| commit | 11ee272ded5e46e578b321264c2ef3b59d5ee138 (patch) | |
| tree | 09f8a37b7b3a2b267ecaaac275ef9175d16bf2af | |
| parent | 84da0f1790010a8824c1932ab23fdaafd6e0a26c (diff) | |
| download | emacs-11ee272ded5e46e578b321264c2ef3b59d5ee138.tar.gz emacs-11ee272ded5e46e578b321264c2ef3b59d5ee138.zip | |
(c-tab-always-indent, c-insert-tab-function): Doc fix. (Bug#1368)
| -rw-r--r-- | lisp/progmodes/cc-vars.el | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/lisp/progmodes/cc-vars.el b/lisp/progmodes/cc-vars.el index 18f314cb09e..43f04a1955d 100644 --- a/lisp/progmodes/cc-vars.el +++ b/lisp/progmodes/cc-vars.el | |||
| @@ -284,18 +284,13 @@ nil." | |||
| 284 | "*Controls the operation of the TAB key. | 284 | "*Controls the operation of the TAB key. |
| 285 | If t, hitting TAB always just indents the current line. If nil, hitting | 285 | If t, hitting TAB always just indents the current line. If nil, hitting |
| 286 | TAB indents the current line if point is at the left margin or in the | 286 | 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 | 287 | line's indentation, otherwise it calls `c-insert-tab-function' to |
| 288 | note\). If some other value (not nil or t), then tab is inserted only | 288 | insert a `real' tab character. If some other value (neither nil nor t), |
| 289 | within literals \(comments and strings), but the line is always | 289 | then inserts a tab only within literals (comments and strings), but |
| 290 | reindented. | 290 | always reindents the line. |
| 291 | 291 | ||
| 292 | Note: The value of `indent-tabs-mode' will determine whether a real | 292 | Note: the variable `c-comment-only-line-offset' also controls the |
| 293 | tab character will be inserted, or the equivalent number of spaces. | 293 | indentation of lines containing only comments." |
| 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." | ||
| 299 | :type '(radio | 294 | :type '(radio |
| 300 | (const :tag "TAB key always indents, never inserts TAB" t) | 295 | (const :tag "TAB key always indents, never inserts TAB" t) |
| 301 | (const :tag "TAB key indents in left margin, otherwise inserts TAB" nil) | 296 | (const :tag "TAB key indents in left margin, otherwise inserts TAB" nil) |
| @@ -305,7 +300,9 @@ by the `c-comment-only-line-offset' variable." | |||
| 305 | (defcustom c-insert-tab-function 'insert-tab | 300 | (defcustom c-insert-tab-function 'insert-tab |
| 306 | "*Function used when inserting a tab for \\[c-indent-command]. | 301 | "*Function used when inserting a tab for \\[c-indent-command]. |
| 307 | Only used when `c-tab-always-indent' indicates a `real' tab character | 302 | Only used when `c-tab-always-indent' indicates a `real' tab character |
| 308 | should be inserted. Value must be a function taking no arguments." | 303 | should be inserted. Value must be a function taking no arguments. |
| 304 | The default, `insert-tab', inserts either a tab or the equivalent | ||
| 305 | number of spaces depending on the value of `indent-tabs-mode'." | ||
| 309 | :type 'function | 306 | :type 'function |
| 310 | :group 'c) | 307 | :group 'c) |
| 311 | 308 | ||