From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: Function: window-fringes
Date: Tue, 15 Aug 2006 22:40:27 +0200 [thread overview]
Message-ID: <m364gtka10.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <17633.40013.127540.600671@kahikatea.snap.net.nz> (Nick Roberts's message of "Tue, 15 Aug 2006 22:05:01 +1200")
Nick Roberts <nickrob@snap.net.nz> writes:
> Lisp_Object window;
> {
> struct window *w = decode_window (window);
> ! if (EQ (Vwindow_system, Qnil))
Isn't this better?
if (!FRAME_WINDOW_P (WINDOW_XFRAME (w)))
> ! 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)));
> }
>
>
>
>
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2006-08-15 20:40 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
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 [this message]
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
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=m364gtka10.fsf@kfs-l.imdomain.dk \
--to=storm@cua.dk \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).