From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.help Subject: Re: Display fringe only if not one-window-p? Date: Thu, 30 Sep 2004 17:37:23 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1096580329 27660 80.91.229.6 (30 Sep 2004 21:38:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Sep 2004 21:38:49 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Drew Adams , Emacs-Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 30 23:38:39 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CD8dL-0003Kd-00 for ; Thu, 30 Sep 2004 23:38:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD8jk-0006cY-6r for ged-emacs-devel@m.gmane.org; Thu, 30 Sep 2004 17:45:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CD8ih-0006G0-Ez for emacs-devel@gnu.org; Thu, 30 Sep 2004 17:44:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CD8ie-0006EO-Go for emacs-devel@gnu.org; Thu, 30 Sep 2004 17:44:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CD8ie-0006EL-DW; Thu, 30 Sep 2004 17:44:08 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CD8cA-0002Vj-7K; Thu, 30 Sep 2004 17:37:26 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id E938B8282AB; Thu, 30 Sep 2004 17:37:25 -0400 (EDT) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 5CBDC4AC65D; Thu, 30 Sep 2004 17:37:23 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 40D9D8CA23; Thu, 30 Sep 2004 17:37:23 -0400 (EDT) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Thu, 30 Sep 2004 23:17:22 +0200") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=0, requis 5) X-MailScanner-From: monnier@iro.umontreal.ca 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:27758 gmane.emacs.help:20971 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20971 > It can probably be done with a post-command-hook: > call sit-for to update the display > then scan the fringes of each display line for > truncation bitmaps etc. with fringe-bitmaps-at-pos, Hmm... that would work to detect when a fringe is present-but-empty. How 'bout detecting when a fringe is absent-but-needed? Stefan