aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-04-13 07:47:27 +0000
committerRichard M. Stallman1995-04-13 07:47:27 +0000
commit836d2cde812aaf7859e56d66f0713bf2746cb939 (patch)
treee36a03ddb22bbbd0139bdb0a44417e0d37fb0df4 /src
parentb58912b7d938af0b447e8545ec0aac702d114935 (diff)
downloademacs-836d2cde812aaf7859e56d66f0713bf2746cb939.tar.gz
emacs-836d2cde812aaf7859e56d66f0713bf2746cb939.zip
(Fframe_or_buffer_changed_p): Ignore buffers whose names start with space.
(init_desired_glyphs): New function.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index d2864d44481..60942dadba0 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -502,6 +502,20 @@ clear_frame_records (frame)
502 bzero (FRAME_CURRENT_GLYPHS (frame)->enable, FRAME_HEIGHT (frame)); 502 bzero (FRAME_CURRENT_GLYPHS (frame)->enable, FRAME_HEIGHT (frame));
503} 503}
504 504
505/* Clear out all display lines for a coming redisplay. */
506
507void
508init_desired_glyphs (frame)
509 register FRAME_PTR frame;
510{
511 register struct frame_glyphs *desired_glyphs = FRAME_DESIRED_GLYPHS (frame);
512 int vpos;
513 int height = FRAME_HEIGHT (frame);
514
515 for (vpos = 0; vpos < height; vpos++)
516 desired_glyphs->enable[vpos] = 0;
517}
518
505/* Prepare to display on line VPOS starting at HPOS within it. */ 519/* Prepare to display on line VPOS starting at HPOS within it. */
506 520
507void 521void
@@ -1887,6 +1901,7 @@ DEFUN ("frame-or-buffer-changed-p", Fframe_or_buffer_changed_p,
1887 Sframe_or_buffer_changed_p, 0, 0, 0, 1901 Sframe_or_buffer_changed_p, 0, 0, 0,
1888 "Return non-nil if the frame and buffer state appears to have changed.\n\ 1902 "Return non-nil if the frame and buffer state appears to have changed.\n\
1889The state variable is an internal vector containing all frames and buffers,\n\ 1903The state variable is an internal vector containing all frames and buffers,\n\
1904aside from buffers whose names start with space,\n\
1890along with the buffers' read-only and modified flags, which allows a fast\n\ 1905along with the buffers' read-only and modified flags, which allows a fast\n\
1891check to see whether the menu bars might need to be recomputed.\n\ 1906check to see whether the menu bars might need to be recomputed.\n\
1892If this function returns non-nil, it updates the internal vector to reflect\n\ 1907If this function returns non-nil, it updates the internal vector to reflect\n\
@@ -1907,6 +1922,9 @@ the current state.\n")
1907 for (tail = Vbuffer_alist; CONSP (tail); tail = XCONS (tail)->cdr) 1922 for (tail = Vbuffer_alist; CONSP (tail); tail = XCONS (tail)->cdr)
1908 { 1923 {
1909 buf = XCONS (XCONS (tail)->car)->cdr; 1924 buf = XCONS (XCONS (tail)->car)->cdr;
1925 /* Ignore buffers that aren't included in buffer lists. */
1926 if (XSTRING (XBUFFER (buf)->name)->data[0] == ' ')
1927 continue;
1910 if (!EQ (*vecp++, buf)) 1928 if (!EQ (*vecp++, buf))
1911 goto changed; 1929 goto changed;
1912 if (!EQ (*vecp++, XBUFFER (buf)->read_only)) 1930 if (!EQ (*vecp++, XBUFFER (buf)->read_only))
@@ -1934,6 +1952,9 @@ the current state.\n")
1934 for (tail = Vbuffer_alist; CONSP (tail); tail = XCONS (tail)->cdr) 1952 for (tail = Vbuffer_alist; CONSP (tail); tail = XCONS (tail)->cdr)
1935 { 1953 {
1936 buf = XCONS (XCONS (tail)->car)->cdr; 1954 buf = XCONS (XCONS (tail)->car)->cdr;
1955 /* Ignore buffers that aren't included in buffer lists. */
1956 if (XSTRING (XBUFFER (buf)->name)->data[0] == ' ')
1957 continue;
1937 *vecp++ = buf; 1958 *vecp++ = buf;
1938 *vecp++ = XBUFFER (buf)->read_only; 1959 *vecp++ = XBUFFER (buf)->read_only;
1939 *vecp++ = Fbuffer_modified_p (buf); 1960 *vecp++ = Fbuffer_modified_p (buf);
@@ -2290,8 +2311,7 @@ Emacs was built without floating point support.\n\
2290 it does the redisplay. 2311 it does the redisplay.
2291 2312
2292 It's also much like Fsit_for, except that it can be used for 2313 It's also much like Fsit_for, except that it can be used for
2293 waiting for input as well. One differnce is that sit_for 2314 waiting for input as well. */
2294 does not call prepare_menu_bars; Fsit_for does call that. */
2295 2315
2296Lisp_Object 2316Lisp_Object
2297sit_for (sec, usec, reading, display) 2317sit_for (sec, usec, reading, display)