aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKaroly Lorentey2006-02-24 13:44:56 +0000
committerKaroly Lorentey2006-02-24 13:44:56 +0000
commit475789a7d6e602ceed2980c2f2a1c41fc46b56e7 (patch)
treeec1b5fc54d74959b669346020af0ad5a23eb8f0a /src
parent260a37ea6639a7872381615e8e2f4041240458ac (diff)
parent77343e1d1c4d26539f48e32754707df15e6e2ad2 (diff)
downloademacs-475789a7d6e602ceed2980c2f2a1c41fc46b56e7.tar.gz
emacs-475789a7d6e602ceed2980c2f2a1c41fc46b56e7.zip
Merged from
Patches applied: * emacs@sv.gnu.org/emacs--devo--0--patch-116 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-117 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-118 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-119 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-38 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-39 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-520
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog17
-rw-r--r--src/dispnew.c13
-rw-r--r--src/fileio.c2
-rw-r--r--src/macterm.c22
4 files changed, 42 insertions, 12 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2630efe73b7..d8e0b6fb4e1 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,20 @@
12006-02-24 Kenichi Handa <handa@m17n.org>
2
3 * fileio.c (Finsert_file_contents): When a text is replaced
4 partially, be sure to set point before the inserted characters.
5
62006-02-23 Zhang Wei <id.brep@gmail.com> (tiny change)
7
8 * xfns.c (Fx_file_dialog): Return a decoded file name.
9
102006-02-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11
12 * dispnew.c (update_text_area): Avoid needless redraw of rightmost
13 glyph whose face is extended to the text area end.
14
15 * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
16 values if control is not visible or values are not changed.
17
12006-02-22 Stefan Monnier <monnier@iro.umontreal.ca> 182006-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
2 19
3 * window.c (Fwindow_list): Check `window' before doing XWINDOW. 20 * window.c (Fwindow_list): Check `window' before doing XWINDOW.
diff --git a/src/dispnew.c b/src/dispnew.c
index 53ea761178f..5f3c8eacc3d 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -4361,10 +4361,14 @@ update_text_area (w, vpos)
4361 int overlapping_glyphs_p = current_row->contains_overlapping_glyphs_p; 4361 int overlapping_glyphs_p = current_row->contains_overlapping_glyphs_p;
4362 int desired_stop_pos = desired_row->used[TEXT_AREA]; 4362 int desired_stop_pos = desired_row->used[TEXT_AREA];
4363 4363
4364 /* If the desired row extends its face to the text area end, 4364 /* If the desired row extends its face to the text area end, and
4365 unless the current row also does so at the same position,
4365 make sure we write at least one glyph, so that the face 4366 make sure we write at least one glyph, so that the face
4366 extension actually takes place. */ 4367 extension actually takes place. */
4367 if (MATRIX_ROW_EXTENDS_FACE_P (desired_row)) 4368 if (MATRIX_ROW_EXTENDS_FACE_P (desired_row)
4369 && (desired_stop_pos < current_row->used[TEXT_AREA]
4370 || (desired_stop_pos == current_row->used[TEXT_AREA]
4371 && !MATRIX_ROW_EXTENDS_FACE_P (current_row))))
4368 --desired_stop_pos; 4372 --desired_stop_pos;
4369 4373
4370 stop = min (current_row->used[TEXT_AREA], desired_stop_pos); 4374 stop = min (current_row->used[TEXT_AREA], desired_stop_pos);
@@ -4483,7 +4487,10 @@ update_text_area (w, vpos)
4483 has to be cleared, if and only if we did a write_glyphs 4487 has to be cleared, if and only if we did a write_glyphs
4484 above. This is made sure by setting desired_stop_pos 4488 above. This is made sure by setting desired_stop_pos
4485 appropriately above. */ 4489 appropriately above. */
4486 xassert (i < desired_row->used[TEXT_AREA]); 4490 xassert (i < desired_row->used[TEXT_AREA]
4491 || ((desired_row->used[TEXT_AREA]
4492 == current_row->used[TEXT_AREA])
4493 && MATRIX_ROW_EXTENDS_FACE_P (current_row)));
4487 } 4494 }
4488 else if (MATRIX_ROW_EXTENDS_FACE_P (current_row)) 4495 else if (MATRIX_ROW_EXTENDS_FACE_P (current_row))
4489 { 4496 {
diff --git a/src/fileio.c b/src/fileio.c
index 1ec443e44e0..e27f87bcbcf 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -4416,6 +4416,8 @@ actually used. */)
4416 4416
4417 /* Set `inserted' to the number of inserted characters. */ 4417 /* Set `inserted' to the number of inserted characters. */
4418 inserted = PT - temp; 4418 inserted = PT - temp;
4419 /* Set point before the inserted characters. */
4420 SET_PT_BOTH (temp, same_at_start);
4419 4421
4420 xfree (conversion_buffer); 4422 xfree (conversion_buffer);
4421 emacs_close (fd); 4423 emacs_close (fd);
diff --git a/src/macterm.c b/src/macterm.c
index 697bfd58556..af9079e919b 100644
--- a/src/macterm.c
+++ b/src/macterm.c
@@ -4529,7 +4529,7 @@ x_set_toolkit_scroll_bar_thumb (bar, portion, position, whole)
4529 int portion, position, whole; 4529 int portion, position, whole;
4530{ 4530{
4531 ControlHandle ch = SCROLL_BAR_CONTROL_HANDLE (bar); 4531 ControlHandle ch = SCROLL_BAR_CONTROL_HANDLE (bar);
4532 int value, viewsize, maximum, visible_p; 4532 int value, viewsize, maximum;
4533 4533
4534 if (whole == 0 || XINT (bar->track_height) == 0) 4534 if (whole == 0 || XINT (bar->track_height) == 0)
4535 value = 0, viewsize = 1, maximum = 0; 4535 value = 0, viewsize = 1, maximum = 0;
@@ -4542,16 +4542,20 @@ x_set_toolkit_scroll_bar_thumb (bar, portion, position, whole)
4542 4542
4543 BLOCK_INPUT; 4543 BLOCK_INPUT;
4544 4544
4545 /* Temporarily hide the scroll bar to avoid multiple redraws. */ 4545 if (IsControlVisible (ch)
4546 visible_p = IsControlVisible (ch); 4546 && (GetControlViewSize (ch) != viewsize
4547 SetControlVisibility (ch, false, false); 4547 || GetControl32BitValue (ch) != value
4548 || GetControl32BitMaximum (ch) != maximum))
4549 {
4550 /* Temporarily hide the scroll bar to avoid multiple redraws. */
4551 SetControlVisibility (ch, false, false);
4548 4552
4549 SetControl32BitMinimum (ch, 0); 4553 SetControl32BitMaximum (ch, maximum);
4550 SetControl32BitMaximum (ch, maximum); 4554 SetControl32BitValue (ch, value);
4551 SetControl32BitValue (ch, value); 4555 SetControlViewSize (ch, viewsize);
4552 SetControlViewSize (ch, viewsize);
4553 4556
4554 SetControlVisibility (ch, visible_p, true); 4557 SetControlVisibility (ch, true, true);
4558 }
4555 4559
4556 UNBLOCK_INPUT; 4560 UNBLOCK_INPUT;
4557} 4561}