unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Angelo Graziosi <angelo.graziosi@alice.it>, 26537@debbugs.gnu.org
Subject: bug#26537: Problems with Emacs frame (GTK)
Date: Mon, 17 Apr 2017 10:17:17 +0200	[thread overview]
Message-ID: <58F47A0D.8030308@gmx.at> (raw)
In-Reply-To: <f7da4977-2e57-d5d2-f6da-5e83f7e76c88@alice.it>

 > I had installed the sr-speedbar package from MELPA and configured
 > Emacs so that it opens a frame with a window for text of about 80
 > characters and a sr-speedbar window of about 30 characters (see the
 > init.el file in the attachment, 80+30 = 110).

It would be nice if you were able to excerpt the sr-speedbar
‘split-window’ call so we could distill a more simple scenario.  IIUC
this should be something like (split-window -n t) where the n should
evaluate to 30 in your case.

 > Start Emacs-2017-03-10 [1] without desktop file. The result is in
 > screen-no-desktop.png, and don't looks ok to me.

So let's look into this first.  Do you mean the speedbar window should
be wider?  In any case do M-: (window--dump-frame) and post the result
which you can find in the buffer *window-frame-dump*.

 > Anyway, now visit a file. For example
 >
 >    C-x C-f ~/report_bug.txt
 >
 > and quit Emacs saving the desktop. Restart Emacs. It looks as expected (screen-with-desktop-OK.png)
 >
 >    window      width 79 characters (from column 0 to 78)
 >    sr-speedbar width 27 characters
 >
 >
 > Repeat with Emacs-2017-03-27 [2]. Same results.
 >
 > Now try with Emacs-2017-04-14 [3] or 2017-04-16 [4]. It doesn't look as expected (screen-with-desktop-NOT_OK.png)
 >
 >    window      width 68 characters (from column 0 to 67)
 >    sr-speedbar width 38 characters
 >
 > (Notice: 79+27 = 68+38 = 106). Whatever I try, the frame does not respect what is written in the init file.

Instead of "init file" I suppose you mean "desktop" here, i.e., the file
written by desktop.el.  Right?  Or do you mean something like "what the
init file says should override what the desktop file says" (I'm not very
familiar with desktop)?  In either case the desktop file is the one you
attached.  Right?

In any case please post here the results of ‘window--dump-frame’ for

(1) the screen-with-desktop-OK frame

(2) the frame _before_ desktop saved it in the
     screen-with-desktop-NOT_OK scenario, and

(3) the frame _after_ desktop restored it in the
     screen-with-desktop-NOT_OK  scenario.

Note that each invocation of `window--dump-frame' will overwrite
*window-frame-dump*.  Please add the identifiers from your nomenclature
(screen-no-desktop, screen-with-desktop-OK, screen-with-desktop-NOT_OK)
in each case, with something like screen-with-desktop-before-saving or
so for (2).

 > Notice this problem occurs only with the (GTK) builds on GNU/Linux. It
 > works as expected with Windows and OSX builds.

Just a simple step: Does setting the variable `x-gtk-use-window-move' to
nil change anything in your scenario?  I doubt it will but who knows.

martin






  reply	other threads:[~2017-04-17  8:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-16 21:52 bug#26537: Problems with Emacs frame (GTK) Angelo Graziosi
2017-04-17  8:17 ` martin rudalics [this message]
2017-04-17 10:44   ` Angelo Graziosi
2017-04-17 12:06     ` martin rudalics
2017-04-17 12:41   ` Angelo Graziosi
2017-04-17 13:54     ` martin rudalics
2017-04-17 14:19   ` Angelo Graziosi
2017-04-17 15:43     ` martin rudalics
2017-04-17 20:31       ` Angelo Graziosi
2017-04-18  8:07         ` martin rudalics
2017-04-18 11:23           ` Angelo Graziosi
2017-04-18 17:27             ` martin rudalics
2017-04-17 20:38       ` Angelo Graziosi

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=58F47A0D.8030308@gmx.at \
    --to=rudalics@gmx.at \
    --cc=26537@debbugs.gnu.org \
    --cc=angelo.graziosi@alice.it \
    /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).