From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id AAErH65fE2UqiwAA9RJhRA:P1 (envelope-from ) for ; Wed, 27 Sep 2023 00:48:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id AAErH65fE2UqiwAA9RJhRA (envelope-from ) for ; Wed, 27 Sep 2023 00:48:14 +0200 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 2A7C840CF1 for ; Wed, 27 Sep 2023 00:48:14 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jLlhX09M; 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=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695768494; 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:dkim-signature; bh=MYRqoTwQrSdnxlVrIyJEGikqhyVUWFqoPy1/sEpq7pU=; b=JnLwQF+aWGFymB1pt6ufHMQl3B6rS896oPafuCJ18rYvHPLVs8l0gfBCVCdK19mOXyct6C s757/7FaSbmGn/rthVx/MQ1pJ8OzEgHdFxnB9WVkMiIbbM0NES5qQwAZjssD8ADPfHjEfV oyK7onkPAvBdkr8P8amkAc5djRkbA6i7NJOI6pYRmu3bEzlY9YHOPIvZahMfCaMtNGeS7Z Sww6AlCDdM04X8J3uksMXBuBjkU+S5vssZIVHSzuCKUz2lwsQzjniMSfhel4p07GpWN5wZ OaZev3Xj1XVLdoaRyRItz+Ln/AYhNH5Xue9Rwf4tTjMgZk3Cnxr7HAoRu28WbQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695768494; a=rsa-sha256; cv=none; b=Xz/3kPQ8emARvdhSan0rgrRuSEHt/w2D9MbTxrcCzfbO/V+mUVQKds6ymWmutVju8GfdTg n/QzsRo7duvKutab9KjQxqOTyU0RkAnrETEmod7UCkPnP49zftPnxlnevh0PbagUjvcGeJ d9Td0qRyMLCoGaQoymiNDqaoIO24qOPQSG1mCKOGyiukcR4qHVjvqw4kuE/bRW/LELPCyl DFy1JnrXQQQVu2bhDoR3K73x72IAucBC2CGGxAb2KVbLHFgTWC+9Q8AT7qgXsys1jUl8cj fzEgTszPAyRJHRR9/kJslqVsxsdwhMBgKySQ6eD/nXHM3tcKG3e/CVPljOtyqQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jLlhX09M; 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=none) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qlGpy-0002Fm-5g; Tue, 26 Sep 2023 18:47:26 -0400 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 1qlGpv-0002FK-Pp for emacs-orgmode@gnu.org; Tue, 26 Sep 2023 18:47:23 -0400 Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qlGpt-0007Q6-Ki for emacs-orgmode@gnu.org; Tue, 26 Sep 2023 18:47:23 -0400 Received: by mail-qt1-x82d.google.com with SMTP id d75a77b69052e-41517088479so53646051cf.1 for ; Tue, 26 Sep 2023 15:47:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695768440; x=1696373240; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=MYRqoTwQrSdnxlVrIyJEGikqhyVUWFqoPy1/sEpq7pU=; b=jLlhX09MPc8HYlPXoWw4ezlWAfcyptngoZB7l/eSdKtvYR5Mw656T2oGQL7NzwwzNf +i8ljNt2yIA0enYSUSSDe7HLBzBtdPJorOTXSfei1HiHnc0oWtU8rSjDNsLcxW5V+6nf ts02Y/dJyFq3wESL9uvISa0xtDdy8dZA7uhwLVL/9iTNjVm9aslHmWupb8jUCy/fvv09 S79+EaKr1AOXBt7Y8ra2lGteoMZOQwQj2PD/+QudR0yKB+Yda8MZyT0Ex06/MabSgD74 nd+ayAeE0eXEFLcW1gY9E+X9qr1cKzHaxCMFmPcVOdZbkmHV8yQ8739T0vWgI9nAvvJ3 5mBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695768440; x=1696373240; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=MYRqoTwQrSdnxlVrIyJEGikqhyVUWFqoPy1/sEpq7pU=; b=d87XMHietlSWv6wZsqhEiSqmcoI0ZvpEapHtR9nyckKOdd0WRcojj9/Kzz9ooycQ+I u+3/dXXbft39+0OReYfsKcUUrK7k2WEEMBpI3o5U0uctp9WgrNLZ/6lehUMUKRAktdC6 6GtAMmEiIeWS1cCL4QckQwCJ3iOXKQN/hlxCRb5lw1fgqlbcb/cy+TzD/XtaAxzw7keL uYz6qApIRkCVHE3m/THfrPQIu6RjtNuIWW/BdET1hkHdgKKpPGVOc3zEXWvx15Zh1RLo FWXoIkNVoS7GPTYM8tU96ZibaEXG+cQYLor2zDZQWY3wbxoShF/MSusVOpLIIAkmhmH1 W91w== X-Gm-Message-State: AOJu0YznPlLNg7OrYBN5yAFWdn8bsZeTi4MI+SireYf4wq/CUr97oFK6 PKkBAt5LEGJ0rIKnzo/Ity0Zw+4HA6ncOhl4FPqJP5bJR/w= X-Google-Smtp-Source: AGHT+IE3FB0JKtCc5JLBtYQkTwdHEvd4xGNZdQKh4KaED9VV0MJ4GwXs0qHaj2gyJCZZiK0GvFg75XhiEyNdhDjdv7c= X-Received: by 2002:ad4:5942:0:b0:658:310d:2214 with SMTP id eo2-20020ad45942000000b00658310d2214mr3471481qvb.9.1695768439975; Tue, 26 Sep 2023 15:47:19 -0700 (PDT) MIME-Version: 1.0 From: Paul Stansell Date: Tue, 26 Sep 2023 23:46:43 +0100 Message-ID: Subject: Named columns in org tables [9.7-pre (release_9.6.9-797-g4d0f89] To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000007c74f506064adbb1" Received-SPF: pass client-ip=2607:f8b0:4864:20::82d; envelope-from=paulstansell@gmail.com; helo=mail-qt1-x82d.google.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -6.60 X-Migadu-Spam-Score: -6.60 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Queue-Id: 2A7C840CF1 X-TUID: wAgGYAj+rZmi --0000000000007c74f506064adbb1 Content-Type: text/plain; charset="UTF-8" Hello, On this page https://orgmode.org/manual/Advanced-features.html it says - '!' :: The fields in this line define names for the columns, so that you may refer to a column as '$Tot' instead of '$6'. However, when I experimented with this I found that the first of the following two tables works (i.e. the empty cells are filled in correctly), but the second doesn't (the only difference is the replacement of $4 with $c3 in the second table): |---+----+----+----| | ! | c1 | c2 | c3 | | # | 1 | 2 | | | # | 3 | 4 | | |---+----+----+----| #+TBLFM: $4 = $c1 + $c2 |---+----+----+----| | ! | c1 | c2 | c3 | | # | 1 | 2 | | | # | 3 | 4 | | |---+----+----+----| #+TBLFM: $c3 = $c1 + $c2 Is this a bug? Thanks, Paul =========================================================== Emacs : GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.16.0) of 2023-03-16, modified by Debian Package: Org mode version 9.7-pre (release_9.6.9-797-g4d0f89 @ ~/.emacs.d/org-mode-git/lisp/) current state: ============== (setq org-link-elisp-confirm-function 'yes-or-no-p org-bibtex-headline-format-function 'org-bibtex-headline-format-default org-persist-after-read-hook '(org-element--cache-persist-after-read) org-export-before-parsing-hook '(org-attach-expand-links) org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-archive-hook '(org-attach-archive-delete-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines org-cycle-optimize-window-after-visibility-change org-cycle-display-inline-images) org-persist-before-read-hook '(org-element--cache-persist-before-read) org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-fold-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-confirm-shell-link-function 'yes-or-no-p outline-isearch-open-invisible-function 'outline-isearch-open-invisible org-agenda-before-write-hook '(org-agenda-add-entry-text) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-elisp-link-function 'yes-or-no-p org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-persist-directory "/tmp/org-persist-Cls3dG" org-fold-core-isearch-open-function 'org-fold--isearch-reveal org-persist-before-write-hook '(org-element--cache-persist-before-write) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-link-shell-confirm-function 'yes-or-no-p org-babel-pre-tangle-hook '(save-buffer) org-agenda-loop-over-headlines-in-active-region nil org-occur-hook '(org-first-headline-recenter) org-metadown-hook '(org-babel-pop-to-session-maybe) org-link-parameters '(("attachment" :follow org-attach-follow :complete org-attach-complete-link) ("id" :follow org-id-open) ("eww" :follow org-eww-open :store org-eww-store-link) ("rmail" :follow org-rmail-open :store org-rmail-store-link) ("mhe" :follow org-mhe-open :store org-mhe-store-link) ("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export) ("info" :follow org-info-open :export org-info-export :store org-info-store-link :insert-description org-info-description-as-command) ("gnus" :follow org-gnus-open :store org-gnus-store-link) ("docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link) ("bibtex" :follow org-bibtex-open :store org-bibtex-store-link) ("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link :store org-bbdb-store-link) ("w3m" :store org-w3m-store-link) ("doi" :follow org-link-doi-open :export org-link-doi-export) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow #[514 "\301\300\302 Q \"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("mailto" :follow #[514 "\301\300\302 Q \"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("https" :follow #[514 "\301\300\302 Q \"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("http" :follow #[514 "\301\300\302 Q \"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("ftp" :follow #[514 "\301\300\302 Q \"\207" ["ftp" browse-url ":"] 6 "\n\n(fn URL ARG)"] ) ("help" :follow org-link--open-help :store org-link--store-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp)) org-metaup-hook '(org-babel-load-in-session-maybe) ) --0000000000007c74f506064adbb1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

