From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2NIqB0mo2l5PXwAA0tVLHw (envelope-from ) for ; Fri, 05 Jun 2020 20:17:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id AFEfA0mo2l6lfgAA1q6Kng (envelope-from ) for ; Fri, 05 Jun 2020 20:17:13 +0000 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 D7FB5940039 for ; Fri, 5 Jun 2020 20:17:12 +0000 (UTC) Received: from localhost ([::1]:43566 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhIm7-0006T7-QY for larch@yhetil.org; Fri, 05 Jun 2020 16:17:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhIlu-0006Ph-Jo for guix-devel@gnu.org; Fri, 05 Jun 2020 16:16:58 -0400 Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21339) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jhIls-0006s2-Nd; Fri, 05 Jun 2020 16:16:58 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1591388213; cv=none; d=zohomail.com; s=zohoarc; b=DBBzWpdIWHMVwfmr6Z0aFIsqFGUKEPJER4gBh1hDnTQLfkwaIFL1sOynWv80jZNfmE0DrqHLO5zeuIBmOStBjNk3zY/z5sEQPFs6X3MjzUNGUlzyXaxZT3Cb6vq3e1o2bk5GG3OIsyW/ARlQiR9AAuojrT3qFhvsRALR+QnazEk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1591388213; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=OKdslieMEE/0zm9kJ0V/tiLfASxvjxoUH/HgwIPN65Y=; b=ll67a2OZXJT8zRqkad3Lf8kV2eMFzYBuShoTVMFTqwEcRJNgliwC7dq0N+nl4JfBHct7pkJskKIManvUmZviio9XVrz68wABNCShMNqS+NVggJfWPh8r2GDSG9jIapQN3fD16VrgJpOcKVowezjWe01WVYMreEzMQPcGwZT775w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1591388213; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=OKdslieMEE/0zm9kJ0V/tiLfASxvjxoUH/HgwIPN65Y=; b=CQNimcXjQUZ8fGCN/IJPP7Gv5hjCyZXP0Kd1znPRMt8FBcJHKuzLqms8UsqRCTmW MxyzmUE3BUrV+LRI/RnzvJFDkZoga9BoYcNPU6o9Vs12Y2e2/TDbKc+xuF2qoWrPwle JF7wPwUbDxOFXsZwJ2Q5hRf9KrEsyOm/5pRQbB+M= Received: from localhost (p54ad4a40.dip0.t-ipconnect.de [84.173.74.64]) by mx.zohomail.com with SMTPS id 1591388210423545.3704629415953; Fri, 5 Jun 2020 13:16:50 -0700 (PDT) References: <703B1E0F-BE41-469D-9357-D3FFAA5CF8FD@lepiller.eu> User-agent: mu4e 1.4.4; emacs 26.3 From: Ricardo Wurmus To: Julien Lepiller Subject: Re: Manual consistency In-reply-to: <703B1E0F-BE41-469D-9357-D3FFAA5CF8FD@lepiller.eu> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Fri, 05 Jun 2020 22:16:46 +0200 Message-ID: <875zc5e09d.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.53; envelope-from=rekado@elephly.net; helo=sender4-of-o53.zoho.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/05 15:51:05 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] 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_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=elephly.net header.s=zoho header.b=CQNimcXj; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: 1.99 X-TUID: /JvBjXS1Yrvw Julien Lepiller writes: > If there is a way to mark a sentence to wrap it into a class, we could > also do some CSS magic with :before. That will allow us to show the > prompt while making it non-selectable I think, which is nice visually > and for copy-pasting. I'm not a texinfo guru though, so I don't know > if it is feasible. We can wrap each line in an @example with @code and then style each of these lines. So we would do something like this: --8<---------------cut here---------------start------------->8--- @example @code{cd /tmp} @code{tar --warning=3Dno-timestamp -xf \ /path/to/guix-binary-@value{VERSION}.x86_64-linux.tar.xz} @code{mv var/guix /var/ && mv gnu /} @end example --8<---------------cut here---------------end--------------->8--- and then add this CSS rule: --8<---------------cut here---------------start------------->8--- div.example pre.example code::before { content: "$ "; } --8<---------------cut here---------------end--------------->8--- In the manual sometimes the prompt is # (for root) and sometimes it is $ (when it=E2=80=99s any other user). We cannot distinguish these cases unle= ss we abuse the Texinfo format by wrapping examples to allow for a more explicit rule to match.=20 --=20 Ricardo