unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Compile failure without window system
@ 2002-02-21  3:27 Alex Plotnick
  2002-02-22  4:30 ` Richard Stallman
  2002-02-22 16:44 ` Stefan Monnier
  0 siblings, 2 replies; 4+ messages in thread
From: Alex Plotnick @ 2002-02-21  3:27 UTC (permalink / raw)


Greetings.

It seems a minor dependency bug was introduced in version 1.714 of 
xdisp.c that prevents compilation without a window system.  The 
following should be sufficient to fix the problem.

--
Alex Plotnick <shrike@netaxs.com>


*** xdisp.c.~1.728.~    Sat Feb 16 07:40:51 2002
--- xdisp.c     Wed Feb 20 21:43:56 2002
***************
*** 8879,8887 ****
--- 8879,8889 ----

           if (FRAME_WINDOW_P (f) || f == sf)
             {
+ #ifdef HAVE_WINDOW_SYSTEM
               if (clear_face_cache_count % 50 == 0
                   && FRAME_WINDOW_P (f))
                 clear_image_cache (f, 0);
+ #endif /* HAVE_WINDOW_SYSTEM */

               /* Mark all the scroll bars to be removed; we'll redeem
                  the ones we want when we redisplay their windows.  */


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Compile failure without window system
  2002-02-21  3:27 Compile failure without window system Alex Plotnick
@ 2002-02-22  4:30 ` Richard Stallman
  2002-02-22 16:44 ` Stefan Monnier
  1 sibling, 0 replies; 4+ messages in thread
From: Richard Stallman @ 2002-02-22  4:30 UTC (permalink / raw)
  Cc: emacs-devel

Thanks.

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Compile failure without window system
  2002-02-21  3:27 Compile failure without window system Alex Plotnick
  2002-02-22  4:30 ` Richard Stallman
@ 2002-02-22 16:44 ` Stefan Monnier
  2002-02-24  8:12   ` Eli Zaretskii
  1 sibling, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2002-02-22 16:44 UTC (permalink / raw)
  Cc: emacs-devel

> Greetings.
> 
> It seems a minor dependency bug was introduced in version 1.714 of 
> xdisp.c that prevents compilation without a window system.  The 
> following should be sufficient to fix the problem.
> 
> --
> Alex Plotnick <shrike@netaxs.com>
> 
> 
> *** xdisp.c.~1.728.~    Sat Feb 16 07:40:51 2002
> --- xdisp.c     Wed Feb 20 21:43:56 2002
> ***************
> *** 8879,8887 ****
> --- 8879,8889 ----
> 
>            if (FRAME_WINDOW_P (f) || f == sf)
>              {
> + #ifdef HAVE_WINDOW_SYSTEM
>                if (clear_face_cache_count % 50 == 0
>                    && FRAME_WINDOW_P (f))
>                  clear_image_cache (f, 0);
> + #endif /* HAVE_WINDOW_SYSTEM */
> 
>                /* Mark all the scroll bars to be removed; we'll redeem
>                   the ones we want when we redisplay their windows.  */

IIUC, the error was that clear_image_cache does not exist if
compiled without a window system.  Wouldn't it be better to
define a dummy clear_image_cache in that case, to keep the xdisp.c
code a bit cleaner ?


	Stefan


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Compile failure without window system
  2002-02-22 16:44 ` Stefan Monnier
@ 2002-02-24  8:12   ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2002-02-24  8:12 UTC (permalink / raw)
  Cc: Alex Plotnick, emacs-devel


On Fri, 22 Feb 2002, Stefan Monnier wrote:
> 
> > + #ifdef HAVE_WINDOW_SYSTEM
> >                if (clear_face_cache_count % 50 == 0
> >                    && FRAME_WINDOW_P (f))
> >                  clear_image_cache (f, 0);
> > + #endif /* HAVE_WINDOW_SYSTEM */
> > 
> >                /* Mark all the scroll bars to be removed; we'll redeem
> >                   the ones we want when we redisplay their windows.  */
> 
> IIUC, the error was that clear_image_cache does not exist if
> compiled without a window system.  Wouldn't it be better to
> define a dummy clear_image_cache in that case, to keep the xdisp.c
> code a bit cleaner ?

I agree that a dummy version would be cleaner.

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-02-24  8:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-21  3:27 Compile failure without window system Alex Plotnick
2002-02-22  4:30 ` Richard Stallman
2002-02-22 16:44 ` Stefan Monnier
2002-02-24  8:12   ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).