From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.devel Subject: Re: Fringes again Date: Sun, 26 May 2002 01:15:00 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: References: <877klyie6t.fsf@tc-1-100.kawasaki.gol.ne.jp> <87661e2ytn.fsf@tc-1-100.kawasaki.gol.ne.jp> <5xsn4hdudc.fsf@kfs2.cua.dk> <5xk7pr25fc.fsf@kfs2.cua.dk> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1022368697 10025 127.0.0.1 (25 May 2002 23:18:17 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 25 May 2002 23:18:17 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17Bknh-0002ba-00 for ; Sun, 26 May 2002 01:18:17 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17Bl4H-0005fh-00 for ; Sun, 26 May 2002 01:35:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17BkoC-0005ig-00; Sat, 25 May 2002 19:18:48 -0400 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17BknK-0005cO-00 for ; Sat, 25 May 2002 19:17:54 -0400 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.3/8.12.3) with ESMTP id g4PNHoWa010024; Sun, 26 May 2002 01:17:53 +0200 Original-To: storm@cua.dk (Kim F. Storm) Mail-Copies-To: nobody In-Reply-To: <5xk7pr25fc.fsf@kfs2.cua.dk> (storm@cua.dk's message of "26 May 2002 01:06:47 +0200") Original-Lines: 28 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2.50 (i686-pc-linux-gnu) X-Face: 1Yn@M+tp9bHO[8c_KMq4EAehxF;z,'j|yrivOiG+mxk$hnZac61A{@h6 List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:4387 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4387 storm@cua.dk (Kim F. Storm) writes: >> >> Right, but how do you programmatically calculate that? >> > >> > Something like >> > >> > (/ (* (/ (+ (* 2 8) (frame-char-width) -1) >> > (frame-char-width)) >> > (frame-char-width)) >> > 2) >> >> Hm. Will this work for e.g. `default-frame-alist'? It need to have >> integers, not expressions that can vary depending on the font or >> display (consider multi-head X where the screens has different >> resolutions, `frame-char-width' would probably return different values >> depending on which screen it is on). It doesn't look very reliable to >> calculate "half fringe width" (if there isn't something better than >> the above), so perhaps the "half width" option should be removed. >> Opinions? > > IMO, reducing the fringe width below 8 pixels really doesn't make sense. > But if you want the minimum fringe width (i.e. half the width of the > default face width), simply set both widths to 1. Setting it to 1 makes good sense, I tried it and I like it (even better than none at all). It only wastes one pixel, but I notice when the gdb arrow and other bitmaps is there. I added it as a new fringe style: "minimal". I'll keep the "half" style as someone asked for it.