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: Juanma Barranquero
Subject: Re: Forcing emacs to refresh the display
Date: Fri, 8 Aug 2008 10:46:49 +0200

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

  Juanma




reply via email to

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