aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMiles Bader2008-03-10 00:49:47 +0000
committerMiles Bader2008-03-10 00:49:47 +0000
commit56388398e7a1251497f002072c061002ec9d9e81 (patch)
treeb9b4a189840efadb47820e9fc7ad447e58d4c89e /src
parenta9f8b49b44a4083d8e5a2429306ce41e7f3cfe0e (diff)
parent286b40657d59d8614f7a71844a6e4a7e8819da1b (diff)
downloademacs-56388398e7a1251497f002072c061002ec9d9e81.tar.gz
emacs-56388398e7a1251497f002072c061002ec9d9e81.zip
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1095
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog15
-rw-r--r--src/dispnew.c2
-rw-r--r--src/fileio.c4
-rw-r--r--src/xdisp.c9
4 files changed, 21 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index d7f8e5b9c19..0678ed7488e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,18 @@
12008-03-07 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
4 size of resulting string.
5
62008-03-05 Jason Rumney <jasonr@gnu.org>
7
8 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
9
102008-03-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11
12 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13 Don't pretend as if characters with display property haven't been
14 consumed for string-replacing-string case.
15
12008-03-08 Kim F. Storm <storm@cua.dk> 162008-03-08 Kim F. Storm <storm@cua.dk>
2 17
3 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro. 18 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
diff --git a/src/dispnew.c b/src/dispnew.c
index 096bca9d460..4f6e6374da3 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -633,7 +633,7 @@ adjust_glyph_matrix (w, matrix, x, y, dim)
633 int header_line_changed_p = 0; 633 int header_line_changed_p = 0;
634 int header_line_p = 0; 634 int header_line_p = 0;
635 int left = -1, right = -1; 635 int left = -1, right = -1;
636 int window_width = -1, window_height; 636 int window_width = -1, window_height = -1;
637 637
638 /* See if W had a header line that has disappeared now, or vice versa. 638 /* See if W had a header line that has disappeared now, or vice versa.
639 Get W's size. */ 639 Get W's size. */
diff --git a/src/fileio.c b/src/fileio.c
index 4430cf4db57..f478b4a1fad 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2224,8 +2224,8 @@ duplicates what `expand-file-name' does. */)
2224 /* Get variable value */ 2224 /* Get variable value */
2225 o = (unsigned char *) egetenv (target); 2225 o = (unsigned char *) egetenv (target);
2226 if (o) 2226 if (o)
2227 { 2227 { /* Eight-bit chars occupy upto 2 bytes in multibyte. */
2228 total += strlen (o); 2228 total += strlen (o) * (STRING_MULTIBYTE (filename) ? 2 : 1);
2229 substituted = 1; 2229 substituted = 1;
2230 } 2230 }
2231 else if (*p == '}') 2231 else if (*p == '}')
diff --git a/src/xdisp.c b/src/xdisp.c
index b7a5ceec495..add712fc85b 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -4331,15 +4331,13 @@ handle_single_display_spec (it, spec, object, overlay, position,
4331 `display' property yet. The call to pop_it in 4331 `display' property yet. The call to pop_it in
4332 set_iterator_to_next will clean this up. */ 4332 set_iterator_to_next will clean this up. */
4333 if (BUFFERP (object)) 4333 if (BUFFERP (object))
4334 it->current.pos = start_pos; 4334 *position = start_pos;
4335 } 4335 }
4336 else if (CONSP (value) && EQ (XCAR (value), Qspace)) 4336 else if (CONSP (value) && EQ (XCAR (value), Qspace))
4337 { 4337 {
4338 it->method = GET_FROM_STRETCH; 4338 it->method = GET_FROM_STRETCH;
4339 it->object = value; 4339 it->object = value;
4340 it->position = start_pos; 4340 *position = it->position = start_pos;
4341 if (BUFFERP (object))
4342 it->current.pos = start_pos;
4343 } 4341 }
4344#ifdef HAVE_WINDOW_SYSTEM 4342#ifdef HAVE_WINDOW_SYSTEM
4345 else 4343 else
@@ -4353,8 +4351,7 @@ handle_single_display_spec (it, spec, object, overlay, position,
4353 /* Say that we haven't consumed the characters with 4351 /* Say that we haven't consumed the characters with
4354 `display' property yet. The call to pop_it in 4352 `display' property yet. The call to pop_it in
4355 set_iterator_to_next will clean this up. */ 4353 set_iterator_to_next will clean this up. */
4356 if (BUFFERP (object)) 4354 *position = start_pos;
4357 it->current.pos = start_pos;
4358 } 4355 }
4359#endif /* HAVE_WINDOW_SYSTEM */ 4356#endif /* HAVE_WINDOW_SYSTEM */
4360 4357