all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Juanma Barranquero" <lekktu@gmail.com>
To: "brian greenfield" <bri@zombie.org.uk>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Forcing emacs to refresh the display
Date: Fri, 8 Aug 2008 10:46:49 +0200	[thread overview]
Message-ID: <f7ccd24b0808080146h30ffa834m1f52b6aebe8c3944@mail.gmail.com> (raw)
In-Reply-To: <20080807170239.GA18840@zombie.org.uk>

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	other threads:[~2008-08-08  8:46 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 [this message]
2008-08-08  9:04   ` brian greenfield
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

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

  git send-email \
    --in-reply-to=f7ccd24b0808080146h30ffa834m1f52b6aebe8c3944@mail.gmail.com \
    --to=lekktu@gmail.com \
    --cc=bri@zombie.org.uk \
    --cc=help-gnu-emacs@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.