[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Function: window-fringes

From: Nick Roberts
Subject: Re: Function: window-fringes
Date: Wed, 16 Aug 2006 10:20:29 +1200

Richard Stallman writes:
 >     !   if (EQ (Vwindow_system, Qnil))
 >     !     return Fcons (make_number (0), (Fcons (make_number (0),
 >     !                                           (Fcons (Qnil, Qnil)))));
 >     !   else    
 >     !     return Fcons (make_number (WINDOW_LEFT_FRINGE_WIDTH (w)),
 >     !                  Fcons (make_number (WINDOW_RIGHT_FRINGE_WIDTH (w)),
 >     !                         Fcons ((WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w) 
 > ?
 >     !                                 Qt : Qnil), Qnil)));
 > What causes the existing code to return anything other than (0 0 nil)
 > on a tty?

You can set it with set-window-fringes, directly through the variables
left-fringe-width or right-fringe-width and probably with
modify-frame-parameters (or specifying frame parameters).

 >            It seems to me that if that happens, it indicates a bug.
 > Rather than paper over the bug's effects in this one spot, we should
 > see what causes the bug.  Then we could perhaps paper it over anyway,
 > or perhaps fix it.

I think this is the right change.  You can't stop a user from changing variable
values but window-fringes purports to return actual window attributes, not the
value of some variables

 > By the way, please put the ? operator (like all infix operators)
 > after the line break, not before.


Nick                                           http://www.inet.net.nz/~nickrob

reply via email to

[Prev in Thread] Current Thread [Next in Thread]