On this page https://orgmode.org/manual/Advan= ced-features.html
it says
- '!' :: The fields in this lin= e define names for the columns, so that
=C2=A0 you may refer to a column= as '$Tot' instead of '$6'.

However, when I experime= nted with this I found that the first of the
following two tables works = (i.e. the empty cells are filled in
correctly), but the second doesn'= ;t (the only difference is the
replacement of $4 with $c3 in the second = table):

|---+----+----+----|
| ! | c1 | c2 | c3 |
| # | =C2=A0= 1 | =C2=A02 | =C2=A0 =C2=A0|
| # | =C2=A03 | =C2=A04 | =C2=A0 =C2=A0||---+----+----+----|
#+TBLFM: $4 =3D $c1 + $c2

|---+----+----+--= --|
| ! | c1 | c2 | c3 |
| # | =C2=A01 | =C2=A02 | =C2=A0 =C2=A0|
= | # | =C2=A03 | =C2=A04 | =C2=A0 =C2=A0|
|---+----+----+----|
#+TBLFM= : $c3 =3D $c1 + $c2

Is this a bug?

Than= ks,

Paul

=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D

Emacs =C2=A0: GNU Emacs 28.2 (build 1= , x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.16.0)
=C2= =A0of 2023-03-16, modified by Debian
Package: Org mode version 9.7-pre (= release_9.6.9-797-g4d0f89 @ ~/.emacs.d/org-mode-git/lisp/)

