aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-10-29 23:07:56 +0000
committerRichard M. Stallman1995-10-29 23:07:56 +0000
commit8bb1c0421032b7f841f13c337afaa77071c6d2a4 (patch)
tree08750e8f0cb0b8aa6144b0799370156cf86a66c5 /src
parent7160110116efb41506e7cd7e9369365e48a6690b (diff)
downloademacs-8bb1c0421032b7f841f13c337afaa77071c6d2a4.tar.gz
emacs-8bb1c0421032b7f841f13c337afaa77071c6d2a4.zip
(command_loop_1): No direct display if Column Number mode.
(Vcolumn_number_mode): New variable. (syms_of_keyboard): Set up Lisp variable.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 9c2c02af716..f46a7b24f6c 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -501,6 +501,9 @@ int flow_control;
501#ifdef HAVE_X_WINDOWS 501#ifdef HAVE_X_WINDOWS
502#define POLL_FOR_INPUT 502#define POLL_FOR_INPUT
503#endif 503#endif
504
505/* Non-nil enables Column Number mode. */
506Lisp_Object Vcolumn_number_mode;
504 507
505/* Global variable declarations. */ 508/* Global variable declarations. */
506 509
@@ -1278,6 +1281,7 @@ command_loop_1 ()
1278 && !windows_or_buffers_changed 1281 && !windows_or_buffers_changed
1279 && EQ (current_buffer->selective_display, Qnil) 1282 && EQ (current_buffer->selective_display, Qnil)
1280 && !detect_input_pending () 1283 && !detect_input_pending ()
1284 && NILP (Vcolumn_number_mode)
1281 && NILP (Vexecuting_macro)) 1285 && NILP (Vexecuting_macro))
1282 no_redisplay = direct_output_forward_char (1); 1286 no_redisplay = direct_output_forward_char (1);
1283 goto directly_done; 1287 goto directly_done;
@@ -1301,6 +1305,7 @@ command_loop_1 ()
1301 && !windows_or_buffers_changed 1305 && !windows_or_buffers_changed
1302 && EQ (current_buffer->selective_display, Qnil) 1306 && EQ (current_buffer->selective_display, Qnil)
1303 && !detect_input_pending () 1307 && !detect_input_pending ()
1308 && NILP (Vcolumn_number_mode)
1304 && NILP (Vexecuting_macro)) 1309 && NILP (Vexecuting_macro))
1305 no_redisplay = direct_output_forward_char (-1); 1310 no_redisplay = direct_output_forward_char (-1);
1306 goto directly_done; 1311 goto directly_done;
@@ -1330,6 +1335,7 @@ command_loop_1 ()
1330 || windows_or_buffers_changed 1335 || windows_or_buffers_changed
1331 || !EQ (current_buffer->selective_display, Qnil) 1336 || !EQ (current_buffer->selective_display, Qnil)
1332 || detect_input_pending () 1337 || detect_input_pending ()
1338 || !NILP (Vcolumn_number_mode)
1333 || !NILP (Vexecuting_macro)); 1339 || !NILP (Vexecuting_macro));
1334 value = internal_self_insert (c, 0); 1340 value = internal_self_insert (c, 0);
1335 if (value) 1341 if (value)
@@ -7518,6 +7524,10 @@ whenever `deferred-action-list' is non-nil.");
7518The value can be a length of time to show the message for.\n\ 7524The value can be a length of time to show the message for.\n\
7519If the value is non-nil and not a number, we wait 2 seconds."); 7525If the value is non-nil and not a number, we wait 2 seconds.");
7520 Vsuggest_key_bindings = Qt; 7526 Vsuggest_key_bindings = Qt;
7527
7528 DEFVAR_LISP ("column-number-mode", &Vcolumn_number_mode,
7529 "Non-nil enables display of the current column number in the mode line.");
7530 Vcolumn_number_mode = Qnil;
7521} 7531}
7522 7532
7523keys_of_keyboard () 7533keys_of_keyboard ()