comparison src/indent.c @ 85128:8b61a2e5e365

(indent_tabs_mode, last_known_column, last_known_column_modified): Make static. (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
author Juanma Barranquero <lekktu@gmail.com>
date Wed, 10 Oct 2007 08:50:33 +0000
parents fd8f746ce48f
children 107ccd98fa12 d38543a1c0f9
comparison
equal deleted inserted replaced
85127:b98ea218eb70 85128:8b61a2e5e365
37 #include "region-cache.h" 37 #include "region-cache.h"
38 38
39 /* Indentation can insert tabs if this is non-zero; 39 /* Indentation can insert tabs if this is non-zero;
40 otherwise always uses spaces. */ 40 otherwise always uses spaces. */
41 41
42 int indent_tabs_mode; 42 static int indent_tabs_mode;
43 43
44 #define CR 015 44 #define CR 015
45 45
46 /* These three values memorize the current column to avoid recalculation. */ 46 /* These three values memorize the current column to avoid recalculation. */
47 47
48 /* Last value returned by current_column. 48 /* Last value returned by current_column.
49 Some things in set last_known_column_point to -1 49 Some things in set last_known_column_point to -1
50 to mark the memorized value as invalid. */ 50 to mark the memorized value as invalid. */
51 51
52 double last_known_column; 52 static double last_known_column;
53 53
54 /* Value of point when current_column was called. */ 54 /* Value of point when current_column was called. */
55 55
56 EMACS_INT last_known_column_point; 56 EMACS_INT last_known_column_point;
57 57
58 /* Value of MODIFF when current_column was called. */ 58 /* Value of MODIFF when current_column was called. */
59 59
60 int last_known_column_modified; 60 static int last_known_column_modified;
61 61
62 static double current_column_1 P_ ((void)); 62 static double current_column_1 P_ ((void));
63 static double position_indentation P_ ((int)); 63 static double position_indentation P_ ((int));
64 64
65 /* Cache of beginning of line found by the last call of 65 /* Cache of beginning of line found by the last call of
2157 2157
2158 void 2158 void
2159 syms_of_indent () 2159 syms_of_indent ()
2160 { 2160 {
2161 DEFVAR_BOOL ("indent-tabs-mode", &indent_tabs_mode, 2161 DEFVAR_BOOL ("indent-tabs-mode", &indent_tabs_mode,
2162 doc: /* *Indentation can insert tabs if this is non-nil. 2162 doc: /* *Indentation can insert tabs if this is non-nil. */);
2163 Setting this variable automatically makes it local to the current buffer. */);
2164 indent_tabs_mode = 1; 2163 indent_tabs_mode = 1;
2165 2164
2166 defsubr (&Scurrent_indentation); 2165 defsubr (&Scurrent_indentation);
2167 defsubr (&Sindent_to); 2166 defsubr (&Sindent_to);
2168 defsubr (&Scurrent_column); 2167 defsubr (&Scurrent_column);