From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Reuben Thomas via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#12098: How to trap errors in man? Date: Fri, 21 Aug 2020 10:41:52 +0100 Message-ID: References: <87pq7b5uvr.fsf@mail.jurta.org> <87txwnxbbx.fsf@mail.jurta.org> <87mu2q4wcu.fsf@gnus.org> <87d03mdng8.fsf@mail.linkov.net> <83h7swbg3l.fsf@gnu.org> Reply-To: Reuben Thomas Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000094c04005ad600cf6" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31451"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Juri Linkov , Lars Magne Ingebrigtsen , Stefan Kangas , 12098@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 21 11:43:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k93Zl-00083Y-J1 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Aug 2020 11:43:09 +0200 Original-Received: from localhost ([::1]:58672 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k93Zk-0006WP-LD for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Aug 2020 05:43:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k93Ze-0006WJ-Ro for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2020 05:43:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33503) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k93Ze-00055V-Iv for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2020 05:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k93Ze-0004Sj-GR for bug-gnu-emacs@gnu.org; Fri, 21 Aug 2020 05:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Aug 2020 09:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12098 X-GNU-PR-Package: emacs Original-Received: via spool by 12098-submit@debbugs.gnu.org id=B12098.159800293017079 (code B ref 12098); Fri, 21 Aug 2020 09:43:02 +0000 Original-Received: (at 12098) by debbugs.gnu.org; 21 Aug 2020 09:42:10 +0000 Original-Received: from localhost ([127.0.0.1]:45049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k93Yo-0004RP-Eb for submit@debbugs.gnu.org; Fri, 21 Aug 2020 05:42:10 -0400 Original-Received: from mail-oi1-f177.google.com ([209.85.167.177]:46194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k93Ym-0004RA-VS for 12098@debbugs.gnu.org; Fri, 21 Aug 2020 05:42:10 -0400 Original-Received: by mail-oi1-f177.google.com with SMTP id v13so1004744oiv.13 for <12098@debbugs.gnu.org>; Fri, 21 Aug 2020 02:42:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rxTum2H2R9yDmBbyFaZT9tQ3gCGZv+aoIVePt1C/bMc=; b=Kr5P7EQBFPdXliPJXym/1vT0CzLERfG89Ip+O1lzka3kFKQlh3S1C07ZdOK/SfqIWS vZPM5/b8qBcCJvsP07exuBwGwbOxzaXpqyKTwp4ZS9/lzcOslrhsECkWH0ErAkt3TbUx dnCPhlVCx7P9LHXtUaaRKg5tOXSmkxXRWPSh8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rxTum2H2R9yDmBbyFaZT9tQ3gCGZv+aoIVePt1C/bMc=; b=jLNXm7pBPyRPv79AQhKa4MZHR2Agjnk4XsJbgLWyXFml2GYU4jWqKBb5rk0mBnkGgo 9NIcdU/n8N9pL6wXMkIXpyKg/0OTX2tOgyhbEvt/mlbFCKglUydUrVVnMasdY3l6rpK6 UJAK/GgX8vuz08glyg+8NKGtouTIUzU1+zRoYqtWn44qEmHInNkFiphBM6gO8njajQH+ 2IRAye9DhgzsfV3gAH5U6kwAw8dIfc/hoQ0B+T+g77Qb7OZH6r7lAOG/UIKrByZQ8356 +0gSsHOci4YgvwT0RYioMh87Z8GHJh2qapgXWPtRcZoc/Ns14+t22PmcMuZy/ZrcK6DC FubA== X-Gm-Message-State: AOAM5303FMzG2WLU6HRyctZb3NOWlPyD4ETP//t5QQCP8e87YKSEYY8/ Xo0ztZGoBt7qTNnAp6O4ZkQ/ibJoKLIuoDkNrXsiSw== X-Google-Smtp-Source: ABdhPJw7IQ9US+frypfAvj4Ubqy1f+H2WAv/vYwhjIDRnP/jLNcGTu5faYAfPsN323ZB/CT60/ajyz64/DYa/snovdo= X-Received: by 2002:aca:d595:: with SMTP id m143mr1131108oig.11.1598002923085; Fri, 21 Aug 2020 02:42:03 -0700 (PDT) In-Reply-To: <83h7swbg3l.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:185829 Archived-At: --00000000000094c04005ad600cf6 Content-Type: text/plain; charset="UTF-8" On Fri, 21 Aug 2020 at 08:41, Eli Zaretskii wrote: > > From: Stefan Kangas > > Date: Fri, 21 Aug 2020 00:25:45 -0700 > > Cc: Lars Ingebrigtsen , Reuben Thomas , > > 12098@debbugs.gnu.org > > > > > I think adding an option to run man synchronously will address such > wishes as > > > https://debbugs.gnu.org/40888 > > > > Unfortunately the patch here no longer applies but from taking a quick > > look it shouldn't be too hard to rewrite for anyone so inclined. > > Btw, while assessing the speed of running a 'man' command > synchronously, please be sure to do that with a man page that doesn't > have its formatted counterpart stored in man/catN. Most > implementations of 'man' will store the formatted pages there, and use > them afterwards, thus avoiding the more expensive formatting command. > Displaying a pre-formatted man page is almost instantaneous, but > formatting a large and non-trivial page might be slower. > The times quoted earlier in the thread (specifically, 2s for bash(1)) does not sound like there was a cached version involved, as that's much too slow! -- https://rrt.sc3d.org --00000000000094c04005ad600cf6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, 21 Aug 2020 at 08:41, Eli Zaretskii <eliz@gnu.org> wrote:
> From: Stefan Kangas <stefan@marxist.se>
> Date: Fri, 21 Aug 2020 00:25:45 -0700
> Cc: Lars Ingebrigtsen <larsi@gnus.org>, Reuben Thomas <rrt@sc3d.org>,
>=C2=A0 12098= @debbugs.gnu.org
>
> > I think adding an option to run man synchronously will address su= ch wishes as
> > https://debbugs.gnu.org/40888
>
> Unfortunately the patch here no longer applies but from taking a quick=
> look it shouldn't be too hard to rewrite for anyone so inclined.
Btw, while assessing the speed of running a 'man' command
synchronously, please be sure to do that with a man page that doesn't have its formatted counterpart stored in man/catN.=C2=A0 Most
implementations of 'man' will store the formatted pages there, and = use
them afterwards, thus avoiding the more expensive formatting command.
Displaying a pre-formatted man page is almost instantaneous, but
formatting a large and non-trivial page might be slower.
The times quoted earlier in the th= read (specifically, 2s for bash(1)) does not sound like there was a cached = version involved, as that's much too slow!

--
--00000000000094c04005ad600cf6--