help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Forcing emacs to refresh the display


From: brian greenfield
Subject: Re: Forcing emacs to refresh the display
Date: Fri, 8 Aug 2008 10:04:45 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On Fri, Aug 08, 2008 at 10:46:49AM +0200, Juanma Barranquero wrote:
> On Thu, Aug 7, 2008 at 19:02, brian greenfield <address@hidden> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]