unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#16084: 24.3.50; Modeline update problem
@ 2013-12-07 12:23 martin rudalics
  2013-12-08  3:07 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: martin rudalics @ 2013-12-07 12:23 UTC (permalink / raw)
  To: 16084

With emacs -Q for today's trunk insert the following text into *scratch*
and eval the buffer.


(switch-to-buffer (get-buffer-create "buffer-1"))

(defun foo ()
   (interactive)
   (cond
    ((equal (buffer-name) "buffer-1")
     (switch-to-buffer (get-buffer-create "buffer-2")))
    ((equal (buffer-name) "buffer-2")
     (switch-to-buffer (get-buffer-create "buffer-3")))
    ((equal (buffer-name) "buffer-3")
     (switch-to-buffer (get-buffer-create "buffer-1")))))

(global-set-key [(control .)] 'foo)


Now typing C-. updates the modeline only the first time one of these
buffers is displayed.  After that, the modeline sticks to buffer-3 here.
If I now modify the current buffer, the modeline changes again but
ceases to do so the next time the buffer is displayed.

Instead of C-. I can also use menu-bar-select-buffer-function.

In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
  of 2013-12-07 on MACHNO
Bzr revision: 115403 larsi@gnus.org-20131207014415-e5bctc7gta9fhs19
Windowing system distributor `Microsoft Corp.', version 5.1.2600

martin





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#16084: 24.3.50; Modeline update problem
  2013-12-07 12:23 bug#16084: 24.3.50; Modeline update problem martin rudalics
@ 2013-12-08  3:07 ` Stefan Monnier
  2013-12-08  9:57   ` martin rudalics
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2013-12-08  3:07 UTC (permalink / raw)
  To: martin rudalics; +Cc: 16084

> Now typing C-. updates the modeline only the first time one of these
> buffers is displayed.  After that, the modeline sticks to buffer-3 here.

I believe it should be fixed now, thank you,


        Stefan





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#16084: 24.3.50; Modeline update problem
  2013-12-08  3:07 ` Stefan Monnier
@ 2013-12-08  9:57   ` martin rudalics
  0 siblings, 0 replies; 3+ messages in thread
From: martin rudalics @ 2013-12-08  9:57 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 16084-done

> I believe it should be fixed now, thank you,

Confirmed.  Thanks for the fix.

martin






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-08  9:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-07 12:23 bug#16084: 24.3.50; Modeline update problem martin rudalics
2013-12-08  3:07 ` Stefan Monnier
2013-12-08  9:57   ` martin rudalics

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).