From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 32449 invoked from network); 27 Nov 2021 22:25:05 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 27 Nov 2021 22:25:05 -0000 Received: from mail-wm1-f47.google.com ([209.85.128.47]) by 4ess; Sat Nov 27 14:52:39 -0500 2021 Received: by mail-wm1-f47.google.com with SMTP id p18so11051578wmq.5 for <9front@9front.org>; Sat, 27 Nov 2021 11:51:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-disposition:content-transfer-encoding; bh=zQr/M7lQ27AyaAI18rQ3HgayY03PJ9rsLI2v2bkuSEs=; b=J7ZMrFvxwPtHszkhUs2LkN1Lbnk6mfNzWckGzMPXbpsfQNz48tEoWHq7g1HyY8iMUN hkkfoekEVYdOY5OjtMZHnI1dXAiuECX+v+EX1wekVEj5a8Rwm7j6tIJfyCTQGim6wfND zKWpzNw5hwxQEPf/GNiA3+ilgKeoRiGw/ioKjuR+/+3igph/WmUvs7pJvzU0qHq/t+ia j4IGYi5ZdT/+bLRyysZ4fInNRO9RY7qXejP1BRmI3SnWEsyqwv1vbcfMPL8l2uNOnIb6 4c75NXW67epy+D4FlKFgcX1bMeQh3i17gFx3z57E60ZITlSNq14nlRczxtzWVhpP/x6l J8XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :mime-version:content-disposition:content-transfer-encoding; bh=zQr/M7lQ27AyaAI18rQ3HgayY03PJ9rsLI2v2bkuSEs=; b=g6v+Rcjbn/bZ3430aOJmzQdUfYyxiOJx3yLXfTxiUJOZGz7Byko7hunTgMrtvXgggJ pCGcdQF7PV2rcU4TT+YBcz8oceCB7IqPduYLshi43pi+8AE/XWmXy9uCJp1294nGFbrZ GjBqAtEXS3NI/dE9/HryBNTeJ/sFkdfaw8rnWyXfRvYeHz669IAaLFeH60W65GEUgNO0 hoQCgwWihi78y3i8ppthVMWc7dhThF5M63qU6lr3KFrwHlYy2AnT/AiMpMqUOcuROaS8 QCJPwK10a9x4Oq3J6stML3Dj5lL8jsow90N9kLWBZXItWGzcvxXhRGwS2fo7eUV037/n eY6Q== X-Gm-Message-State: AOAM53290Ziq2lGhW/6uGAfNrEO01xW3Wh3os2ycoRIgya/WK/yFH2BY hC2D+ZPmbLrvIN3hCG1BWtGif/fSOr0= X-Google-Smtp-Source: ABdhPJwuIGJZ9ni/SaqlmD0kx+37G9GqABUk5v/lGrUEIva+jBwQ9IPHL46QTtin4lpFNRlyL7jCiQ== X-Received: by 2002:a05:600c:1f19:: with SMTP id bd25mr24428328wmb.75.1638042242074; Sat, 27 Nov 2021 11:44:02 -0800 (PST) Return-Path: Received: from beryllium.local (dialin-80-228-141-217.ewe-ip-backbone.de. [80.228.141.217]) by smtp.gmail.com with ESMTPSA id b11sm14680371wmj.35.2021.11.27.11.44.01 for <9front@9front.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Nov 2021 11:44:01 -0800 (PST) Received: from localhost (beryllium.local [local]) by beryllium.local (OpenSMTPD) with ESMTPA id cdc570fa for <9front@9front.org>; Sat, 27 Nov 2021 20:43:57 +0100 (CET) Date: Sat, 27 Nov 2021 19:43:57 +0000 From: Humm To: 9front@9front.org Message-ID: Mail-Followup-To: 9front@9front.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: generic advanced WEB2.0 scripting injection-based control Subject: [9front] [PATCH] troff: we are not htmlroff Reply-To: 9front@9front.org Precedence: bulk If we don’t explicitly check for ‘h’ in troff, we can’t reliably check for non-htmlroff well. Consider the following: .if h \{\ . de M . tm m ..\} Without this change, this will print m and not define macro M. --- diff 24b9a78ceb63234ef0b0e7d1da0d46119b7a297d c2f89dc6c142284fc3b4c38a4e9fbf5c0c5b2a1d --- a/sys/src/cmd/troff/n5.c Wed Nov 24 15:41:36 2021 +++ b/sys/src/cmd/troff/n5.c Wed Nov 24 20:56:44 2021 @@ -683,6 +683,7 @@ if (TROFF) true++; break; + case 'h': case ' ': break; default: