From: brian greenfield <bri@zombie.org.uk>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Forcing emacs to refresh the display
Date: Fri, 8 Aug 2008 10:04:45 +0100 [thread overview]
Message-ID: <20080808090445.GA20883@zombie.org.uk> (raw)
In-Reply-To: <f7ccd24b0808080146h30ffa834m1f52b6aebe8c3944@mail.gmail.com>
On Fri, Aug 08, 2008 at 10:46:49AM +0200, Juanma Barranquero wrote:
> On Thu, Aug 7, 2008 at 19:02, brian greenfield <bri@zombie.org.uk> wrote:
>
> > If I don't switch windows at this point, and let the debugger start,
> > it's prompt for a dubugging command and still the line numbers don't show
> > until I switch to the other buffer.
> >
> > You can see the effect with this trimmed down code that doesn't
> > involve perl at all:
> >
> > (defun mydb ()
> > "Saves buffer, deletes other window, turns on linum-mode and runs cperl-db"
> > (interactive)
> > (linum-mode)
> > ;(force-window-update)
> > ;(redraw-display)
> > ;(setq redisplay-dont-pause t)
> > ;(redisplay t)
> > ;(sit-for 1)
> >
> > ;at this point I'd like line numbers visible, but they only appear
> > ;if I switch windows and back again
> >
> > (read-from-minibuffer "press enter ") )
>
> You talk about switching windows, but your example function does not
> create any new window. Certainly running M-x mydb <RET> shows the line
> numbers...
After M-x mydb RET, the cursor is in the minibuffer and the main
window doesn't have line numbers. C-x o makes the main window active
and the line numbers appear, another C-x o moves the cursor back to
the minibuffer ready to answer the prompt.
I'd like the line numbers to appear without having to leave the
minibuffer.
next prev parent reply other threads:[~2008-08-08 9:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-07 17:02 Forcing emacs to refresh the display brian greenfield
2008-08-08 8:46 ` Juanma Barranquero
2008-08-08 9:04 ` brian greenfield [this message]
2008-08-08 9:09 ` Juanma Barranquero
[not found] <mailman.16058.1218168663.18990.help-gnu-emacs@gnu.org>
2008-08-08 8:48 ` Markus Triska
2008-08-09 13:49 ` brian greenfield
-- strict thread matches above, loose matches on Subject: below --
2008-08-08 10:01 brian greenfield
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=20080808090445.GA20883@zombie.org.uk \
--to=bri@zombie.org.uk \
--cc=help-gnu-emacs@gnu.org \
--cc=lekktu@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.
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).