emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs/lisp/progmodes cc-vars.el


From: Glenn Morris
Subject: [Emacs-diffs] emacs/lisp/progmodes cc-vars.el
Date: Tue, 02 Dec 2008 03:32:05 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Glenn Morris <gm>       08/12/02 03:32:05

Modified files:
        lisp/progmodes : cc-vars.el 

Log message:
        (c-tab-always-indent, c-insert-tab-function): Doc fix.  (Bug#1368)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/lisp/progmodes/cc-vars.el?cvsroot=emacs&r1=1.68&r2=1.69

Patches:
Index: cc-vars.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/progmodes/cc-vars.el,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -b -r1.68 -r1.69
--- cc-vars.el  6 May 2008 07:18:16 -0000       1.68
+++ cc-vars.el  2 Dec 2008 03:32:05 -0000       1.69
@@ -284,18 +284,13 @@
   "*Controls the operation of the TAB key.
 If t, hitting TAB always just indents the current line.  If nil, hitting
 TAB indents the current line if point is at the left margin or in the
-line's indentation, otherwise it inserts a `real' tab character \(see
-note\).  If some other value (not nil or t), then tab is inserted only
-within literals \(comments and strings), but the line is always
-reindented.
-
-Note: The value of `indent-tabs-mode' will determine whether a real
-tab character will be inserted, or the equivalent number of spaces.
-When inserting a tab, actually the function stored in the variable
-`c-insert-tab-function' is called.
+line's indentation, otherwise it calls `c-insert-tab-function' to
+insert a `real' tab character.  If some other value (neither nil nor t),
+then inserts a tab only within literals (comments and strings), but
+always reindents the line.
 
-Note: indentation of lines containing only comments is also controlled
-by the `c-comment-only-line-offset' variable."
+Note: the variable `c-comment-only-line-offset' also controls the
+indentation of lines containing only comments."
   :type '(radio
          (const :tag "TAB key always indents, never inserts TAB" t)
          (const :tag "TAB key indents in left margin, otherwise inserts TAB" 
nil)
@@ -305,7 +300,9 @@
 (defcustom c-insert-tab-function 'insert-tab
   "*Function used when inserting a tab for \\[c-indent-command].
 Only used when `c-tab-always-indent' indicates a `real' tab character
-should be inserted.  Value must be a function taking no arguments."
+should be inserted.  Value must be a function taking no arguments.
+The default, `insert-tab', inserts either a tab or the equivalent
+number of spaces depending on the value of `indent-tabs-mode'."
   :type 'function
   :group 'c)
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]