[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/xdisp.c
From: |
Kim F . Storm |
Subject: |
[Emacs-diffs] Changes to emacs/src/xdisp.c |
Date: |
Thu, 02 Jun 2005 08:27:06 -0400 |
Index: emacs/src/xdisp.c
diff -c emacs/src/xdisp.c:1.1017 emacs/src/xdisp.c:1.1018
*** emacs/src/xdisp.c:1.1017 Tue May 31 22:46:22 2005
--- emacs/src/xdisp.c Thu Jun 2 12:27:05 2005
***************
*** 8173,8178 ****
--- 8173,8181 ----
static char *mode_line_noprop_buf_end;
static char *mode_line_noprop_ptr;
+ #define MODE_LINE_NOPROP_LEN(start) \
+ ((mode_line_noprop_ptr - mode_line_noprop_buf) - start)
+
static enum {
MODE_LINE_DISPLAY = 0,
MODE_LINE_TITLE,
***************
*** 8212,8218 ****
vector = Fmake_vector (make_number (7), Qnil);
AREF (vector, 0) = make_number (mode_line_target);
! AREF (vector, 1) = make_number (mode_line_noprop_ptr -
mode_line_noprop_buf);
AREF (vector, 2) = mode_line_string_list;
AREF (vector, 3) = mode_line_proptrans_alist;
AREF (vector, 4) = mode_line_string_face;
--- 8215,8221 ----
vector = Fmake_vector (make_number (7), Qnil);
AREF (vector, 0) = make_number (mode_line_target);
! AREF (vector, 1) = make_number (MODE_LINE_NOPROP_LEN (0));
AREF (vector, 2) = mode_line_string_list;
AREF (vector, 3) = mode_line_proptrans_alist;
AREF (vector, 4) = mode_line_string_face;
***************
*** 8263,8269 ****
double the buffer's size. */
if (mode_line_noprop_ptr == mode_line_noprop_buf_end)
{
! int len = mode_line_noprop_ptr - mode_line_noprop_buf;
int new_size = 2 * len * sizeof *mode_line_noprop_buf;
mode_line_noprop_buf = (char *) xrealloc (mode_line_noprop_buf,
new_size);
mode_line_noprop_buf_end = mode_line_noprop_buf + new_size;
--- 8266,8272 ----
double the buffer's size. */
if (mode_line_noprop_ptr == mode_line_noprop_buf_end)
{
! int len = MODE_LINE_NOPROP_LEN (0);
int new_size = 2 * len * sizeof *mode_line_noprop_buf;
mode_line_noprop_buf = (char *) xrealloc (mode_line_noprop_buf,
new_size);
mode_line_noprop_buf_end = mode_line_noprop_buf + new_size;
***************
*** 8330,8336 ****
/* Do we have more than one visible frame on this X display? */
Lisp_Object tail;
Lisp_Object fmt;
! char *title_start;
int len;
struct it it;
int count = SPECPDL_INDEX ();
--- 8333,8340 ----
/* Do we have more than one visible frame on this X display? */
Lisp_Object tail;
Lisp_Object fmt;
! int title_start;
! char *title;
int len;
struct it it;
int count = SPECPDL_INDEX ();
***************
*** 8361,8372 ****
fmt = FRAME_ICONIFIED_P (f) ? Vicon_title_format : Vframe_title_format;
mode_line_target = MODE_LINE_TITLE;
! title_start = mode_line_noprop_ptr;
init_iterator (&it, XWINDOW (f->selected_window), -1, -1,
NULL, DEFAULT_FACE_ID);
display_mode_element (&it, 0, -1, -1, fmt, Qnil, 0);
! len = mode_line_noprop_ptr - title_start;
!
unbind_to (count, Qnil);
/* Set the title only if it's changed. This avoids consing in
--- 8365,8376 ----
fmt = FRAME_ICONIFIED_P (f) ? Vicon_title_format : Vframe_title_format;
mode_line_target = MODE_LINE_TITLE;
! title_start = MODE_LINE_NOPROP_LEN (0);
init_iterator (&it, XWINDOW (f->selected_window), -1, -1,
NULL, DEFAULT_FACE_ID);
display_mode_element (&it, 0, -1, -1, fmt, Qnil, 0);
! len = MODE_LINE_NOPROP_LEN (title_start);
! title = mode_line_noprop_buf + title_start;
unbind_to (count, Qnil);
/* Set the title only if it's changed. This avoids consing in
***************
*** 8376,8383 ****
higher level than this.) */
if (! STRINGP (f->name)
|| SBYTES (f->name) != len
! || bcmp (title_start, SDATA (f->name), len) != 0)
! x_implicitly_set_name (f, make_string (title_start, len), Qnil);
}
}
--- 8380,8387 ----
higher level than this.) */
if (! STRINGP (f->name)
|| SBYTES (f->name) != len
! || bcmp (title, SDATA (f->name), len) != 0)
! x_implicitly_set_name (f, make_string (title, len), Qnil);
}
}
***************
*** 16300,16306 ****
int no_props = INTEGERP (face);
int count = SPECPDL_INDEX ();
Lisp_Object str;
! char *string_start = NULL;
if (NILP (window))
window = selected_window;
--- 16304,16310 ----
int no_props = INTEGERP (face);
int count = SPECPDL_INDEX ();
Lisp_Object str;
! int string_start = 0;
if (NILP (window))
window = selected_window;
***************
*** 16343,16349 ****
mode_line_target = MODE_LINE_NOPROP;
mode_line_string_face_prop = Qnil;
mode_line_string_list = Qnil;
! string_start = mode_line_noprop_ptr;
}
else
{
--- 16347,16353 ----
mode_line_target = MODE_LINE_NOPROP;
mode_line_string_face_prop = Qnil;
mode_line_string_list = Qnil;
! string_start = MODE_LINE_NOPROP_LEN (0);
}
else
{
***************
*** 16352,16359 ****
mode_line_string_face = face;
mode_line_string_face_prop
= (NILP (face) ? Qnil : Fcons (Qface, Fcons (face, Qnil)));
-
- string_start = NULL;
}
push_frame_kboard (it.f);
--- 16356,16361 ----
***************
*** 16362,16369 ****
if (no_props)
{
! len = mode_line_noprop_ptr - string_start;
! str = make_string (string_start, len);
}
else
{
--- 16364,16371 ----
if (no_props)
{
! len = MODE_LINE_NOPROP_LEN (string_start);
! str = make_string (mode_line_noprop_buf + string_start, len);
}
else
{
- [Emacs-diffs] Changes to emacs/src/xdisp.c,
Kim F . Storm <=
- [Emacs-diffs] Changes to emacs/src/xdisp.c, Juri Linkov, 2005/06/06
- [Emacs-diffs] Changes to emacs/src/xdisp.c, Masatake YAMATO, 2005/06/07
- [Emacs-diffs] Changes to emacs/src/xdisp.c, Richard M . Stallman, 2005/06/08
- [Emacs-diffs] Changes to emacs/src/xdisp.c, Kim F . Storm, 2005/06/08
- [Emacs-diffs] Changes to emacs/src/xdisp.c, Masatake YAMATO, 2005/06/10
- [Emacs-diffs] Changes to emacs/src/xdisp.c, Stefan Monnier, 2005/06/13
- [Emacs-diffs] Changes to emacs/src/xdisp.c, Richard M . Stallman, 2005/06/17
- [Emacs-diffs] Changes to emacs/src/xdisp.c, Richard M . Stallman, 2005/06/23
- [Emacs-diffs] Changes to emacs/src/xdisp.c, Juanma Barranquero, 2005/06/24
- [Emacs-diffs] Changes to emacs/src/xdisp.c, Richard M . Stallman, 2005/06/25