From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id UA6wAIs8dGf1RgEAe85BDQ:P1 (envelope-from ) for ; Tue, 31 Dec 2024 18:48:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id UA6wAIs8dGf1RgEAe85BDQ (envelope-from ) for ; Tue, 31 Dec 2024 19:48:43 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=MTzp+HXS; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=disroot.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735670922; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Kh7qu5xvLVn6uUX5W3Ey9yQ8JYEnB+FUPUAxiJEbx5E=; b=pl4of6NuSbyx7Y5/4+VNh7MaKjCT5fi45Ntr82iomlqle36vjUooB1LAIVr3/2fLqNa9zP HAhkpZBNfgGJu286P6HGeLF98pENloBJvfagpRldsgPUCXolmtSvBzndJJW0HQr74P0e+W mBPDWsBPp/Bb/44mUJLHu/ilHSdbxKZOo50ZnDmW01K8XX9BrIiFUinwEs4erHQ7vArwEf HItgmJDghpthqMZKCP7asm8Jswl8CQ5XmNk9uqZKXqL3L5jXzLGUx6SONnVtaChuJRKXPe O7C3CjwwhVPu2Z9YP4hoXJ/QgMKHbJAj6gxFY/6UmoB+aSfBdtEZ31+gZbS7JA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=MTzp+HXS; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=disroot.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735670922; a=rsa-sha256; cv=none; b=UG89aOIJBdbT7GORvrsygxTQEtnsIA/EHTSsWIo6+3TGJ9nV2L/RsqmJo8OqKxL5m9riyq osRRo0orLQDIapArZEz5RpPnp82l86pX9X5BXXgTu5YKuyBJmrHF5ANP5BGytQw4/G7UwA /AnWFGxCXDnydbm8ecFmQj1KFq6Jw4Y3cm/N1E4cge6uHARzRXETOlhcOGgF2Axf/fxF1P P2sCBSrqFcBcqiqQIya22kIprs3D6KrQEsi/Ejy+UaArw6bIoF+wQTDzXVcKVPgyyiaVwQ pakNiOiZGOouNALsOO5xV9DscnvVtMZqa+q8RQsX9EhpZPThLnUWWOzw9WYYxw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BBD4542C44 for ; Tue, 31 Dec 2024 19:48:42 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tShHo-0007jr-Mi; Tue, 31 Dec 2024 13:48:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tShCn-0006hF-3x; Tue, 31 Dec 2024 13:43:01 -0500 Received: from layka.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tShCl-0002h3-5H; Tue, 31 Dec 2024 13:43:00 -0500 Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8B14A2591A; Tue, 31 Dec 2024 19:42:54 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 2l2ob9J8CLdA; Tue, 31 Dec 2024 19:42:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1735670573; bh=KQs6KDMt6AtR+1Sv2qQHsxZqoW8EqPFJ5ql15dMhqos=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=MTzp+HXS9GIGZBQb305XDxSEjpjnVje//aAdzlKydDoUvYItxaVAS/0McXWmzHvC1 h5Hdzp4e7rastd78f2uymABMV0nhFkhf9ZpsvnSoX/wTWp/WP6uCTLhu2nIT470Ygk PmBAHIuZ0B+I40KmilRHwsixiEutx5STlyJZZKu34N5JWah/Us+LU3IjMLISewYPGP RGp16T2AS6lCIcIw6Kw9QOt4snh238c9fLw+g8tabILb0ixsledfs/+wf0nUVp5ON5 Zlnhpqqh6It8CN3jMapuE6kGhxf7q6uyCv1YB+iQsFZxSg6+Jm9ZlWZ4o4XmF2H4xw h/Cs2Rmxw6Kgw== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 31 Dec 2024 19:42:52 +0100 Message-Id: From: "onf" To: "Ihor Radchenko" , "G. Branden Robinson" Cc: , , "Ingo Schwarze" Subject: Re: [BUG] "\fC" macro in ox-man.el [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.2/lisp/org/)] References: <20241218172040.tyytdhbyl7annyli@illithid> <87ttav7mii.fsf@localhost> <20241231170034.nzmponxxjppqrhf5@illithid> <87bjwrhg6a.fsf@localhost> In-Reply-To: <87bjwrhg6a.fsf@localhost> Received-SPF: pass client-ip=178.21.23.139; envelope-from=onf@disroot.org; helo=layka.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 31 Dec 2024 13:48:11 -0500 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -6.79 X-Spam-Score: -6.79 X-Migadu-Queue-Id: BBD4542C44 X-TUID: j2ObnGxPuzpm On Tue Dec 31, 2024 at 7:15 PM CET, Ihor Radchenko wrote: > >> And this discussion was about using \fC to represent "code" (also, > >> "fixed width" and tables). We use \fC historically, and it is not very > >> clear what could be a replacement that does not break Man export > >> compared to previously produced results. > > > > The answer depends on how portable you want your man(7) output to be. = A > > major reason is that font names are not portable across output > > devices;... > > 1. We want to avoid breaking cases when \fC did work (it is a minimum) > 2. Ideally, we want things to work in _more_ cases > 3. Even more ideally, we want things to work in all the cases > > If (1) is not possible, compromises will have to be made. I hope that we > do not have to make compromises. > > Also, what if we leave \fC and add \f[CR]/.EX on top? > AFAIU, the worst case scenario for \fC is that it does nothing. By > leaving it there, we thus retain old working exports working while also > adding appropriate format when \f[CR] is supported. The \f escape sets current font. \fP restores previous font. What this means is that doing \fC\f[CR]Lorem\fP: (1) sets the text Lorem in Courier if font name C or CR exists (2) restores previous font if neither font C nor CR exists (3) sets font to Courier if both font name C and CR exist > >> From my reading of man 7 man, .EX/.EE are more suitable for paragraph > >> markup: > > ... > > Yes. `EX`/`EE` works only with "displays". > > May you elaborate about the meaning of "displays"? Branden will likely provide you with a more detailed description, but in short, displays are text that is set off from the rest. Example from groff(7): Long words may then look intimidating in the input; a clarifying approach might be to use the input line continuation escape sequence \newline to place each underlined character on its own input line. Thus, .nf \&\fB: ${\fIvar\fR\c \zo\(ul\ \zp\(ul\c \&\fIvalue\fB} .fi produces : ${varopvalue} as output. Checking the manpage's source shows that this is done precisely using the EX/EE macros: Thus, . .RS .EX \&.nf \[rs]&\[rs]fB: ${\[rs]fIvar\[rs]fR\[rs]c \[rs]zo\[rs](ul\[rs] \[rs]zp\[rs](ul\[rs]c \[rs]&\[rs]fIvalue\[rs]fB} \&.fi .EE .RE . produces . .RS .EX .BI ": ${" var \c \zo\(ul\ \zp\(ul\c .IB value } .EE .RE . as output. > Do I understand correctly that blank line is sometimes interpreted as > vertical spacing and sometimes ignored? A blank input line is equivalent to .sp unless the .blm request was called to change this behavior. .blm is groff's invention (see groff_diff(7)). ~ onf