From: storm@cua.dk (Kim F. Storm)
Cc: help-gnu-emacs@gnu.org, Emacs-Devel <emacs-devel@gnu.org>
Subject: Re: Display fringe only if not one-window-p?
Date: Thu, 30 Sep 2004 23:17:22 +0200 [thread overview]
Message-ID: <m34qlfbgnx.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <MEEKKIABFKKDFJMPIOEBEEHMCGAA.drew.adams@oracle.com> (Drew Adams's message of "Thu, 30 Sep 2004 13:09:21 -0700")
"Drew Adams" <drew.adams@oracle.com> writes:
> I generally use one window per frame, and I automatically resize the frame
> to fit the window (using
> http://www.emacswiki.org/elisp/auto-resize-frames.el).
>
> In Emacs 21 (.3.50), I would like to remove the fringe area for such
> windows, but I don't necessarily want to remove the fringe area when a frame
> has more than one window. Anyone know how to do this easily?
>
> Better: Is there a way (an easy way) to associate a _predicate_ with display
> of things like fringe area - to display the fringe area for a window, for
> instance, only if a line wraps or is truncated? I can of course modify
> display-buffer, but I'm wondering if there is a clean and easier way.
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,
then use set-window-fringes to show/hide the fringes.
>
> Also, I don't see what fringes-outside-margins does. I've changed it to t or
> nil and done set-window-buffer, but I don't seen any visible change.
It is only used if the window has display margins (see set-window-margins).
--
Kim F. Storm http://www.cua.dk
next prev parent reply other threads:[~2004-09-30 21:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-30 20:09 Display fringe only if not one-window-p? Drew Adams
2004-09-30 21:17 ` Kim F. Storm [this message]
2004-09-30 21:37 ` Stefan Monnier
2004-09-30 22:04 ` Kim F. Storm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m34qlfbgnx.fsf@kfs-l.imdomain.dk \
--to=storm@cua.dk \
--cc=emacs-devel@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).