unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dr Rainer Woitok <rainer.woitok@gmail.com>
To: Help-Gnu-Emacs@Gnu.Org
Subject: Emacs "-geometry" command line option no longer working?
Date: Sun, 29 Oct 2023 18:12:32 +0100	[thread overview]
Message-ID: <25918.37504.272669.196715@woitok.gmail.com> (raw)

Greetings,

after my  recent upgrade  from Emacs 28.2  to 29.1  the "left" and "top"
parts of Emacs'  "-geometry" command line option  are no longer working.
Emacs uses a varying value for "left"  and 0 for "top".  My file "early-
init.el" (which worked flawlessly with Emacs 28.2)  contains the follow-
ing:

(let* ((g (                    split-string     (getenv "_EMACS_SIZE_") "x"))
       (o (*    7             (string-to-number (getenv "_WINDOW_OFFSET_"))))
       (p (list (cons 'font-parameter           (getenv "_EMACS_FONT_"))
                (cons 'height (string-to-number (cadr g)))
                (cons 'top    (string-to-number (getenv "_WINDOW_TOP_")))
                (cons 'width  (string-to-number (car  g)))

                '(horizontal-scroll-bars .   nil)
                '(left-fringe            .     0)
                '(menu-bar-lines         .     0)
                '(right-fringe           .   nil)
                '(tab-bar-lines          .     0)
                '(tool-bar-lines         .     0)
                '(user-position          .     t)
                '(vertical-scroll-bars   . right)
      ))   )

      (setq default-frame-alist (cons (cons 'left o) p)
            initial-frame-alist                      p
)     )

where "top"  evaluates to 6 and  "left" is left unspecified  in variable
"initial-frame-alist",  and under Emacs 28.2 was taken from the "-geome-
try" specification on the command line.   What am I missing?

Sincerely,
  Rainer



             reply	other threads:[~2023-10-29 17:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-29 17:12 Dr Rainer Woitok [this message]
2023-10-30  0:21 ` Emacs "-geometry" command line option no longer working? Po Lu
2023-10-30  9:49   ` Dr Rainer Woitok
2023-10-30  9:53     ` Po Lu

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=25918.37504.272669.196715@woitok.gmail.com \
    --to=rainer.woitok@gmail.com \
    --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).