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: Customize fringe Date: Thu, 09 May 2002 19:36:24 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: References: <877kmd7bf5.fsf@tc-1-100.kawasaki.gol.ne.jp> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1020965972 1272 127.0.0.1 (9 May 2002 17:39:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 9 May 2002 17:39:32 +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 175rt6-0000KP-00 for ; Thu, 09 May 2002 19:39:32 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 175s1o-0000ag-00 for ; Thu, 09 May 2002 19:48:32 +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 175rsi-0006Am-00; Thu, 09 May 2002 13:39:08 -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 175rqF-0005vK-00; Thu, 09 May 2002 13:36:36 -0400 Original-Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.3/8.12.3) with ESMTP id g49HaW5p004745; Thu, 9 May 2002 19:36:34 +0200 Original-To: Miles Bader In-Reply-To: <877kmd7bf5.fsf@tc-1-100.kawasaki.gol.ne.jp> (Miles Bader's message of "09 May 2002 21:28:30 +0900") Mail-Copies-To: nobody Original-Lines: 41 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2.50 (i686-pc-linux-gnu) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3774 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3774 Miles Bader writes: > It seems rather odd to package this functionality as `fringe-mode', > since a `mode' suggests something that's typicall either on or off. Either you have a fringe or you don't. Same as menubar and toolbar. Size, content, color etc is additional configuration. IMHO. But I see your point. > There are many possible states for fringes, of which quite a few will > probably be popular (some that come to mind are full/full [the default], > 0/full, half/half, and 0/0 [no fringes]), and I don't think that image > we should present to users is of something that is either all there or > not there at all. Hm. When would I want to have half a fringe? What do you think of the new :type below? Hard coding half to 4 may not be perfect, but "half width" isn't a concept otherwise known by the fringe code it seems, so I'm not sure if there is a better solution. "Only right" and "Only left" seems quite useful though, perhaps I'll modify my own behaviour from no fringes to 0/full. :type '(choice (const :tag "Default width" nil) (const :tag "No fringes" 0) (const :tag "Half width" (4 . 4)) (const :tag "Only right" (nil . 0)) (const :tag "Only left" (0 . nil)) (integer :tag "Specific width") (cons :tag "Different left/right size" (integer :tag "Left width") (integer :tag "Right width"))) Of course, the Options->Show/Hide submenu should have a "Fringe" submenu similar to the scroll-bar, with common choices. > [Incidentally, why did your patch preload `fringe'? I shouldn't think > it would be necessary.] If I didn't preload it, my fringes didn't go away when I started emacs. I had to (require 'fringe). Maybe I did something wrong? It looks similar to tool-bar-mode, scroll-bar-mode etc though.