From: Eli Zaretskii <eliz@gnu.org>
To: David Reitter <david.reitter@gmail.com>
Cc: konrad.podczeck@univie.ac.at, 22048@debbugs.gnu.org
Subject: bug#22048: 25.1; frame title vanishes when speedbar present
Date: Mon, 30 Nov 2015 20:08:17 +0200 [thread overview]
Message-ID: <83610jmkby.fsf@gnu.org> (raw)
In-Reply-To: <4BD6AC0E-F3DE-44CA-B535-F45BD0DBD58C@gmail.com>
> From: David Reitter <david.reitter@gmail.com>
> Date: Mon, 30 Nov 2015 11:20:00 -0500
> Cc: 22048@debbugs.gnu.org,
> konrad.podczeck@univie.ac.at
>
> >
> > I'm afraid I don't follow: why does ns_set_name_as_filename need the
> > buffer to be the current buffer? It access that buffer through the
> > frame pointer:
>
> Yes, but x_implicitly_set_name reads Vframe_title_format directly:
>
> if (FRAME_NS_P (f) && ((FRAME_ICONIFIED_P (f) && EQ (Vicon_title_format, Qt))
> || EQ (Vframe_title_format, Qt)))
>
> It picks up the wrong value there. Based on that, I think ns_set_name_as_filename isn’t called at all because it reads the value meant for the speedbar frame. I didn’t bother to look at what then happens in ns_set_name and ns_set_name_internal.
Sorry, I'm still confused: Vframe_title_format is a global variable,
it's neither buffer-local not frame-local, AFAIK. So how come the
wrong value is picked up by x_implicitly_set_name?
> (By the way, I first tried to do this in x_implicitly_set_name:
>
> set_buffer_internal_1
> (XBUFFER (XWINDOW (f->selected_window)->contents));
>
> which works, but I find that the more dangerous change as the current buffer is permanently changed.
Not sure how the current buffer enters the picture here.
next prev parent reply other threads:[~2015-11-30 18:08 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-29 3:28 bug#22048: 25.1; frame title vanishes when speedbar present David Reitter
2015-11-29 15:36 ` Eli Zaretskii
2015-11-29 19:23 ` David Reitter
2015-11-29 19:50 ` Eli Zaretskii
2015-11-30 0:14 ` David Reitter
2015-11-30 15:48 ` Eli Zaretskii
2015-11-30 16:20 ` David Reitter
2015-11-30 18:08 ` Eli Zaretskii [this message]
2015-11-30 18:16 ` martin rudalics
2015-11-30 18:34 ` Eli Zaretskii
2015-11-30 18:20 ` David Reitter
2015-11-30 18:33 ` Eli Zaretskii
2015-12-01 2:09 ` David Reitter
2015-12-04 19:23 ` martin rudalics
[not found] <B29A7B98-34B0-45E6-B3D9-DB8887EF7EC0@univie.ac.at>
2010-06-13 21:15 ` bug#6418: Fwd: Another frame problem David Reitter
2015-12-04 19:26 ` bug#6418: Fwd: bug#22048: 25.1; frame title vanishes when speedbar present David Reitter
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=83610jmkby.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=22048@debbugs.gnu.org \
--cc=david.reitter@gmail.com \
--cc=konrad.podczeck@univie.ac.at \
/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).