unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Robert Marshall <robert@capuchin.co.uk>
Cc: 17046@debbugs.gnu.org
Subject: bug#17046: 24.3.50; On startup emacs frame has no minibuffer or windows decorations
Date: Mon, 24 Mar 2014 16:41:09 +0100	[thread overview]
Message-ID: <CAAeL0SQPgHvsbpzFEk6FbQY4f6yw7CwKYR3zxgsBaYRoSVu4FQ@mail.gmail.com> (raw)
In-Reply-To: <21296.19864.25566.342047@capuchin.co.uk>

[-- Attachment #1: Type: text/plain, Size: 449 bytes --]

On Mon, Mar 24, 2014 at 4:22 PM, Robert Marshall <robert@capuchin.co.uk> wrote:

> With bug:
>
> #<frame emacs@poulenc 0x8725ae0> was :reused

So it doesn't depend on the window-state.

If you're not yet bored to death, please try with the attached .el
file. It should behave as in the previous cases, but I want to see the
real, final frame parameter list of the reused (buggy) frame and the
created (correct) one.

(Thanks for your patience, BTW)

[-- Attachment #2: bug17046-c.el --]
[-- Type: application/octet-stream, Size: 3698 bytes --]

;;; bug17046.el with two windows ;;;

(require 'frameset)

(defun frameset--restore-frame (parameters window-state filters force-onscreen)
  (let* ((fullscreen (cdr (assq 'fullscreen parameters)))
	 (lines (assq 'tool-bar-lines parameters))
	 (filtered-cfg (frameset-filter-params parameters filters nil))
	 (display (cdr (assq 'display filtered-cfg))) ;; post-filtering
	 alt-cfg frame)

    (setq filtered-cfg (assq-delete-all 'tool-bar-lines filtered-cfg))
    (push '(tool-bar-lines . 0) filtered-cfg)

    (setq frame (and frameset--reuse-list
		     (frameset--reuse-frame display filtered-cfg)))
    (if frame
	(puthash frame :reused frameset--action-map)
      (setq frame (make-frame-on-display display
					 (cons '(visibility)
					       (frameset--initial-params filtered-cfg))))
      (puthash frame :created frameset--action-map))
    (let ((sep (make-string 80 ?-)))
      (message "%s\n%S was %s with:\n  %s\n%s\n"
	       sep frame (gethash frame frameset--action-map)
	       (mapconcat (lambda (o) (format "%s" o)) (sort (frame-parameters frame)
							(lambda (a b) (string< (car a) (car b))))
			  "\n  ")
	       sep))

    (modify-frame-parameters frame
			     (if (eq (frame-parameter frame 'fullscreen) fullscreen)
				 (assq-delete-all 'fullscreen filtered-cfg)
			       filtered-cfg))

    (when (and force-onscreen
	       (not (eq (frame-parameter frame 'visibility) 'icon)))
      (frameset-move-onscreen frame force-onscreen))

    (when lines (push lines alt-cfg))
    (when alt-cfg (modify-frame-parameters frame alt-cfg))
    frame))

(read-event nil nil 1)
(setq desktop-saved-frameset
      [frameset
       1
       (21291 19570 712781 440000)
       (desktop . "206")
       "robert@poulenc" nil nil
       (( ;; ********** FRAME 1
	 (
	  (frameset--id . "DA9D-E03E-DF32-EAB7")
	  (frameset--mini t . t)
	  (minibuffer . t)
	  (visibility . t)
;; ******   Comment this next line to prevent the bug appearing
	  (display . ":0")
	  (height . 30)
	  (width . 120))
	 ;; ********** WINDOW TREE 1
	 ((min-height . 8)
	  (min-width . 10)
	  (min-height-ignore . 4)
	  (min-width-ignore . 6)
	  (min-height-safe . 2)
	  (min-width-safe . 2)
	  (min-pixel-height . 144)
	  (min-pixel-width . 80)
	  (min-pixel-height-ignore . 72)
	  (min-pixel-width-ignore . 48)
	  (min-pixel-height-safe . 36)
	  (min-pixel-width-safe . 16))
	 vc
	 (pixel-width . 992)
	 (pixel-height . 522)
	 (total-width . 124)
	 (total-height . 29)
	 (normal-height . 1.0)
	 (normal-width . 1.0)
	 (combination-limit)
	 (leaf (pixel-width . 992)
	       (pixel-height . 275)
	       (total-width . 124)
	       (total-height . 15)
	       (normal-height . 0.5172413793103448)
	       (normal-width . 1.0)
	       (buffer "*scratch*" (selected . t)
		       (hscroll . 0)
		       (fringes 8 8 nil)
		       (margins nil)
		       (scroll-bars 16 2 t nil)
		       (vscroll . 0)
		       (dedicated)
		       (point . 20906)
		       (start . 20858)))
	 (leaf (last . t)
	       (pixel-width . 992)
	       (pixel-height . 247)
	       (total-width . 124)
	       (total-height . 14)
	       (normal-height . 0.4827586206896552)
	       (normal-width . 1.0)
	       (buffer "*Messages*" (selected)
		       (hscroll . 0)
		       (fringes 8 8 nil)
		       (margins nil)
		       (scroll-bars 16 2 t nil)
		       (vscroll . 0)
		       (dedicated)
		       (point . 3612)
		       (start . 3165)))))])

(frameset-restore desktop-saved-frameset
                  :reuse-frames t
;		  :force-display t
                  :force-onscreen t
		  :cleanup-frames t)

;;; end ;;;

  reply	other threads:[~2014-03-24 15:41 UTC|newest]

Thread overview: 135+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-20  9:08 bug#17046: 24.3.50; On startup emacs frame has no minibuffer or windows decorations Robert Marshall
2014-03-20  9:52 ` martin rudalics
2014-03-20 12:22   ` Robert Marshall
2014-03-20 13:08     ` martin rudalics
2014-03-20 14:28       ` Robert Marshall
2014-03-20 19:23         ` martin rudalics
2014-03-20 20:25           ` Robert Marshall
2014-03-20 20:37             ` Juanma Barranquero
2014-03-20 20:51               ` Robert Marshall
2014-03-20 20:59                 ` Juanma Barranquero
2014-03-21  8:02               ` martin rudalics
2014-03-21  8:03             ` martin rudalics
     [not found]               ` <21292.6903.499178.348@capuchin.co.uk>
2014-03-21 15:07                 ` martin rudalics
2014-03-21 16:53                   ` Robert Marshall
2014-03-21 17:42                     ` martin rudalics
2014-03-22  1:53                       ` Juanma Barranquero
2014-03-22  9:40                         ` martin rudalics
2014-03-22 11:35                           ` Robert Marshall
2014-03-22 13:44                             ` martin rudalics
2014-03-22 14:02                               ` Juanma Barranquero
2014-03-22 14:20                                 ` martin rudalics
2014-03-22 14:33                                   ` Juanma Barranquero
2014-03-22 15:20                                     ` martin rudalics
2014-03-22 15:26                                       ` Juanma Barranquero
2014-03-22 15:33                                         ` martin rudalics
2014-03-22 16:28                                           ` Robert Marshall
2014-03-22 16:38                                             ` Juanma Barranquero
2014-03-22 17:00                                               ` Robert Marshall
2014-03-22 17:34                                                 ` Juanma Barranquero
2014-03-22 18:36                                               ` Robert Marshall
2014-03-22 19:09                                                 ` Juanma Barranquero
2014-03-22 19:18                                                 ` martin rudalics
2014-03-22 19:22                                                   ` Juanma Barranquero
2014-03-22 18:43                                             ` martin rudalics
2014-03-22 19:17                                               ` Juanma Barranquero
2014-03-22 19:34                                                 ` martin rudalics
2014-03-22 20:17                                                   ` Robert Marshall
2014-03-22 21:17                                                     ` Juanma Barranquero
2014-03-22 21:35                                                       ` martin rudalics
2014-03-22 21:35                                                     ` martin rudalics
2014-03-22 21:42                                                       ` Juanma Barranquero
2014-03-22 22:16                                                         ` Robert Marshall
2014-03-23 10:11                                                           ` martin rudalics
2014-03-23 11:14                                                             ` Robert Marshall
2014-03-23 11:39                                                               ` martin rudalics
2014-03-23 12:13                                                                 ` Robert Marshall
2014-03-23 13:39                                                                 ` Robert Marshall
2014-03-23 13:51                                                                   ` martin rudalics
2014-03-23 14:11                                                                     ` martin rudalics
2014-03-23 14:30                                                                     ` Robert Marshall
2014-03-23 14:55                                                                       ` martin rudalics
2014-03-23 15:03                                                                         ` martin rudalics
2014-03-23 15:34                                                                           ` Robert Marshall
2014-03-23 15:17                                                                         ` Robert Marshall
2014-03-23 15:28                                                                           ` martin rudalics
2014-03-23 16:10                                                                             ` Robert Marshall
2014-03-23 16:37                                                                               ` Juanma Barranquero
2014-03-23 16:57                                                                                 ` martin rudalics
2014-03-23 17:19                                                                                   ` martin rudalics
2014-03-23 17:07                                                                                 ` Robert Marshall
2014-03-23 16:50                                                                               ` martin rudalics
2014-03-23 17:11                                                                                 ` Robert Marshall
2014-03-23 17:28                                                                                   ` martin rudalics
2014-03-23 17:43                                                                                     ` Robert Marshall
2014-03-23 18:09                                                                                       ` martin rudalics
2014-03-23 19:06                                                                                         ` Robert Marshall
2014-03-23 19:11                                                                                       ` Juanma Barranquero
2014-03-23 19:32                                                                                         ` Robert Marshall
2014-03-23 20:17                                                                                           ` Juanma Barranquero
2014-03-23 21:01                                                                                             ` Robert Marshall
2014-03-23 21:08                                                                                               ` Juanma Barranquero
2014-03-23 21:17                                                                                           ` Juanma Barranquero
2014-03-23 21:35                                                                                             ` Robert Marshall
2014-03-24  0:13                                                                                               ` Juanma Barranquero
2014-03-24  8:09                                                                                                 ` Robert Marshall
2014-03-24 11:32                                                                                                   ` Juanma Barranquero
2014-03-24 11:36                                                                                                     ` Juanma Barranquero
2014-03-24 12:03                                                                                                       ` Robert Marshall
2014-03-24 12:56                                                                                                         ` Juanma Barranquero
2014-03-24 13:23                                                                                                           ` Robert Marshall
2014-03-24 14:57                                                                                                             ` Juanma Barranquero
2014-03-24 15:22                                                                                                               ` Robert Marshall
2014-03-24 15:41                                                                                                                 ` Juanma Barranquero [this message]
2014-03-24 16:09                                                                                                                   ` Robert Marshall
2014-03-24 16:16                                                                                                                     ` Juanma Barranquero
2014-03-24 17:13                                                                                                                       ` Robert Marshall
2014-03-24 17:24                                                                                                                         ` Juanma Barranquero
2014-03-24 18:48                                                                                                                           ` Robert Marshall
     [not found]                                                                                                                             ` <CAAeL0SQ=mwj+FAf_vR8F5-9bdFw0FcejGFvfNKAAPNwZHZruHw@mail.gmail.com>
2014-03-24 21:33                                                                                                                               ` Robert Marshall
2014-03-24 21:52                                                                                                                                 ` Juanma Barranquero
2014-03-24 22:43                                                                                                                                   ` Robert Marshall
2014-03-24 23:37                                                                                                                                     ` Juanma Barranquero
2014-03-25  7:12                                                                                                                                       ` Robert Marshall
2014-03-25 10:40                                                                                                                                         ` Juanma Barranquero
2014-03-25 11:09                                                                                                                                           ` Robert Marshall
2014-03-25 12:32                                                                                                                                             ` Juanma Barranquero
2014-03-25 14:57                                                                                                                                               ` martin rudalics
2014-03-25 15:48                                                                                                                                                 ` Eli Zaretskii
2014-03-26 16:34                                                                                                                                                   ` Juanma Barranquero
2014-03-26 17:08                                                                                                                                                     ` Robert Marshall
2014-03-26 17:15                                                                                                                                                       ` Juanma Barranquero
2014-03-26 17:29                                                                                                                                                         ` Robert Marshall
2014-03-26 17:54                                                                                                                                                         ` Eli Zaretskii
2014-03-26 18:19                                                                                                                                                           ` Juanma Barranquero
2014-03-26 19:14                                                                                                                                                             ` Robert Marshall
2014-03-26 20:18                                                                                                                                                               ` Juanma Barranquero
2014-03-26 22:58                                                                                                                                                                 ` Robert Marshall
2014-03-26 23:00                                                                                                                                                                   ` Juanma Barranquero
2014-03-27  0:59                                                                                                                                                                   ` Juanma Barranquero
2014-03-27  7:15                                                                                                                                                                     ` Robert Marshall
2014-03-26 23:05                                                                                                                                                             ` Juanma Barranquero
2014-03-27 15:06                                                                                                                                                               ` Juanma Barranquero
2014-03-22 22:10                                                       ` Robert Marshall
2014-03-22 22:14                                                         ` Juanma Barranquero
2014-03-22 16:56                         ` Robert Marshall
2014-03-22 17:39                           ` Juanma Barranquero
2014-03-23 16:07               ` Robert Marshall
2014-03-20 12:24 ` Juanma Barranquero
2014-03-20 12:57   ` Robert Marshall
2014-03-20 14:02     ` Juanma Barranquero
2014-03-20 16:32       ` Robert Marshall
2014-03-20 16:54         ` Juanma Barranquero
2014-03-20 19:24           ` martin rudalics
2014-03-20 20:23             ` Juanma Barranquero
2014-03-21  8:02               ` martin rudalics
2014-03-21 16:18                 ` Juanma Barranquero
2014-03-22  9:39                   ` martin rudalics
2014-03-22 11:43                     ` Juanma Barranquero
2014-03-22 13:45                       ` martin rudalics
2014-03-22 14:04                         ` Juanma Barranquero
2014-03-22 14:21                           ` martin rudalics
2014-03-22 14:27                         ` Eli Zaretskii
2014-03-22 15:21                           ` martin rudalics
2014-03-22 14:39                     ` Stefan
2014-03-22 15:21                       ` martin rudalics

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=CAAeL0SQPgHvsbpzFEk6FbQY4f6yw7CwKYR3zxgsBaYRoSVu4FQ@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=17046@debbugs.gnu.org \
    --cc=robert@capuchin.co.uk \
    /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).