GNU bug report logs - #16445
Regression: ff-find-other-file doesn't update frame title

Previous Next

Package: emacs;

Reported by: Barry OReilly <gundaetiapo <at> gmail.com>

Date: Tue, 14 Jan 2014 17:13:01 UTC

Severity: normal

Done: Barry OReilly <gundaetiapo <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16445 in the body.
You can then email your comments to 16445 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#16445; Package emacs. (Tue, 14 Jan 2014 17:13:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Barry OReilly <gundaetiapo <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 14 Jan 2014 17:13:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Barry OReilly <gundaetiapo <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Regression: ff-find-other-file doesn't update frame title
Date: Tue, 14 Jan 2014 12:12:38 -0500
[Message part 1 (text/plain, inline)]
I use ff-find-other-file to switch between .h and .cc C++ files, using
Emacs as an X11 window (Emacs frame). The title for the X11 window does not
update itself when I switch between the two buffers with this command. eg
if I'm in Foo.cc and the title shows Foo.cc, I do ff-find-other-file and
successfully switch to Foo.h, but the title says Foo.cc. If I use the
buffer-menu to go to Foo.h, the title updates fine.

I tested with emacs-24.3 and don't witness the problem.

I'm on RHEL 5.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16445; Package emacs. (Tue, 14 Jan 2014 18:23:01 GMT) Full text and rfc822 format available.

Message #8 received at 16445 <at> debbugs.gnu.org (full text, mbox):

From: Barry OReilly <gundaetiapo <at> gmail.com>
To: 16445 <at> debbugs.gnu.org
Subject: Re: bug#16445: Acknowledgement (Regression: ff-find-other-file
 doesn't update frame title)
Date: Tue, 14 Jan 2014 13:21:58 -0500
[Message part 1 (text/plain, inline)]
This depends on some customization of mine. Here's a -Q recipe using a
distillation of my init.

Let /tmp/title-redisplay.el have content:

  (defun my-get-buffer-name ()
    "Get the buffer name. "
    (file-name-nondirectory (or (buffer-file-name)
                                (buffer-name)
                                default-directory)))
  (setq-default frame-title-format '(:eval (my-get-buffer-name)))
  (add-hook 'emacs-startup-hook 'delete-other-windows)
  (global-set-key (kbd "<f4>") 'ff-find-other-file)

cd to the src directory of the Emacs source tree and:

  ./emacs -Q --load /tmp/title-redisplay.el character.h character.c

Then f4, and you'll see the frame title doesn't update.
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16445; Package emacs. (Thu, 16 Jan 2014 01:42:02 GMT) Full text and rfc822 format available.

Message #11 received at 16445 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Barry OReilly <gundaetiapo <at> gmail.com>
Cc: 16445 <at> debbugs.gnu.org
Subject: Re: bug#16445: Regression: ff-find-other-file doesn't update frame
 title
Date: Wed, 15 Jan 2014 20:41:18 -0500
> I use ff-find-other-file to switch between .h and .cc C++ files, using
> Emacs as an X11 window (Emacs frame). The title for the X11 window does not
> update itself when I switch between the two buffers with this command. eg
> if I'm in Foo.cc and the title shows Foo.cc, I do ff-find-other-file and
> successfully switch to Foo.h, but the title says Foo.cc. If I use the
> buffer-menu to go to Foo.h, the title updates fine.

Can't reproduce it here.  I tried

  emacs -Q --eval "(global-set-key [?\C-o] 'ff-find-other-file)"
  C-x 5 f src/buffer.c

and then in the frame that displays buffer.c I did

  C-o

But the problem did not manifest itself.
  

        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16445; Package emacs. (Thu, 16 Jan 2014 03:39:05 GMT) Full text and rfc822 format available.

Message #14 received at 16445 <at> debbugs.gnu.org (full text, mbox):

From: Barry OReilly <gundaetiapo <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 16445 <at> debbugs.gnu.org
Subject: Re: bug#16445: Regression: ff-find-other-file doesn't update frame
 title
Date: Wed, 15 Jan 2014 22:38:08 -0500
[Message part 1 (text/plain, inline)]
> Can't reproduce it here.  I tried
>
>   emacs -Q --eval "(global-set-key [?\C-o] 'ff-find-other-file)"
>   C-x 5 f src/buffer.c
>
> and then in the frame that displays buffer.c I did
>
>   C-o
>
> But the problem did not manifest itself.

Did you see the more detailed recipe I provided shortly after the original
submission?
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16445; Package emacs. (Thu, 16 Jan 2014 04:09:02 GMT) Full text and rfc822 format available.

Message #17 received at 16445 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Barry OReilly <gundaetiapo <at> gmail.com>
Cc: 16445 <at> debbugs.gnu.org
Subject: Re: bug#16445: Regression: ff-find-other-file doesn't update frame
 title
Date: Wed, 15 Jan 2014 23:08:57 -0500
> Did you see the more detailed recipe I provided shortly after the original
> submission?

Sorry, I'd forgotten about it, but I just tried it and it doesn't
reproduce the problem for me either.


        Stefan




Reply sent to Barry OReilly <gundaetiapo <at> gmail.com>:
You have taken responsibility. (Thu, 16 Jan 2014 15:46:02 GMT) Full text and rfc822 format available.

Notification sent to Barry OReilly <gundaetiapo <at> gmail.com>:
bug acknowledged by developer. (Thu, 16 Jan 2014 15:46:02 GMT) Full text and rfc822 format available.

Message #22 received at 16445-done <at> debbugs.gnu.org (full text, mbox):

From: Barry OReilly <gundaetiapo <at> gmail.com>
Cc: 16445-done <at> debbugs.gnu.org
Subject: Re: bug#16445: Regression: ff-find-other-file doesn't update frame
 title
Date: Thu, 16 Jan 2014 10:45:15 -0500
[Message part 1 (text/plain, inline)]
I tried with the latest trunk version and couldn't reproduce it
either, so closing.

I have been using the commit before the one that introduced bug 16434,
which is a version this bug manifests in.
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 14 Feb 2014 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 186 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.