Buffer contains:
> #+BEGIN: clocktable :match tag > #+END: Hiting C-c C-c with point on #+BEGIN results in “Invalid match tag: tag”. This is from the first line of code in org-tags-expand: (unless (org-string-nw-p match) (error "Invalid match tag: %S" match)) Tracking this down, the problem seems too be that org-prepare-dblock produces a list of params that is the following: (:name "clocktable" :match tag) Emacs : GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.16.0) of 2024-09-04 Package: Org mode version 9.7.10 (release_9.7.10 @ /home/mah/work/code/emacs-master/lisp/org/) and running “/usr/bin/emacs -Q” on Emacs : GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.16.0) of 2024-07-22, modified by Debian Package: Org mode version 9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/) -- http://hexmode.com/ Don't ask me who's influenced me. A lion is made up of the lambs he's digested, and I've been reading all my life. -- Giorgos Seferis