From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.help Subject: Re: Forcing emacs to refresh the display Date: Fri, 8 Aug 2008 10:46:49 +0200 Message-ID: References: <20080807170239.GA18840@zombie.org.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218185240 25649 80.91.229.12 (8 Aug 2008 08:47:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2008 08:47:20 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "brian greenfield" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 08 10:48:11 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KRNdq-00036I-CS for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Aug 2008 10:48:10 +0200 Original-Received: from localhost ([127.0.0.1]:34258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRNcu-0001qR-Mo for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Aug 2008 04:47:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRNcb-0001oD-2P for help-gnu-emacs@gnu.org; Fri, 08 Aug 2008 04:46:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRNcY-0001kh-TY for help-gnu-emacs@gnu.org; Fri, 08 Aug 2008 04:46:52 -0400 Original-Received: from [199.232.76.173] (port=42328 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRNcY-0001ka-RN for help-gnu-emacs@gnu.org; Fri, 08 Aug 2008 04:46:50 -0400 Original-Received: from nf-out-0910.google.com ([64.233.182.185]:37600) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KRNcZ-0000lT-5S for help-gnu-emacs@gnu.org; Fri, 08 Aug 2008 04:46:51 -0400 Original-Received: by nf-out-0910.google.com with SMTP id c7so312437nfi.26 for ; Fri, 08 Aug 2008 01:46:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=zKHEqI9WeDZolEDNdhlMcjt0WEiaWJNvWeKMwVgL1hE=; b=wvVuozOepfEl60NFMNIl+ovA4xpZEhuvqsuY6yUoi5eomFJNlXU0g52kpR6v/n5Wlo d8vJS3271xJR67Dn7P+qPvhuJ2rhvXnHlhN774cWyd9pdi90ah4pHOSVnAPhwkhxW81P mYPTgMhIJMbYGOrJ4KDF7c6/vn0WCWFTUCIV4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=IGbgSGzuYos/AQMwUBh5XAaR9T3iELhjnPOTxvcv6pZ2N9S42LNywQ1BDqLuGQt+oI vE583tXZWkJqdxciqRhYk1n6MiyxWTVAk0JqBR6QX4cLXwxg6lvUXP+GLc2Bvq1i4SCz Wl/dMKItpYJXhIqB8p7tLDiCQIhD/SwQcBfIQ= Original-Received: by 10.210.125.7 with SMTP id x7mr5172680ebc.45.1218185209440; Fri, 08 Aug 2008 01:46:49 -0700 (PDT) Original-Received: by 10.210.71.14 with HTTP; Fri, 8 Aug 2008 01:46:49 -0700 (PDT) In-Reply-To: <20080807170239.GA18840@zombie.org.uk> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56292 Archived-At: On Thu, Aug 7, 2008 at 19:02, brian greenfield 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 shows the line numbers... Juanma