From: Nick Roberts <nickrob@snap.net.nz>
Cc: emacs-devel@gnu.org
Subject: Re: Function: window-fringes
Date: Tue, 15 Aug 2006 22:05:01 +1200 [thread overview]
Message-ID: <17633.40013.127540.600671@kahikatea.snap.net.nz> (raw)
In-Reply-To: <m3sljynzpq.fsf@kfs-l.imdomain.dk>
> > On a text-only terminal, I think window-fringes should always return
> > (0 0 nil).
>
> Ok. Pls. fix it.
Well it's a bit of a shot in the dark. In future with multi-tty, where
some windows might be graphic and others text-only, it might be better to
condition on the selected window:
if (WINDOW_FRAME_COLUMN_WIDTH (w) == 1)
But maybe that's not orthodox at the moment.
--
Nick http://www.inet.net.nz/~nickrob
*** window.c 19 Jul 2006 01:29:55 +1200 1.553
--- window.c 15 Aug 2006 21:59:53 +1200
***************
*** 6687,6696 ****
Lisp_Object window;
{
struct window *w = decode_window (window);
! return Fcons (make_number (WINDOW_LEFT_FRINGE_WIDTH (w)),
! Fcons (make_number (WINDOW_RIGHT_FRINGE_WIDTH (w)),
! Fcons ((WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w) ?
! Qt : Qnil), Qnil)));
}
--- 6687,6700 ----
Lisp_Object window;
{
struct window *w = decode_window (window);
! if (EQ (Vwindow_system, Qnil))
! return Fcons (make_number (0), (Fcons (make_number (0),
! (Fcons (Qnil, Qnil)))));
! else
! return Fcons (make_number (WINDOW_LEFT_FRINGE_WIDTH (w)),
! Fcons (make_number (WINDOW_RIGHT_FRINGE_WIDTH (w)),
! Fcons ((WINDOW_HAS_FRINGES_OUTSIDE_MARGINS (w) ?
! Qt : Qnil), Qnil)));
}
next prev parent reply other threads:[~2006-08-15 10:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-15 0:34 Function: window-fringes Nick Roberts
2006-08-15 8:57 ` Kim F. Storm
2006-08-15 10:05 ` Nick Roberts [this message]
2006-08-15 18:40 ` Richard Stallman
2006-08-15 22:20 ` Nick Roberts
2006-08-16 19:27 ` Richard Stallman
2006-08-17 3:34 ` Nick Roberts
2006-08-17 15:19 ` Richard Stallman
2006-08-15 20:40 ` Kim F. Storm
2006-08-15 21:03 ` Chong Yidong
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17633.40013.127540.600671@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=emacs-devel@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.