From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#17831: 24.4.50; bad default value for `Man-width' Date: Wed, 25 Jun 2014 02:48:35 +0300 Organization: JURTA Message-ID: <87tx79es0g.fsf@mail.jurta.org> References: <87tx7buryg.fsf@mail.jurta.org> <53A92532.9040901@gmx.at> <83zjh2qpia.fsf@gnu.org> <83mwd2qji7.fsf@gnu.org> <83ha3aqdh5.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1403657373 19981 80.91.229.3 (25 Jun 2014 00:49:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Jun 2014 00:49:33 +0000 (UTC) Cc: 17831@debbugs.gnu.org, sdl.web@gmail.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 25 02:49:26 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WzbOv-0007iQ-2V for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Jun 2014 02:49:25 +0200 Original-Received: from localhost ([::1]:34453 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzbOu-0000KJ-Mz for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Jun 2014 20:49:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzbOj-0000K4-P3 for bug-gnu-emacs@gnu.org; Tue, 24 Jun 2014 20:49:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzbOa-00021B-A7 for bug-gnu-emacs@gnu.org; Tue, 24 Jun 2014 20:49:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40386) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzbOa-000216-6r for bug-gnu-emacs@gnu.org; Tue, 24 Jun 2014 20:49:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WzbOZ-0003d5-S4 for bug-gnu-emacs@gnu.org; Tue, 24 Jun 2014 20:49:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Jun 2014 00:49:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17831 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17831-submit@debbugs.gnu.org id=B17831.140365731913888 (code B ref 17831); Wed, 25 Jun 2014 00:49:03 +0000 Original-Received: (at 17831) by debbugs.gnu.org; 25 Jun 2014 00:48:39 +0000 Original-Received: from localhost ([127.0.0.1]:59767 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WzbOB-0003bv-4B for submit@debbugs.gnu.org; Tue, 24 Jun 2014 20:48:39 -0400 Original-Received: from alc-vshost7.dreamhost.com ([69.163.216.107]:43455 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WzbO7-0003bm-Q3 for 17831@debbugs.gnu.org; Tue, 24 Jun 2014 20:48:36 -0400 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.222.226]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 3F34D30013BE40; Tue, 24 Jun 2014 17:48:32 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Tue, 24 Jun 2014 16:29:48 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:90760 Archived-At: > But I still prefer an async process that gives me: > - empty buffer after 0s > - full first page displayed after 0.1s > - buffer fully filled and ready after 5s > over a sync process that blocks for 3s. This simple patch displays the buffer immediately, but then slowly fills it with unformatted output that doesn't look nice. So maybe better would be to create a temporary hidden buffer, do formatting in background, and copy the formatted text to the displayed buffer. === modified file 'lisp/man.el' --- lisp/man.el 2014-05-09 07:02:00 +0000 +++ lisp/man.el 2014-06-24 23:47:12 +0000 @@ -1056,6 +1056,7 @@ (defun Man-getpage-in-background (topic) (require 'env) (message "Invoking %s %s in the background" manual-program man-args) (setq buffer (generate-new-buffer bufname)) + (Man-notify-when-ready buffer) (with-current-buffer buffer (setq buffer-undo-list t) (setq Man-original-frame (selected-frame))