unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan D." <jan.h.d@swipnet.se>
Cc: Jan Nieuwenhuizen <janneke@gnu.org>, "Kim F. Storm" <storm@cua.dk>
Subject: Geometry interpretation change? (was: FIX#3: byte-code: Wrong type argument: number-or-marker-p, (+ -21))
Date: Sat, 6 Dec 2003 17:14:26 +0100	[thread overview]
Message-ID: <434F93ED-2807-11D8-8B75-00039363E640@swipnet.se> (raw)
In-Reply-To: <m3r8038inn.fsf_-_@appel.flower>


Jan Nieuwenhuizen wrote:

> storm@cua.dk (Kim F. Storm) writes:
>
>>> but I'm not at all sure about the right arithmetic for (+/- INT) ...
>>
>> Me neither...   What do others think about this?
>
> So here's a patch #3 to try.

I am now conviced this can't be solved in Lisp with the information
available.  Additional information could be made available to lisp,
but that does not seem right as this is fundamentally an X problem,
Mac and W32 does not have window managers.

Anyway, I have a solution I'd like to test some more and check in
next weekend if it is OK (still away during the week).  But it
makes a change on how the geometry height is interpreted.  Now
a height of 24 means 24 - tool bar height - menu bar height.  I'd like
it to be that if you disable both the menu bar and the tool bar, you
get 24, and external menu bar and/or tool bar does not count.

Thus, for GTK you would always get 24 (external tool and menu bar).
For Lucid, you would get 24 - tool bar height (external menu bar).
For no toolkit version you would get 24 - tool bar height - menu bar
height.
If you have disabled both menu and tool bar you always get 24.

Does this sound reasonable?

One advantage of the purposed solution is that geometry -0-0 will always
end up in the lower right corner, regardless if you have removed tool
or menu bar in .emacs.  Also when you say
(set-frame-parameter nil 'top '(- 0))
the frame does end up at the bottom.  Ditto for left.

I don't know if this will have any impact on W32 or Mac, probably not.

	Jan D.

  parent reply	other threads:[~2003-12-06 16:14 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-12 15:33 byte-code: Wrong type argument: number-or-marker-p, (+ -21) Jan Nieuwenhuizen
2003-11-14 22:47 ` Jan D.
2003-11-17 10:15   ` FIX: " Jan Nieuwenhuizen
2003-11-17 14:06     ` Kim F. Storm
2003-11-17 13:43       ` Jan Nieuwenhuizen
2003-11-19 13:26         ` Jan Nieuwenhuizen
2003-11-19 17:07           ` Kim F. Storm
2003-11-19 21:07             ` Jan Nieuwenhuizen
2003-11-19 23:46               ` Kim F. Storm
2003-11-20  9:59                 ` FIX#3: " Jan Nieuwenhuizen
2003-11-23 21:32                   ` Jan D.
2003-12-06 16:14                   ` Jan D. [this message]
2003-12-07  0:57                     ` Geometry interpretation change? (was: FIX#3: byte-code: Wrong type argument: number-or-marker-p, (+ -21)) 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=434F93ED-2807-11D8-8B75-00039363E640@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=janneke@gnu.org \
    --cc=storm@cua.dk \
    /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).