From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: nljlistbox2@gmail.com (N. Jackson) Newsgroups: gmane.emacs.bugs Subject: bug#25851: 25.2; GTK warning when starting Emacs when desktop file has more than one frame Date: Fri, 24 Feb 2017 11:09:22 -0500 Message-ID: <874lzjsh8t.fsf@moondust.localdomain> References: <87a89c51qb.fsf@moondust.localdomain> <831suoub86.fsf@gnu.org> <87lgswmi6a.fsf@moondust.localdomain> <83vas0rozb.fsf@gnu.org> <87k28fso3o.fsf@moondust.localdomain> <83o9xrsmrd.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487952659 1980 195.159.176.226 (24 Feb 2017 16:10:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 24 Feb 2017 16:10:59 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: 25851@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 24 17:10:54 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chISG-0007oG-3V for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Feb 2017 17:10:48 +0100 Original-Received: from localhost ([::1]:38285 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chISI-0007cg-OD for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Feb 2017 11:10:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chIRa-00073z-K3 for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 11:10:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1chIRW-0004xT-H9 for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 11:10:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56667) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1chIRW-0004xN-Cm for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 11:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1chIRW-0006DS-36 for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 11:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: nljlistbox2@gmail.com (N. Jackson) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Feb 2017 16:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25851-submit@debbugs.gnu.org id=B25851.148795257423857 (code B ref 25851); Fri, 24 Feb 2017 16:10:02 +0000 Original-Received: (at 25851) by debbugs.gnu.org; 24 Feb 2017 16:09:34 +0000 Original-Received: from localhost ([127.0.0.1]:54866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chIR2-0006Ci-Pf for submit@debbugs.gnu.org; Fri, 24 Feb 2017 11:09:34 -0500 Original-Received: from mail-it0-f42.google.com ([209.85.214.42]:38240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chIR0-0006CV-EJ for 25851@debbugs.gnu.org; Fri, 24 Feb 2017 11:09:30 -0500 Original-Received: by mail-it0-f42.google.com with SMTP id y135so28780673itc.1 for <25851@debbugs.gnu.org>; Fri, 24 Feb 2017 08:09:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=OdT59w7KsoHyZspZEqRIShJIADAEyhM6PmAPPTeAIh4=; b=rLbUF0mq85LehRigJ1O7eCRHnDXYNmEszFXdfch8PGxsfw77hyGWEEM5dZCw3xJ/Ec GGYDlNZL7fhpf9K5lmVIkN5dU2Uja+jpCAd07I96cr3gMF+K0wE5vBsAso79OV9a6qBK WOnOIcXi7I81x3WuYVCW+nPtXtJgYxd1XFiAHG8uwr1v48HZTOtapsQ1CSFmHxRrZl7J CoHl0Ish+Mc/k5EtrevFPxdcBxbP2NL87kDuZb2kE99feup5WUC0NaeRHeU0T2xiTta1 gEJBU/9SDKnSifrwNxW8Lhv4MhaTk/xU+Il79Gu9oUj60OM3r3e4yDXq4W0gJXdFa4kE hczg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=OdT59w7KsoHyZspZEqRIShJIADAEyhM6PmAPPTeAIh4=; b=DoiC3GomF6a9SUzeR/D14xLMO98TlfCjHRUaFI5STL9FVt9N5HMlcA5F2Sbv3FZRGN WHglaHALIzyvx5Q4ko9DStmbL3VVi/8PmnXkYH3GJsu8WLVjJcwiYxdplX2z2vLzWzK9 IZLNbDlFjgR/zWru2wDJRTuDAdOrXYiyFJN7SmUyaAm9Wub8kd+5kwzXPpPWhF5sDnQQ CXcJ6Tw7qIFAStuk2chf5ocbRKe6KcnQkFEhQ4p5qPMPdN33RgXrjOEt+k1cQJk2Wlhm f/LV5La28QnwNvjjRqdxJBrBecmkbrgBOt7zrD0Cw4KCQ7zUXiXITfaSlbgp9XBeTkVo Fy1w== X-Gm-Message-State: AMke39lg6Ubu8hizd2Iqkk1fZuxuljsXr4AimtJWJc+Rum0ppANhwdw6jmPkA5HDYodt4Q== X-Received: by 10.36.2.65 with SMTP id 62mr3210495itu.83.1487952564849; Fri, 24 Feb 2017 08:09:24 -0800 (PST) Original-Received: from moondust.localdomain.nodomain.none ([72.143.113.194]) by smtp.gmail.com with ESMTPSA id v187sm3251793iod.56.2017.02.24.08.09.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 Feb 2017 08:09:24 -0800 (PST) In-Reply-To: <83o9xrsmrd.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 24 Feb 2017 16:10:14 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129745 Archived-At: At 16:10 +0200 on Friday 2017-02-24, Eli Zaretskii wrote: > > So the question now becomes: how is invoking > x-create-frame-with-faces via frameset-restore is different from > the same operation invoked, say, via "C-x 5 b"? (I understand > that the latter doesn't cause GTK to emit the warning, right?) Right. And the answer is that with `C-x 5 2' (and `C-x 5 b'), while `xg_set_geometry' is called, the body of it seems to be skipped [you had better check my use of GDB, here because the results confuse me so maybe I'm using it wrong] so `gtk_window_parse_geometry' never gets called. For convenience, the full code, with line numbers, of `xg_set_geometry' is: (gdb) list gtkutil.c:780 775 static void 776 xg_set_geometry (struct frame *f) 777 { 778 if (f->size_hint_flags & (USPosition | PPosition)) 779 { 780 int left = f->left_pos; 781 int xneg = f->size_hint_flags & XNegative; 782 int top = f->top_pos; 783 int yneg = f->size_hint_flags & YNegative; 784 char geom_str[sizeof "=x--" + 4 * INT_STRLEN_BOUND (int)]; (gdb) list +20 800 | G_LOG_FLAG_RECURSION, my_log_handler, NULL); 801 802 if (!gtk_window_parse_geometry (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)), 803 geom_str)) 804 fprintf (stderr, "Failed to parse: '%s'\n", geom_str); 805 806 g_log_remove_handler ("Gtk", id); 807 } 808 } 809 This is my interaction with GDB after `C-x 5 2': Thread 1 "emacs" hit Breakpoint 3, xg_set_geometry (f=0x386d000) at gtkutil.c:778 778 if (f->size_hint_flags & (USPosition | PPosition)) (gdb) print f->size_hint_flags $3 = 0 (gdb) print USPosition No symbol "USPosition" in current context. (gdb) print PPosition No symbol "PPosition" in current context. (gdb) print (USPosition | PPosition) No symbol "USPosition" in current context. (gdb) print (f->size_hint_flags & (USPosition | PPosition)) No symbol "USPosition" in current context. (gdb) n 808 } (gdb) Is my syntax wrong when I try to get the values? Thanks. N.