aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog24
-rw-r--r--src/callint.c2
-rw-r--r--src/editfns.c4
-rw-r--r--src/fns.c2
-rw-r--r--src/frame.c10
-rw-r--r--src/keyboard.c6
-rw-r--r--src/macros.c10
-rw-r--r--src/msdos.c4
-rw-r--r--src/process.c2
-rw-r--r--src/sheap.c2
-rw-r--r--src/sound.c2
-rw-r--r--src/xdisp.c7
-rw-r--r--src/xml.c2
-rw-r--r--src/xterm.c10
14 files changed, 57 insertions, 30 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 4d39a32e883..e945e221593 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,27 @@
12013-02-17 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (x_draw_vertical_border): For a window that is neither
4 the leftmost nor the rightmost, redraw both the left and the right
5 vertical borders. (Bug#13723)
6
72013-02-17 Stefan Monnier <monnier@iro.umontreal.ca>
8
9 * xml.c (init_libxml2_functions):
10 * sound.c (sound_warning):
11 * sheap.c (report_sheap_usage):
12 * process.c (wait_reading_process_output):
13 * msdos.c (XMenuActivate):
14 * macros.c (Fstart_kbd_macro, Fend_kbd_macro):
15 * keyboard.c (top_level_1):
16 * editfns.c (Fmessage, Fmessage_box):
17 * callint.c (Fcall_interactively):
18 * fns.c (Fyes_or_no_p): Prefer `message1' over `message'.
19
202013-02-17 Jan Djärv <jan.h.d@swipnet.se>
21
22 * xterm.c (syms_of_xterm): Move scroll-bar-adjust-thumb-portion ...
23 * frame.c (syms_of_frame): ... to here.
24
12013-02-16 Eli Zaretskii <eliz@gnu.org> 252013-02-16 Eli Zaretskii <eliz@gnu.org>
2 26
3 * w32.c (sys_chown): Remove unused function. 27 * w32.c (sys_chown): Remove unused function.
diff --git a/src/callint.c b/src/callint.c
index 1a125d3e865..3e295a3b26b 100644
--- a/src/callint.c
+++ b/src/callint.c
@@ -690,7 +690,7 @@ invoke it. If KEYS is omitted or nil, the return value of
690 Lisp_Object str; 690 Lisp_Object str;
691 if (! first) 691 if (! first)
692 { 692 {
693 message ("Please enter a number."); 693 message1 ("Please enter a number.");
694 sit_for (make_number (1), 0, 0); 694 sit_for (make_number (1), 0, 0);
695 } 695 }
696 first = 0; 696 first = 0;
diff --git a/src/editfns.c b/src/editfns.c
index c5cd8b0b725..bee0bcc158d 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -3451,7 +3451,7 @@ usage: (message FORMAT-STRING &rest ARGS) */)
3451 || (STRINGP (args[0]) 3451 || (STRINGP (args[0])
3452 && SBYTES (args[0]) == 0)) 3452 && SBYTES (args[0]) == 0))
3453 { 3453 {
3454 message (0); 3454 message1 (0);
3455 return args[0]; 3455 return args[0];
3456 } 3456 }
3457 else 3457 else
@@ -3477,7 +3477,7 @@ usage: (message-box FORMAT-STRING &rest ARGS) */)
3477{ 3477{
3478 if (NILP (args[0])) 3478 if (NILP (args[0]))
3479 { 3479 {
3480 message (0); 3480 message1 (0);
3481 return Qnil; 3481 return Qnil;
3482 } 3482 }
3483 else 3483 else
diff --git a/src/fns.c b/src/fns.c
index 527976593da..44ddf340856 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -2485,7 +2485,7 @@ is nil, and `use-dialog-box' is non-nil. */)
2485 2485
2486 Fding (Qnil); 2486 Fding (Qnil);
2487 Fdiscard_input (); 2487 Fdiscard_input ();
2488 message ("Please answer yes or no."); 2488 message1 ("Please answer yes or no.");
2489 Fsleep_for (make_number (2), Qnil); 2489 Fsleep_for (make_number (2), Qnil);
2490 } 2490 }
2491} 2491}
diff --git a/src/frame.c b/src/frame.c
index 9c26af819bc..0fa821682f3 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -4233,6 +4233,16 @@ Setting this variable does not affect existing frames, only new ones. */);
4233 Vdefault_frame_scroll_bars = Qnil; 4233 Vdefault_frame_scroll_bars = Qnil;
4234#endif 4234#endif
4235 4235
4236 DEFVAR_BOOL ("scroll-bar-adjust-thumb-portion",
4237 scroll_bar_adjust_thumb_portion_p,
4238 doc: /* Adjust thumb for overscrolling for Gtk+ and MOTIF.
4239Non-nil means adjust the thumb in the scroll bar so it can be dragged downwards
4240even if the end of the buffer is shown (i.e. overscrolling).
4241Set to nil if you want the thumb to be at the bottom when the end of the buffer
4242is shown. Also, the thumb fills the whole scroll bar when the entire buffer
4243is visible. In this case you can not overscroll. */);
4244 scroll_bar_adjust_thumb_portion_p = 1;
4245
4236 DEFVAR_LISP ("terminal-frame", Vterminal_frame, 4246 DEFVAR_LISP ("terminal-frame", Vterminal_frame,
4237 doc: /* The initial frame-object, which represents Emacs's stdout. */); 4247 doc: /* The initial frame-object, which represents Emacs's stdout. */);
4238 4248
diff --git a/src/keyboard.c b/src/keyboard.c
index 0d60dc8929d..3c00e017498 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1188,13 +1188,13 @@ top_level_2 (void)
1188static Lisp_Object 1188static Lisp_Object
1189top_level_1 (Lisp_Object ignore) 1189top_level_1 (Lisp_Object ignore)
1190{ 1190{
1191 /* On entry to the outer level, run the startup file */ 1191 /* On entry to the outer level, run the startup file. */
1192 if (!NILP (Vtop_level)) 1192 if (!NILP (Vtop_level))
1193 internal_condition_case (top_level_2, Qerror, cmd_error); 1193 internal_condition_case (top_level_2, Qerror, cmd_error);
1194 else if (!NILP (Vpurify_flag)) 1194 else if (!NILP (Vpurify_flag))
1195 message ("Bare impure Emacs (standard Lisp code not loaded)"); 1195 message1 ("Bare impure Emacs (standard Lisp code not loaded)");
1196 else 1196 else
1197 message ("Bare Emacs (standard Lisp code not loaded)"); 1197 message1 ("Bare Emacs (standard Lisp code not loaded)");
1198 return Qnil; 1198 return Qnil;
1199} 1199}
1200 1200
diff --git a/src/macros.c b/src/macros.c
index 1eef9b678f4..0dcfbe5532c 100644
--- a/src/macros.c
+++ b/src/macros.c
@@ -78,7 +78,7 @@ macro before appending to it. */)
78 } 78 }
79 current_kboard->kbd_macro_ptr = current_kboard->kbd_macro_buffer; 79 current_kboard->kbd_macro_ptr = current_kboard->kbd_macro_buffer;
80 current_kboard->kbd_macro_end = current_kboard->kbd_macro_buffer; 80 current_kboard->kbd_macro_end = current_kboard->kbd_macro_buffer;
81 message ("Defining kbd macro..."); 81 message1 ("Defining kbd macro...");
82 } 82 }
83 else 83 else
84 { 84 {
@@ -125,7 +125,7 @@ macro before appending to it. */)
125 Fexecute_kbd_macro (KVAR (current_kboard, Vlast_kbd_macro), 125 Fexecute_kbd_macro (KVAR (current_kboard, Vlast_kbd_macro),
126 make_number (1), Qnil); 126 make_number (1), Qnil);
127 127
128 message ("Appending to kbd macro..."); 128 message1 ("Appending to kbd macro...");
129 } 129 }
130 kset_defining_kbd_macro (current_kboard, Qt); 130 kset_defining_kbd_macro (current_kboard, Qt);
131 131
@@ -172,21 +172,21 @@ each iteration of the macro. Iteration stops if LOOPFUNC returns nil. */)
172 if (!NILP (KVAR (current_kboard, defining_kbd_macro))) 172 if (!NILP (KVAR (current_kboard, defining_kbd_macro)))
173 { 173 {
174 end_kbd_macro (); 174 end_kbd_macro ();
175 message ("Keyboard macro defined"); 175 message1 ("Keyboard macro defined");
176 } 176 }
177 177
178 if (XFASTINT (repeat) == 0) 178 if (XFASTINT (repeat) == 0)
179 Fexecute_kbd_macro (KVAR (current_kboard, Vlast_kbd_macro), repeat, loopfunc); 179 Fexecute_kbd_macro (KVAR (current_kboard, Vlast_kbd_macro), repeat, loopfunc);
180 else if (XINT (repeat) > 1) 180 else if (XINT (repeat) > 1)
181 { 181 {
182 XSETINT (repeat, XINT (repeat)-1); 182 XSETINT (repeat, XINT (repeat) - 1);
183 Fexecute_kbd_macro (KVAR (current_kboard, Vlast_kbd_macro), 183 Fexecute_kbd_macro (KVAR (current_kboard, Vlast_kbd_macro),
184 repeat, loopfunc); 184 repeat, loopfunc);
185 } 185 }
186 return Qnil; 186 return Qnil;
187} 187}
188 188
189/* Store character c into kbd macro being defined */ 189/* Store character c into kbd macro being defined. */
190 190
191void 191void
192store_kbd_macro_char (Lisp_Object c) 192store_kbd_macro_char (Lisp_Object c)
diff --git a/src/msdos.c b/src/msdos.c
index 527a75c8c2f..ac8c90455d7 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -3281,10 +3281,10 @@ XMenuActivate (Display *foo, XMenu *menu, int *pane, int *selidx,
3281 erasing it works correctly... */ 3281 erasing it works correctly... */
3282 if (! NILP (saved_echo_area_message)) 3282 if (! NILP (saved_echo_area_message))
3283 message_with_string ("%s", saved_echo_area_message, 0); 3283 message_with_string ("%s", saved_echo_area_message, 0);
3284 message (0); 3284 message1 (0);
3285 while (statecount--) 3285 while (statecount--)
3286 xfree (state[statecount].screen_behind); 3286 xfree (state[statecount].screen_behind);
3287 IT_display_cursor (1); /* turn cursor back on */ 3287 IT_display_cursor (1); /* Turn cursor back on. */
3288 /* Clean up any mouse events that are waiting inside Emacs event queue. 3288 /* Clean up any mouse events that are waiting inside Emacs event queue.
3289 These events are likely to be generated before the menu was even 3289 These events are likely to be generated before the menu was even
3290 displayed, probably because the user pressed and released the button 3290 displayed, probably because the user pressed and released the button
diff --git a/src/process.c b/src/process.c
index 9d6e8c097a1..5b15ade1122 100644
--- a/src/process.c
+++ b/src/process.c
@@ -4218,7 +4218,7 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
4218 if (time_limit == 0 && nsecs == 0 && wait_proc && !NILP (Vinhibit_quit) 4218 if (time_limit == 0 && nsecs == 0 && wait_proc && !NILP (Vinhibit_quit)
4219 && !(CONSP (wait_proc->status) 4219 && !(CONSP (wait_proc->status)
4220 && EQ (XCAR (wait_proc->status), Qexit))) 4220 && EQ (XCAR (wait_proc->status), Qexit)))
4221 message ("Blocking call to accept-process-output with quit inhibited!!"); 4221 message1 ("Blocking call to accept-process-output with quit inhibited!!");
4222 4222
4223 /* If wait_proc is a process to watch, set wait_channel accordingly. */ 4223 /* If wait_proc is a process to watch, set wait_channel accordingly. */
4224 if (wait_proc != NULL) 4224 if (wait_proc != NULL)
diff --git a/src/sheap.c b/src/sheap.c
index 972c04c9552..06e205bc0e5 100644
--- a/src/sheap.c
+++ b/src/sheap.c
@@ -91,5 +91,5 @@ report_sheap_usage (int die_if_pure_storage_exceeded)
91 char buf[200]; 91 char buf[200];
92 sprintf (buf, "Static heap usage: %d of %d bytes", 92 sprintf (buf, "Static heap usage: %d of %d bytes",
93 bss_sbrk_ptr - bss_sbrk_buffer, STATIC_HEAP_SIZE); 93 bss_sbrk_ptr - bss_sbrk_buffer, STATIC_HEAP_SIZE);
94 message ("%s", buf); 94 message1 (buf);
95} 95}
diff --git a/src/sound.c b/src/sound.c
index 802f1ce740d..9c472fb0263 100644
--- a/src/sound.c
+++ b/src/sound.c
@@ -334,7 +334,7 @@ sound_perror (const char *msg)
334static void 334static void
335sound_warning (const char *msg) 335sound_warning (const char *msg)
336{ 336{
337 message ("%s", msg); 337 message1 (msg);
338} 338}
339 339
340 340
diff --git a/src/xdisp.c b/src/xdisp.c
index 9da8679382e..68be426f807 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -28496,6 +28496,9 @@ x_draw_vertical_border (struct window *w)
28496 if (FRAME_HAS_VERTICAL_SCROLL_BARS (XFRAME (w->frame))) 28496 if (FRAME_HAS_VERTICAL_SCROLL_BARS (XFRAME (w->frame)))
28497 return; 28497 return;
28498 28498
28499 /* Note: It is necessary to redraw bot the left and the right
28500 borders, for when only this single window W is being
28501 redisplayed. */
28499 if (!WINDOW_RIGHTMOST_P (w) 28502 if (!WINDOW_RIGHTMOST_P (w)
28500 && !WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT (w)) 28503 && !WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT (w))
28501 { 28504 {
@@ -28509,8 +28512,8 @@ x_draw_vertical_border (struct window *w)
28509 28512
28510 FRAME_RIF (f)->draw_vertical_window_border (w, x1, y0, y1); 28513 FRAME_RIF (f)->draw_vertical_window_border (w, x1, y0, y1);
28511 } 28514 }
28512 else if (!WINDOW_LEFTMOST_P (w) 28515 if (!WINDOW_LEFTMOST_P (w)
28513 && !WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT (w)) 28516 && !WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT (w))
28514 { 28517 {
28515 int x0, x1, y0, y1; 28518 int x0, x1, y0, y1;
28516 28519
diff --git a/src/xml.c b/src/xml.c
index 5a52b0c2a1e..4b466dc1bca 100644
--- a/src/xml.c
+++ b/src/xml.c
@@ -93,7 +93,7 @@ init_libxml2_functions (void)
93 93
94 if (!(library = w32_delayed_load (Qlibxml2_dll))) 94 if (!(library = w32_delayed_load (Qlibxml2_dll)))
95 { 95 {
96 message ("%s", "libxml2 library not found"); 96 message1 ("libxml2 library not found");
97 return 0; 97 return 0;
98 } 98 }
99 99
diff --git a/src/xterm.c b/src/xterm.c
index e92123583b0..66381fde52f 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -10791,16 +10791,6 @@ With MS Windows or Nextstep, the value is t. */);
10791 Vx_toolkit_scroll_bars = Qnil; 10791 Vx_toolkit_scroll_bars = Qnil;
10792#endif 10792#endif
10793 10793
10794 DEFVAR_BOOL ("scroll-bar-adjust-thumb-portion",
10795 scroll_bar_adjust_thumb_portion_p,
10796 doc: /* Adjust thumb for overscrolling for Gtk+ and MOTIF.
10797Non-nil means adjust the thumb in the scroll bar so it can be dragged downwards
10798even if the end of the buffer is shown (i.e. overscrolling).
10799Set to nil if you want the thumb to be at the bottom when the end of the buffer
10800is shown. Also, the thumb fills the whole scroll bar when the entire buffer
10801is visible. In this case you can not overscroll. */);
10802 scroll_bar_adjust_thumb_portion_p = 1;
10803
10804 staticpro (&last_mouse_motion_frame); 10794 staticpro (&last_mouse_motion_frame);
10805 last_mouse_motion_frame = Qnil; 10795 last_mouse_motion_frame = Qnil;
10806 10796