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: Wed, 19 Aug 2020 15:21:36 +0100 Message-ID: References: <87pq7b5uvr.fsf@mail.jurta.org> <87txwnxbbx.fsf@mail.jurta.org> <87mu2q4wcu.fsf@gnus.org> Reply-To: Reuben Thomas Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000054909005ad3bb931" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3035"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Juri Linkov , Lars Ingebrigtsen , 12098@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 19 16:22:12 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 1k8Oyf-0000WN-Tt for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Aug 2020 16:22:10 +0200 Original-Received: from localhost ([::1]:55050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k8Oye-0007uY-W4 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Aug 2020 10:22:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43214) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k8OyY-0007uR-Ml for bug-gnu-emacs@gnu.org; Wed, 19 Aug 2020 10:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57326) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k8OyY-0007uT-Dz for bug-gnu-emacs@gnu.org; Wed, 19 Aug 2020 10:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k8OyY-0003Wk-Ax for bug-gnu-emacs@gnu.org; Wed, 19 Aug 2020 10:22: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: Wed, 19 Aug 2020 14:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12098 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch moreinfo Original-Received: via spool by 12098-submit@debbugs.gnu.org id=B12098.159784691513541 (code B ref 12098); Wed, 19 Aug 2020 14:22:02 +0000 Original-Received: (at 12098) by debbugs.gnu.org; 19 Aug 2020 14:21:55 +0000 Original-Received: from localhost ([127.0.0.1]:40639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8OyR-0003WL-0Y for submit@debbugs.gnu.org; Wed, 19 Aug 2020 10:21:55 -0400 Original-Received: from mail-oi1-f175.google.com ([209.85.167.175]:38935) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k8OyP-0003W8-BV for 12098@debbugs.gnu.org; Wed, 19 Aug 2020 10:21:54 -0400 Original-Received: by mail-oi1-f175.google.com with SMTP id a24so21129399oia.6 for <12098@debbugs.gnu.org>; Wed, 19 Aug 2020 07:21:53 -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=3R7/tmfLlNgHA2/Jz/MXwbKyZJ1sNb9cTSJwO9kmZzo=; b=NtnCj2SjMzDxJIJoHDjRB4hlebcVKhZAlC04t0w4iSV8CThMmES7i5dIxQ1fyURLbP KNihW2dDjLkv3q7re8MV++qDNqPwrGdmgjmQosfpuskFaY1wlXdsOp/9VXhWEzJCKtx6 tH3r5jzEsrTdUKFqgkWLKwqoeYw+BR5ZXcFSo= 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=3R7/tmfLlNgHA2/Jz/MXwbKyZJ1sNb9cTSJwO9kmZzo=; b=lwyPV1UTJKOb87lUvoVvNRXWr320tz/wGCX5eMdkfGJP7tWpQASM0moTMQ3IqirndO ZeA+VpXDOCCIldDM/Ydy9G+2pGxRA2WdzLREdZ1A4K5VPDHMVdrzpEEuMF3+TwJfd4pP fgW/ydABGa1Dk6q/1nAL/CjMEdKhMZQLA4sPNmoKtK4jpIVlXjvapQSC8EuAqk/hwY35 0x8GTAc70KHpN4AXhqg9yt3Y15jUwZ6bgZvstzdBcAOFpPQO8gvALAN3w/GJQS5ptDm3 t5JM4/wLxP3WlKZIhXdPj834NrpL6Yx5CTpA2npLYJ8sI01zEQzyCU7pNPlGhz/LbZVQ wf9w== X-Gm-Message-State: AOAM532bdnJitFrvCGdjai78/I57R3Xz3qOPxAHs/VqJWPXtVavgTktV YRJp7cKNQ+2nB8oAZ4imouorPJ5fvuy2OfEN1Ak4bA== X-Google-Smtp-Source: ABdhPJwVNdh4QrVB0UXCiBTZ0pgLD+XlOMsuKy7CuFQh0bGDMvdHu1IuZEGcaWnAC55Y3UrKQ32djaIYXEr6zXEneIE= X-Received: by 2002:aca:490:: with SMTP id 138mr3448552oie.62.1597846907548; Wed, 19 Aug 2020 07:21:47 -0700 (PDT) In-Reply-To: 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:185617 Archived-At: --00000000000054909005ad3bb931 Content-Type: text/plain; charset="UTF-8" On Wed, 19 Aug 2020 at 15:12, Stefan Kangas wrote: > Reuben Thomas writes: > > >> What if you are running this remotely using TRAMP? What if you're on a > >> laggy network with an NFS mounted filesystem? What if your disk is > >> failing and this command takes several seconds to complete? etc. > > > > No different from any other command that interacts with the disc and is > > normally run synchronously. > > Yes, so your entire Emacs session will block. In other words, less than > satisfactory. > Many commands do this; I don't think there's a reason to treat man specially in this regard and complicate it. man was not written to be asynchronous because of the things you mention, but because it could take some time to format the man page. This is no longer the case. -- https://rrt.sc3d.org --00000000000054909005ad3bb931 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, 19 Aug 2020 at 15:12, Stefan Kangas <stefan@marxist.se> wrote:
Reuben Thomas <rrt@sc3d.org> writes:

>> What if you are running this remotely using TRAMP?=C2=A0 What if y= ou're on a
>> laggy network with an NFS mounted filesystem?=C2=A0 What if your d= isk is
>> failing and this command takes several seconds to complete?=C2=A0 = etc.
>
> No different from any other command that interacts with the disc and i= s
> normally run synchronously.

Yes, so your entire Emacs session will block.=C2=A0 In other words, less th= an
satisfactory.

Many c= ommands do this; I don't think there's a reason to treat man specia= lly in this regard and complicate it.

man was not written to be asynchronous because of the thing= s you mention, but because it could take some time to format the man page. = This is no longer the case.

--
--00000000000054909005ad3bb931--