From: storm@cua.dk (Kim F. Storm)
Cc: Edward O'Connor <hober0@gmail.com>, emacs-devel@gnu.org
Subject: Re: [hober0@gmail.com: Re: mode-line redisplay bug]
Date: Tue, 16 Aug 2005 14:58:19 +0200 [thread overview]
Message-ID: <m3hddqca38.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <20050812185841.25E3C4063@rocksteady.printf.se> (Henrik Enberg's message of "Fri, 12 Aug 2005 20:58:41 +0200 (CEST)")
Henrik Enberg <henrik.enberg@telia.com> writes:
>> From: Edward O'Connor <hober0@gmail.com>
>> Date: Fri, 12 Aug 2005 10:19:09 -0700
>>
>> > Edward, can you please recheck if this problem happens with "emacs -Q"?
>>
>> It still happens with emacs -q --no-site-file.
>
> FWIW, it happens for me too on GNU/Linux with emacs -q --no-site-file
It didn't happen when I just executed the code manually in *scratch*, but
it does happen for me if I save Edward's instructions in a file xx.el,
and run emacs like this:
emacs -Q -D -l xx.el
---- xx.el:
;; Step 0: Launch an Emacs on some variety of window-system.
;; Step 1: Ensure that there's something in the mode-line that changes
;; periodically.
(defvar frob " hello")
(add-to-list 'minor-mode-alist '(t frob))
(defun frob-it ()
"Change `frob' to a random string, and force a mode-line update."
(setq frob (concat " " (make-string (+ 2 (random 6))
(+ 97 (random 26)))))
(force-mode-line-update t))
(run-with-timer 5 5 'frob-it)
;; Step 2: Ensure that there's a buffer with no mode-line.
(with-current-buffer (get-buffer "*scratch*")
(setq header-line-format mode-line-format
mode-line-format nil))
;; Step 3: Make a key binding for switching between the buffer with no
;; mode-line and a buffer with a mode-line which uses
;; `switch-to-buffer'.
(global-set-key (kbd "C-c c")
(lambda ()
(interactive)
(if (eq (current-buffer) (get-buffer "*Messages*"))
(switch-to-buffer (get-buffer "*scratch*"))
(switch-to-buffer (get-buffer "*Messages*")))))
;; Step 4: To observe the bug, switch to *scratch*, wait for the
;; header-line to change, and hit C-c c. More often than not,
;; the mode-line in *Messages* will be only partially
;; displayed. (Try this several times, by repeated use of the
;; C-c c key binding, if you don't observe the effect right
;; away.) Typing C-l (unsurprisingly) fixes the display.
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2005-08-16 12:58 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-12 14:59 [hober0@gmail.com: Re: mode-line redisplay bug] Richard M. Stallman
2005-08-12 16:58 ` Eli Zaretskii
2005-08-12 17:19 ` Edward O'Connor
2005-08-12 17:31 ` Edward O'Connor
2005-08-12 18:58 ` Henrik Enberg
2005-08-16 12:58 ` Kim F. Storm [this message]
2005-08-12 18:19 ` Robert J. Chassell
2005-08-12 22:56 ` Jason Rumney
2005-08-13 21:54 ` Richard M. Stallman
2005-08-13 22:51 ` Jason Rumney
2005-10-08 21:26 ` Jason Rumney
2005-10-09 1:57 ` mituharu
2005-10-09 6:11 ` Jan D.
2005-10-10 19:40 ` Jason Rumney
[not found] ` <wlwtp6ijoz.wl%mituharu@math.s.chiba-u.ac.jp>
2005-10-11 1:21 ` YAMAMOTO Mitsuharu
2005-10-11 10:21 ` Kim F. Storm
2005-10-11 12:38 ` YAMAMOTO Mitsuharu
2005-10-11 15:14 ` Kim F. Storm
2005-10-11 14:50 ` Jason Rumney
2005-10-11 22:43 ` Kim F. Storm
2005-10-12 3:15 ` YAMAMOTO Mitsuharu
2005-10-12 8:39 ` Kim F. Storm
2005-10-12 8:41 ` YAMAMOTO Mitsuharu
2005-10-12 9:29 ` Kim F. Storm
2005-10-12 9:59 ` YAMAMOTO Mitsuharu
2005-10-11 10:47 ` Jason Rumney
2005-10-11 11:25 ` Kim F. Storm
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=m3hddqca38.fsf@kfs-l.imdomain.dk \
--to=storm@cua.dk \
--cc=emacs-devel@gnu.org \
--cc=hober0@gmail.com \
/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.