aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-12-27 14:33:11 +0000
committerGerd Moellmann2000-12-27 14:33:11 +0000
commit5bf045202fc9b22fb4f1d4d1fafb6d4066f418c6 (patch)
tree4e43493239414486907af7d028e18ce87fbe566c
parent25050dab1dc4c24296a9c3391615b1235a4ab005 (diff)
downloademacs-5bf045202fc9b22fb4f1d4d1fafb6d4066f418c6.tar.gz
emacs-5bf045202fc9b22fb4f1d4d1fafb6d4066f418c6.zip
(syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
instead of x-toolkit-scroll-bars-p. (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
-rw-r--r--src/w32term.c8
-rw-r--r--src/xterm.c20
2 files changed, 18 insertions, 10 deletions
diff --git a/src/w32term.c b/src/w32term.c
index ff56139315c..be82b209f63 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -145,9 +145,9 @@ static HBITMAP ov_bmp;
145extern Lisp_Object Qhelp_echo; 145extern Lisp_Object Qhelp_echo;
146 146
147 147
148/* Non-zero means Emacs uses toolkit scroll bars. */ 148/* Non-nil means Emacs uses toolkit scroll bars. */
149 149
150int x_toolkit_scroll_bars_p; 150Lisp_Object Vx_toolkit_scroll_bars;
151 151
152/* If a string, w32_read_socket generates an event to display that string. 152/* If a string, w32_read_socket generates an event to display that string.
153 (The display is done in read_char.) */ 153 (The display is done in read_char.) */
@@ -10359,9 +10359,9 @@ For example, if a block cursor is over a tab, it will be drawn as\n\
10359wide as that tab on the display."); 10359wide as that tab on the display.");
10360 x_stretch_cursor_p = 0; 10360 x_stretch_cursor_p = 0;
10361 10361
10362 DEFVAR_BOOL ("x-toolkit-scroll-bars-p", &x_toolkit_scroll_bars_p, 10362 DEFVAR_LISP ("x-toolkit-scroll-bars", &Vx_toolkit_scroll_bars,
10363 "If not nil, Emacs uses toolkit scroll bars."); 10363 "If not nil, Emacs uses toolkit scroll bars.");
10364 x_toolkit_scroll_bars_p = 1; 10364 Vx_toolkit_scroll_bars = Qt;
10365 10365
10366 staticpro (&last_mouse_motion_frame); 10366 staticpro (&last_mouse_motion_frame);
10367 last_mouse_motion_frame = Qnil; 10367 last_mouse_motion_frame = Qnil;
diff --git a/src/xterm.c b/src/xterm.c
index 47b3f532e92..ff90cf8d7c3 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -230,9 +230,9 @@ static unsigned char ov_bits[] = {
230extern Lisp_Object Qhelp_echo; 230extern Lisp_Object Qhelp_echo;
231 231
232 232
233/* Non-zero means Emacs uses toolkit scroll bars. */ 233/* Non-nil means Emacs uses toolkit scroll bars. */
234 234
235int x_toolkit_scroll_bars_p; 235Lisp_Object Vx_toolkit_scroll_bars;
236 236
237/* If a string, XTread_socket generates an event to display that string. 237/* If a string, XTread_socket generates an event to display that string.
238 (The display is done in read_char.) */ 238 (The display is done in read_char.) */
@@ -14006,12 +14006,20 @@ For example, if a block cursor is over a tab, it will be drawn as\n\
14006wide as that tab on the display."); 14006wide as that tab on the display.");
14007 x_stretch_cursor_p = 0; 14007 x_stretch_cursor_p = 0;
14008 14008
14009 DEFVAR_BOOL ("x-toolkit-scroll-bars-p", &x_toolkit_scroll_bars_p, 14009 DEFVAR_LISP ("x-toolkit-scroll-bars", &Vx_toolkit_scroll_bars,
14010 "If not nil, Emacs uses toolkit scroll bars."); 14010 "What X toolkit scroll bars Emacs uses.\n\
14011A value of nil means Emacs doesn't use X toolkit scroll bars.\n\
14012Otherwise, value is a symbol describing the X toolkit.");
14011#ifdef USE_TOOLKIT_SCROLL_BARS 14013#ifdef USE_TOOLKIT_SCROLL_BARS
14012 x_toolkit_scroll_bars_p = 1; 14014#ifdef USE_MOTIF
14015 Vx_toolkit_scroll_bars = intern ("motif");
14016#elif defined HAVE_XAW3D
14017 Vx_toolkit_scroll_bars = intern ("xaw3d");
14018#else
14019 Vx_toolkit_scroll_bars = intern ("xaw");
14020#endif
14013#else 14021#else
14014 x_toolkit_scroll_bars_p = 0; 14022 Vx_toolkit_scroll_bars = Qnil;
14015#endif 14023#endif
14016 14024
14017 staticpro (&last_mouse_motion_frame); 14025 staticpro (&last_mouse_motion_frame);