[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/xdisp.c,v [EMACS_22_BASE]
From: |
YAMAMOTO Mitsuharu |
Subject: |
[Emacs-diffs] Changes to emacs/src/xdisp.c,v [EMACS_22_BASE] |
Date: |
Tue, 16 Oct 2007 08:59:26 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Branch: EMACS_22_BASE
Changes by: YAMAMOTO Mitsuharu <mituharu> 07/10/16 08:59:26
Index: xdisp.c
===================================================================
RCS file: /sources/emacs/emacs/src/xdisp.c,v
retrieving revision 1.1149.2.11
retrieving revision 1.1149.2.12
diff -u -b -r1.1149.2.11 -r1.1149.2.12
--- xdisp.c 9 Oct 2007 01:28:33 -0000 1.1149.2.11
+++ xdisp.c 16 Oct 2007 08:59:25 -0000 1.1149.2.12
@@ -3839,7 +3839,13 @@
{
if (handle_single_display_spec (it, XCAR (prop), object,
position, display_replaced_p))
+ {
display_replaced_p = 1;
+ /* If some text in a string is replaced, `position' no
+ longer points to the position of `object'. */
+ if (STRINGP (object))
+ break;
+ }
}
}
else if (VECTORP (prop))
@@ -3848,7 +3854,13 @@
for (i = 0; i < ASIZE (prop); ++i)
if (handle_single_display_spec (it, AREF (prop, i), object,
position, display_replaced_p))
+ {
display_replaced_p = 1;
+ /* If some text in a string is replaced, `position' no
+ longer points to the position of `object'. */
+ if (STRINGP (object))
+ break;
+ }
}
else
{
@@ -4237,13 +4249,16 @@
/* Say that we haven't consumed the characters with
`display' property yet. The call to pop_it in
set_iterator_to_next will clean this up. */
- *position = start_pos;
+ if (BUFFERP (object))
+ it->current.pos = start_pos;
}
else if (CONSP (value) && EQ (XCAR (value), Qspace))
{
it->method = GET_FROM_STRETCH;
it->object = value;
- *position = it->position = start_pos;
+ it->position = start_pos;
+ if (BUFFERP (object))
+ it->current.pos = start_pos;
}
#ifdef HAVE_WINDOW_SYSTEM
else
@@ -4257,7 +4272,8 @@
/* Say that we haven't consumed the characters with
`display' property yet. The call to pop_it in
set_iterator_to_next will clean this up. */
- *position = start_pos;
+ if (BUFFERP (object))
+ it->current.pos = start_pos;
}
#endif /* HAVE_WINDOW_SYSTEM */
- [Emacs-diffs] Changes to emacs/src/xdisp.c,v [EMACS_22_BASE], Richard M. Stallman, 2007/10/01
- [Emacs-diffs] Changes to emacs/src/xdisp.c,v [EMACS_22_BASE], Martin Rudalics, 2007/10/06
- [Emacs-diffs] Changes to emacs/src/xdisp.c,v [EMACS_22_BASE], Richard M. Stallman, 2007/10/08
- [Emacs-diffs] Changes to emacs/src/xdisp.c,v [EMACS_22_BASE],
YAMAMOTO Mitsuharu <=
- [Emacs-diffs] Changes to emacs/src/xdisp.c,v [EMACS_22_BASE], Jason Rumney, 2007/10/30