all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: 16084@debbugs.gnu.org
Subject: bug#16084: 24.3.50; Modeline update problem
Date: Sat, 07 Dec 2013 13:23:56 +0100	[thread overview]
Message-ID: <52A3135C.1070007@gmx.at> (raw)

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





             reply	other threads:[~2013-12-07 12:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-07 12:23 martin rudalics [this message]
2013-12-08  3:07 ` bug#16084: 24.3.50; Modeline update problem Stefan Monnier
2013-12-08  9:57   ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52A3135C.1070007@gmx.at \
    --to=rudalics@gmx.at \
    --cc=16084@debbugs.gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.