From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WJxRIzZpjWMiSgEAbAwnHQ (envelope-from ) for ; Mon, 05 Dec 2022 04:44:54 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6LRJIzZpjWOhUwAA9RJhRA (envelope-from ) for ; Mon, 05 Dec 2022 04:44:54 +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 A646111037 for ; Mon, 5 Dec 2022 04:44:53 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p22OZ-0002S2-00; Sun, 04 Dec 2022 22:43:55 -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 1p22OX-0002Rf-6K for emacs-orgmode@gnu.org; Sun, 04 Dec 2022 22:43:53 -0500 Received: from pb-smtp21.pobox.com ([173.228.157.53]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p22OV-0000ru-D3 for emacs-orgmode@gnu.org; Sun, 04 Dec 2022 22:43:52 -0500 Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 5F6891B40CE; Sun, 4 Dec 2022 22:43:46 -0500 (EST) (envelope-from wtd@pobox.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=date:from :to:cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sasl; bh=6yF9tjkeuU71aRM16Iy3Jkmrkm5p5sBsBi3IWZ OWrrs=; b=yMCdZ8Sgz1p9pPxbBl5CzfCPPUr4oq6hCPvZOnVcFvo6wAFL+JrZ+x MlQQu+vPaNawwQ3XlmQpnKg3rEhYHarHmGt2ZrxzdjdxbHfPCrlmlK2dQXCWmr+k hPxEcwtKXgmByOVr7cdCJIdSGFcTczNi5jkLAx9VNIYlktSej9jpM= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id 587751B40CD; Sun, 4 Dec 2022 22:43:46 -0500 (EST) (envelope-from wtd@pobox.com) Received: from shell3.miskatonic.org (unknown [199.103.62.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id 492CA1B40CC; Sun, 4 Dec 2022 22:43:43 -0500 (EST) (envelope-from wtd@pobox.com) Received: by shell3.miskatonic.org (Postfix, from userid 1000) id 3AB1312157B; Sun, 4 Dec 2022 22:43:41 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by shell3.miskatonic.org (Postfix) with ESMTP id 3441812125A; Sun, 4 Dec 2022 22:43:41 -0500 (EST) Date: Sun, 4 Dec 2022 22:43:41 -0500 (EST) From: William Denton X-X-Sender: wtd@shell3.miskatonic.org To: Vikas Rawal cc: org-mode mailing list Subject: Re: Displaying macros differently In-Reply-To: Message-ID: References: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Pobox-Relay-ID: 03C9D88E-744F-11ED-9507-B31D44D1D7AA-56320186!pb-smtp21.pobox.com Received-SPF: pass client-ip=173.228.157.53; envelope-from=wtd@pobox.com; helo=pb-smtp21.pobox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1670211894; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=6eJyVcrbetDvZM46WCfls2qOlXRdXpirHTQoNAXAbYM=; b=KAq7Lu8Ap0XCDS37Ekc0oAT7EQVHZ+UXBYgyF1XOZC2AFOGZGx1zopJHJ6UCHky2hn8Adq rLoO4srqOyHzlSfabio83J0L2MvqGpwuvdiOi2tstpwg3BdKxFePbf12w5Kj578yClDNBY q/wbStmCAnxwz+1a3jnFmbo2KmGhhjrzuWdDkIwXg62xDO6FqPQyjtkuv1Q1Dh82GZZlpJ dL9IUxFkxL2nUQuB9JN12ktZ7n1hWP9IcNXpLIH1mw1HrTF+DVSAXgQ66hie/q+fWdk/Sh 7nV2+6SuP4xR349uAsuKyg+kaWPO9aKy5XCGECVtNofXeAwzyPx6CcSXsdispw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670211894; a=rsa-sha256; cv=none; b=LTlfab4JAuDMAvpNS14JyWYWKa/jjPR326klyExouCMCvxRr4mDHe69NsqKKo6GCE7ZZDF y/+3il88mN26BmhGZ936VlEa2K9lTKlLr3XdxdQaI4qxn+tkQzCK8YwY/0FgD5l9nRqXcP kah6U3CEhncU0HnOhcS32Bpzwl5KwqxkAifuW1DXXx21xD9LEsiqgpzQLSR33yXYlqYy77 AE7Fh5hXRlWWJ616LXbsr4iiA7gdrPT3TFqxplxa1ZSst3A+Ob1CRydbK5s9S1IERxFlC1 oJvr2nx3CmNKYncXKQUfmf2Sw1KjpXBZKtEs8rQqlYHU3fGsa917MnV0/voMkA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=yMCdZ8Sg; dmarc=pass (policy=none) header.from=pobox.com; 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: -6.26 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=yMCdZ8Sg; dmarc=pass (policy=none) header.from=pobox.com; 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: A646111037 X-Spam-Score: -6.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: khgy3ymLGRCn On 4 December 2022, Vikas Rawal wrote: > I frequently use orgmode macros -- like {{{M(Year 1998--99)}}} -- in tables > designed for latex export. I find that the macro syntax occupies many > character spaces. At the very least, 9 spaces are taken up even if my macro > shortcut is just one character long. This is very difficult with wide > tables as often the tables go off the screen just because of this. > > I was wondering if there is a simple way of making org display the macros > differently. That is, use some kind of overlay, and display the above macro > may be like M:Year 1998--99. Or some special character could be used to > denote that there is a macro underlying what is visible here. Is this close enough? (setq org-hide-macro-markers t) That hides the {{{macro}}} curly brackets (if there's no leading space). I also have this to toggle macro visibility in the document so I can see them when I want to: #+begin_src emacs-lisp (defun wtd/toggle-org-macro-markers () "Toggle visibility of {{{macro}}} markers" (interactive) (setq org-hide-macro-markers (not org-hide-macro-markers)) (font-lock-mode) (font-lock-mode)) #+end_src I think there's been some discussion about evaluating the macros and showing the result, but I don't think that's possible. Bill -- William Denton https://www.miskatonic.org/ Librarian, artist and licensed private investigator. Toronto, Canada