From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Function: window-fringes Date: Tue, 15 Aug 2006 14:40:18 -0400 Message-ID: References: <17633.5806.596053.708560@kahikatea.snap.net.nz> <17633.40013.127540.600671@kahikatea.snap.net.nz> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1155667270 30701 80.91.229.2 (15 Aug 2006 18:41:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 15 Aug 2006 18:41:10 +0000 (UTC) Cc: emacs-devel@gnu.org, storm@cua.dk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 15 20:41:05 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 1GD3qF-000243-6v for ged-emacs-devel@m.gmane.org; Tue, 15 Aug 2006 20:40:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GD3qE-0007rO-IQ for ged-emacs-devel@m.gmane.org; Tue, 15 Aug 2006 14:40:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GD3pv-0007gT-S0 for emacs-devel@gnu.org; Tue, 15 Aug 2006 14:40:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GD3pu-0007ef-Uj for emacs-devel@gnu.org; Tue, 15 Aug 2006 14:40:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GD3pu-0007eP-PO for emacs-devel@gnu.org; Tue, 15 Aug 2006 14:40:22 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GD3w0-0006Mb-Fi for emacs-devel@gnu.org; Tue, 15 Aug 2006 14:46:40 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1GD3pq-0007Zn-Vj; Tue, 15 Aug 2006 14:40:19 -0400 Original-To: Nick Roberts In-reply-to: <17633.40013.127540.600671@kahikatea.snap.net.nz> (message from Nick Roberts on Tue, 15 Aug 2006 22:05:01 +1200) 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:58408 Archived-At: ! 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? 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. By the way, please put the ? operator (like all infix operators) after the line break, not before.