From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: Function: window-fringes Date: Wed, 16 Aug 2006 10:20:29 +1200 Message-ID: <17634.18605.516263.788498@kahikatea.snap.net.nz> References: <17633.5806.596053.708560@kahikatea.snap.net.nz> <17633.40013.127540.600671@kahikatea.snap.net.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1155680648 10113 80.91.229.2 (15 Aug 2006 22:24:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 15 Aug 2006 22:24:08 +0000 (UTC) Cc: emacs-devel@gnu.org, storm@cua.dk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 16 00:24:01 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GD7K5-0004Hb-4c for ged-emacs-devel@m.gmane.org; Wed, 16 Aug 2006 00:23:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GD7K4-0004sS-IH for ged-emacs-devel@m.gmane.org; Tue, 15 Aug 2006 18:23:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GD7Iw-0004O4-Jq for emacs-devel@gnu.org; Tue, 15 Aug 2006 18:22:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GD7Iu-0004LT-Dx for emacs-devel@gnu.org; Tue, 15 Aug 2006 18:22:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GD7Iu-0004Kx-4H for emacs-devel@gnu.org; Tue, 15 Aug 2006 18:22:32 -0400 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GD7Ox-0007lz-EP; Tue, 15 Aug 2006 18:28:47 -0400 Original-Received: from kahikatea.snap.net.nz (p202-124-125-250.snap.net.nz [202.124.125.250]) by viper.snap.net.nz (Postfix) with ESMTP id A877E7A35FA; Wed, 16 Aug 2006 10:22:21 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 6AC30BE3F3; Wed, 16 Aug 2006 10:20:31 +1200 (NZST) Original-To: rms@gnu.org In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.0.50.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:58421 Archived-At: 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. OK. -- Nick http://www.inet.net.nz/~nickrob