current s= tate:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq
=C2=A0org-l= ink-elisp-confirm-function 'yes-or-no-p
=C2=A0org-bibtex-headline-fo= rmat-function 'org-bibtex-headline-format-default
=C2=A0org-persist-= after-read-hook '(org-element--cache-persist-after-read)
=C2=A0org-e= xport-before-parsing-hook '(org-attach-expand-links)
=C2=A0org-cycle= -tab-first-hook '(org-babel-hide-result-toggle-maybe
=C2=A0 =C2= =A0org-babel-header-arg-expand)
=C2=A0org-archive-hook '(org-attach-= archive-delete-maybe)
=C2=A0org-cycle-hook '(org-cycle-hide-archived= -subtrees org-cycle-show-empty-lines
=C2=A0org-cycle-optimize-window-= after-visibility-change
=C2=A0org-cycle-display-inline-images)
=C2= =A0org-persist-before-read-hook '(org-element--cache-persist-before-rea= d)
=C2=A0org-mode-hook '(#[0 "\300\301\302\303\304$\207" =C2=A0 [add-hook change-major-mode-hook org-fold-show-all append
= =C2=A0 =C2=A0local]
=C2=A0 5]
#[0 "\300\301\302\303\304$\= 207"
=C2=A0 [add-hook change-major-mode-hook org-babel-show-resu= lt-all
=C2=A0 =C2=A0append local]
=C2=A0 5]
org-babel-res= ult-hide-spec org-babel-hide-all-hashes)
=C2=A0org-confirm-shell-link-fu= nction 'yes-or-no-p
=C2=A0outline-isearch-open-invisible-function &#= 39;outline-isearch-open-invisible
=C2=A0org-agenda-before-write-hook = 9;(org-agenda-add-entry-text)
=C2=A0org-src-mode-hook '(org-src-babe= l-configure-edit-buffer
=C2=A0 =C2=A0 org-src-mode-configure-edit-buf= fer)
=C2=A0org-confirm-elisp-link-function 'yes-or-no-p
=C2=A0org= -speed-command-hook '(org-speed-command-activate
=C2=A0org-babel= -speed-command-activate)
=C2=A0org-persist-directory "/tmp/org-pers= ist-Cls3dG"
=C2=A0org-fold-core-isearch-open-function 'org-fold= --isearch-reveal
=C2=A0org-persist-before-write-hook '(org-element--= cache-persist-before-write)
=C2=A0org-tab-first-hook '(org-babel-hid= e-result-toggle-maybe
=C2=A0 =C2=A0 =C2=A0org-babel-header-arg-expand= )
=C2=A0org-link-shell-confirm-function 'yes-or-no-p
=C2=A0org-ba= bel-pre-tangle-hook '(save-buffer)
=C2=A0org-agenda-loop-over-headli= nes-in-active-region nil
=C2=A0org-occur-hook '(org-first-headline-r= ecenter)
=C2=A0org-metadown-hook '(org-babel-pop-to-session-maybe)=C2=A0org-link-parameters '(("attachment" :follow org-attac= h-follow :complete
org-attach-complete-link)
=C2=A0 =C2=A0 =C2= =A0 ("id" :follow org-id-open)
=C2=A0 =C2=A0 =C2=A0 ("= eww" :follow org-eww-open :store org-eww-store-link)
=C2=A0 =C2= =A0 =C2=A0 ("rmail" :follow org-rmail-open :store
org-rmail= -store-link)
=C2=A0 =C2=A0 =C2=A0 ("mhe" :follow org-mhe-op= en :store org-mhe-store-link)
=C2=A0 =C2=A0 =C2=A0 ("irc" := follow org-irc-visit :store org-irc-store-link
:export org-irc-export= )
=C2=A0 =C2=A0 =C2=A0 ("info" :follow org-info-open :expor= t org-info-export
:store org-info-store-link :insert-description
= org-info-description-as-command)
=C2=A0 =C2=A0 =C2=A0 ("gnus&q= uot; :follow org-gnus-open :store
org-gnus-store-link)
=C2=A0 = =C2=A0 =C2=A0 ("docview" :follow org-docview-open :export
o= rg-docview-export :store org-docview-store-link)
=C2=A0 =C2=A0 =C2=A0= ("bibtex" :follow org-bibtex-open :store
org-bibtex-store-= link)
=C2=A0 =C2=A0 =C2=A0 ("bbdb" :follow org-bbdb-open :e= xport org-bbdb-export
:complete org-bbdb-complete-link :store
o= rg-bbdb-store-link)
=C2=A0 =C2=A0 =C2=A0 ("w3m" :store org-= w3m-store-link)
=C2=A0 =C2=A0 =C2=A0 ("doi" :follow org-lin= k-doi-open :export
org-link-doi-export)
=C2=A0 =C2=A0 =C2=A0 (&= quot;file+sys") ("file+emacs")
=C2=A0 =C2=A0 =C2=A0 (&= quot;shell" :follow org-link--open-shell)
=C2=A0 =C2=A0 =C2=A0 (= "news" :follow
#[514 "\301\300\302 Q \"\207"=
=C2=A0["news" browse-url ":"] 6 "\n\n(fn U= RL ARG)"]
)
=C2=A0 =C2=A0 =C2=A0 ("mailto" :foll= ow
#[514 "\301\300\302 Q \"\207"
=C2=A0["m= ailto" browse-url ":"] 6 "\n\n(fn URL ARG)"]
= )
=C2=A0 =C2=A0 =C2=A0 ("https" :follow
#[514 "= \301\300\302 Q \"\207"
=C2=A0["https" browse-url= ":"] 6 "\n\n(fn URL ARG)"]
)
=C2=A0 =C2=A0= =C2=A0 ("http" :follow
#[514 "\301\300\302 Q \"\= 207"
=C2=A0["http" browse-url ":"] 6 "= \n\n(fn URL ARG)"]
)
=C2=A0 =C2=A0 =C2=A0 ("ftp"= :follow
#[514 "\301\300\302 Q \"\207" ["ftp"= ; browse-url ":"]
=C2=A06 "\n\n(fn URL ARG)"] )
=C2=A0 =C2=A0 =C2=A0 ("help" :follow org-link--open-h= elp :store
org-link--store-help)
=C2=A0 =C2=A0 =C2=A0 ("fi= le" :complete org-link-complete-file)
=C2=A0 =C2=A0 =C2=A0 (&quo= t;elisp" :follow org-link--open-elisp))
=C2=A0org-metaup-hook '= (org-babel-load-in-session-maybe)
=C2=A0)

--0000000000007c74f506064adbb1--