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: Wed, 16 Aug 2006 15:27:20 -0400 Message-ID: References: <17633.5806.596053.708560@kahikatea.snap.net.nz> <17633.40013.127540.600671@kahikatea.snap.net.nz> <17634.18605.516263.788498@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 1155756496 8765 80.91.229.2 (16 Aug 2006 19:28:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 16 Aug 2006 19:28:16 +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 21:28:16 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 1GDR3Z-0003yU-Pj for ged-emacs-devel@m.gmane.org; Wed, 16 Aug 2006 21:28:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GDR3Z-0005iR-6l for ged-emacs-devel@m.gmane.org; Wed, 16 Aug 2006 15:28:01 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GDR2w-0005SL-8G for emacs-devel@gnu.org; Wed, 16 Aug 2006 15:27:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GDR2v-0005Rm-Nw for emacs-devel@gnu.org; Wed, 16 Aug 2006 15:27:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GDR2v-0005Ra-JO for emacs-devel@gnu.org; Wed, 16 Aug 2006 15:27:21 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GDR9F-00069K-IR for emacs-devel@gnu.org; Wed, 16 Aug 2006 15:33:53 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1GDR2u-00086d-BM; Wed, 16 Aug 2006 15:27:20 -0400 Original-To: Nick Roberts In-reply-to: <17634.18605.516263.788498@kahikatea.snap.net.nz> (message from Nick Roberts on Wed, 16 Aug 2006 10:20:29 +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:58449 Archived-At: 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). Judging from reading the code, I don't think that the values of left-fringe-width and right-fringe-width have any effect on the value of WINDOW_LEFT_FRINGE_WIDTH, on a tty frame. I don't think that trying to specify the frame parameter has any effect on the frame fringe width, on a tty frame. Have you actually observed that either of these actions has such an effect? It looks like set-window-fringes really can set the frame width slots. I think that is the bug. So let's change it not to set them on a tty. With the following change, does any of this problem persist? *** window.c 18 Jul 2006 09:41:15 -0400 1.553 --- window.c 16 Aug 2006 12:47:34 -0400 *************** *** 6657,6662 **** --- 6657,6666 ---- if (!NILP (right_width)) CHECK_NATNUM (right_width); + /* Do nothing on a tty. */ + if (! FRAME_WINDOW_P (f)) + return Qnil; + if (!EQ (w->left_fringe_width, left_width) || !EQ (w->right_fringe_width, right_width) || !EQ (w->fringes_outside_margins, outside_margins))