From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EGRuJ9/PgGO3+wAAbAwnHQ (envelope-from ) for ; Fri, 25 Nov 2022 15:23:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yBSYJt/PgGObTwAAG6o9tA (envelope-from ) for ; Fri, 25 Nov 2022 15:23:27 +0100 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 378CB1B2FE for ; Fri, 25 Nov 2022 15:23:27 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyZb6-00006L-Br; Fri, 25 Nov 2022 09:22:32 -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 1oyPpc-0006TE-NW for emacs-orgmode@gnu.org; Thu, 24 Nov 2022 22:56:52 -0500 Received: from poulenc.dedekind.net ([50.116.55.197]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyPpb-0007mm-0y for emacs-orgmode@gnu.org; Thu, 24 Nov 2022 22:56:52 -0500 Received: from rubiaceae (localhost [127.0.0.1]) by poulenc.dedekind.net (Postfix) with ESMTP id 4C2231E0E3 for ; Fri, 25 Nov 2022 03:56:47 +0000 (UTC) Received: by rubiaceae (Postfix, from userid 1001) id 283DE521030; Thu, 24 Nov 2022 22:56:47 -0500 (EST) From: David Zelinsky To: emacs-orgmode@gnu.org Subject: emphasis in embedded text Date: Thu, 24 Nov 2022 22:56:47 -0500 Message-ID: <86y1rzelfk.fsf@rubiaceae.dedekind.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=50.116.55.197; envelope-from=dzpost@dedekind.net; helo=poulenc.dedekind.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 25 Nov 2022 09:22:31 -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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669386207; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=GXmLP3HTgLwRYEwYFSmxnKxtHq2V+D8KuBSaejOzDaE=; b=utVGRm1iKRoRnMo9nrDd2i6PHKyojhs7vviXLKRhSt1E8pQamdvCLLoaTcZ63+tAPIDQH2 w3AdFD51Y981uvT50NanbJ9KrHHtkGfKp0XKaOInxKU4O7A2ttOsbWGZN9oNYMbOkbDLPD 0nAGL9np1QXOhXIuVSnZl9gSMoqBTFZdnikoOEfjjQVIf2RPt8tBobClZDdjyjMB3hwYSL I7E1dgeWBPO6ec2wexlQV0Id5QY50ykuxgZYeOM72gc1N9fei7+YaqTgSiMyvYt0QhKeuh 11NdqIG5ZD1vr6JO6UVpa1YJc++XAYZmO8lVrxgfd8DYgeCc0F0NJimw8pQKnw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669386207; a=rsa-sha256; cv=none; b=sQcxwRSHXh8LDN/MphMaLxORJFlcZiItP12vOLvTb54Va6ZETp642MapZlDmeCQtxYbiTR 4H934k1ExRPIG08MFF1zWo6hyUci00h+QLFTdbKFIijseZZZ8lVaRGcoHb5bCjSzoe+Jmj fUsg4uI6OlgQ9cNGkzNKpRFvVdjJBv7BR1n7uPQSLTVg4ia4HamI613VErhTV2B6Fsv/+I CF63ZsCoV3FQjP0VC8P8VjOEGLprqE+bCc2zGFMv3hUbecjyL9uNWSGMOVKeYXWywukxXg GX1wWNWc7dXmIPhHgssisrooX4er1OFvRZpvmTX9rii/HODT+UPsYyjtWjX7HQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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" X-Migadu-Spam-Score: -2.77 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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" X-Migadu-Queue-Id: 378CB1B2FE X-Spam-Score: -2.77 X-Migadu-Scanner: scn1.migadu.com X-TUID: jGHo3VTDldrN I wanted to have some text emphasized when immediately following a comma. I found in the manual the suggestion to use a zero-width space character. That works, except that it turns out that by default emacs actually displays the zero-width space as 1-pixel wide. That's not noticeable in a paragraph. But in an org-mode table, it causes cell boundaries to be slightly misaligned. And with more than one of these in a row, it becomes more than slightly. That is very annoying. At first I did not understand what was happening. But then I found this post on stackexchange that explains it all very clearly, along with how to change emacs' default, either globally or just in certain modes: https://emacs.stackexchange.com/questions/65108/zero-width-space-shows-as-underscore Before I found this, I also stumbled on suggestions (apparently predating adoption of the zero-width space paradigm) to customize `org-emphasis-regexp-components'. That actually works very nicely for my purpose, so I'll probably stick with that. But the point of this post is to suggest that the org-mode manual ought to document these things more fully. The section (12.2 Emphasis and Monospace) that mentions the zero-width space approach ought to also mention that by default in emacs these are not actually zero width. Something like the description in the linked post would be great. And for `org-emphasis-regexp-components', as far as I can tell this variable is not mentioned at all anywhere in the manual. I suspect maybe this is because it's a kind of kludgy variable and maybe its use should not be encouraged. But it could at least be mentioned. I only learned of its existence from those older posts I mentioned above. I don't know if this list is the right place to make such a suggestion. Should I submit a bug report with some suggested modifications to the manual? Or is this all documented somewhere already and I just didn't find it? ***NOTE***: I gather there's some controversy about the zero-width space approach, especially in regard to exports. I very much don't want to trigger that debate! I'm merely suggesting the manual say a bit more about how things currently work, so others won't spend as much time as I did figuring it out :) -David