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 ms9.migadu.com with LMTPS id ELB0FlXZcWTMKQEASxT56A (envelope-from ) for ; Sat, 27 May 2023 12:20:05 +0200 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 UHFgFVXZcWSBZwEAG6o9tA (envelope-from ) for ; Sat, 27 May 2023 12:20:05 +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 33BD618B0C for ; Sat, 27 May 2023 12:20:04 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2r0s-0001JJ-B9; Sat, 27 May 2023 06:19:06 -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 1q2r0q-0001J8-Fv for emacs-orgmode@gnu.org; Sat, 27 May 2023 06:19:04 -0400 Received: from mail-vk1-xa2a.google.com ([2607:f8b0:4864:20::a2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q2r0o-0007qo-KT for emacs-orgmode@gnu.org; Sat, 27 May 2023 06:19:04 -0400 Received: by mail-vk1-xa2a.google.com with SMTP id 71dfb90a1353d-457026417ffso457454e0c.3 for ; Sat, 27 May 2023 03:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685182740; x=1687774740; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=l1sClzveVnhhNU65fEdK6SrVjz8BQlL3oS16PkyYPfc=; b=JFMNHvw9tAVl28SuL6kycWOaJaePhpqSGzSaQKOkNwAbseCqnfeyxDygLHkVX/cZUs pUyNLwR8nG6zuTa/a6calBwmNkvrgScxWVfVI8cusJigg6F7neK9jKFwvrgb6IrtPXpM FqpaA92mkSTXZ1bzBPu5JjXz9cfrDCMgnUzWWCwFZ2NZmTjS/qpW2B0YBDXKz82dFbvL NAC9VtYApsCUzr6Ijtk2/ijCvuxoauhC/pm65V8CmDJpLWMXnNTwEVSYA1V3Cs3/QfeL dTfqvZAXReVhObpJ1IqSlfz5cb2PSyt0Sz6zQqnZc4i7wUXX58YS/CtPFhSRN9qZsGxt D0ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685182740; x=1687774740; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=l1sClzveVnhhNU65fEdK6SrVjz8BQlL3oS16PkyYPfc=; b=YH4ZX0FM95BrpySrGlNms9HFGcc5lv6B4FALzvm+k7S8UEnqbNS2n8X2l8IejwjTLW vO1lh/uOXwEpQcb9wsi3L2hUo7zyxxika3nypVXeTZw2N+iXls74cbORyKWPiHKASjfH xaAlFH4OOCvT+qYBoNKLKaGcaGSU23mDTr6yfuXux5QAe/ym7tc1zsLtcm9+TCFf4VQb rnK29wpN3+BjUcGhnS0M1VK5RMYimBOK3cBqvo0H8lxQEBcbyDYX0S/WhxlqzGefaeo7 5FEZ6nPAlihQp30bh6ueygTyq1AGNSDbnDgR2zpC7StjZ1elRHixvA7EdXgUOjHjBMN3 B+dA== X-Gm-Message-State: AC+VfDwmLNFL7Wcc2eW6sDxUWih+cE1M6IGoU6zmmwOdgB30p7sRfF4h PGVDjM0Thlh0o/FUItouSN+s8xtZU7xBDuyBrbwOTGCIDaI= X-Google-Smtp-Source: ACHHUZ487+W5C9VYlmMcpaJf4RYH4rKftMacTwVPxuNkHysaJEvRRma+j26gKKLMfh5AhzCJ/+Ct5LSBx554xMI5kcQ= X-Received: by 2002:a1f:3d91:0:b0:440:5f56:dcc7 with SMTP id k139-20020a1f3d91000000b004405f56dcc7mr568026vka.1.1685182739651; Sat, 27 May 2023 03:18:59 -0700 (PDT) MIME-Version: 1.0 From: Daniel Clemente Date: Sat, 27 May 2023 10:18:33 +0000 Message-ID: Subject: [BUG] wrong-type-argument syntax-table-p "Syntax table including \"@\" and \"_\" as word constituents. To: Org-mode Content-Type: multipart/alternative; boundary="00000000000094224d05fcaa2eb4" Received-SPF: pass client-ip=2607:f8b0:4864:20::a2a; envelope-from=n142857@gmail.com; helo=mail-vk1-xa2a.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685182804; a=rsa-sha256; cv=none; b=W7L++hyXyNbV4JpXbKFvHWINOhdjNDLA+cc9kMspV3c9nt9ExzPvUBLEXbea4Cos2zImCK RW5VlwZZIDCV87yVc3InR1S/ikt1om7EokvCAuK3NJfZn01UCmeXEvxyvvQGrThtxPEfUf FreSY86DftoCHHWEfB4TQQivNykNnZZwaG+c4nE+vGER5RUQ24jypX2P7ahkI83H6sxCml nyPaxf/kfrl049+UMnzczWDJD+wlayuWU/2dkOh+DyvRlHQOoIdq5iEpawFqi4KHv7snpY 8IwXX/dp+tZ+NNjHUeAg1l+8f/r1JpF2aPBKMNCe4motCmox5o2rDb9DyFDpWQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=JFMNHvw9; dmarc=pass (policy=none) header.from=gmail.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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685182804; 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=l1sClzveVnhhNU65fEdK6SrVjz8BQlL3oS16PkyYPfc=; b=CKjMsy5ve/AsqDI6LqPWAYuoWTg4F1qM21G/LpTy3LsK67w3lM45yNAK/Ptvf/DUA+/sg1 WHZIxuzdXyTy+SHd3Rw/LSeduS8JY/Y8LFwX1hpARp0ng4/cvYWXLI3oCxu8DZ5V2VC87X vb0BU4z3tHU9UmEI26s4GQt4UGZ/rifxYFHHHK/TmcvzPuwlN9veVEUVVBSBVMqeRHZzGe 6uvCN/lgGD1bH0rJ9golzFdftE1Ns159ru//Lx2QP0R5DOemMgQT0xjtStJJZ2wQyf9LR4 kd5rU5hp8asvuGjpAs0YvorZSzaVrv0nltASOwVDUImfZuLV63MEGDIOdLRfKg== X-Migadu-Spam-Score: -8.07 X-Spam-Score: -8.07 X-Migadu-Queue-Id: 33BD618B0C X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=JFMNHvw9; dmarc=pass (policy=none) header.from=gmail.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-TUID: PBWMGs7xQbgT --00000000000094224d05fcaa2eb4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, there was a recent change to how the tags table is initialized. I think that as a side effect, some tag functions like org-tags-expand don't work unless you open an org-mode buffer first. I have a small bash script that exports my agenda; right in the beginning (before opening any org-mode file) it collects some data by calling org-map-entries. org-map-entries needs org-tags-expand, which now fails because the syntax table hasn't been initialized yet. Minimal case to reproduce this: 1. run: emacs -Q 2. load latest org: (add-to-list 'load-path "/=E2=80=A6/org-mode/lisp") (require 'org) 3. eval: (org-tags-expand "+sometag") You'll see: Debugger entered--Lisp error: (wrong-type-argument syntax-table-p "Syntax table including \"@\" and \"_\" as word constit...") org-tags-expand("+sometag") (progn (org-tags-expand "+sometag")) elisp--eval-last-sexp(nil) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) If I open any .org file before step 3, then it will work. I think the related commit is: commit 6e6354c074a323780f103aabf45be74104ce3ecf Author: Ihor Radchenko Date: Mon May 8 13:23:15 2023 +0200 org-tags-expand: Do no modify buffer's syntax table by side effect * lisp/org.el (org-mode-tags-syntax-table): New variable holding syntax table for tags. (org-mode): Initialize tag syntax table. (org-make-tags-matcher): Match tags using appropriate syntax table. (org-tags-expand): Do no modify syntax table by side effect. Reported-by: Mattias Engdeg=C3=A5rd Link: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D63225#68 Of course I could make sure to open an org file (any file) before calling org-map-entries but that seems like a workaround to a bug. I would expect (org-map-entries =E2=80=A6 'agenda) to also work before opening any .org fi= le. --00000000000094224d05fcaa2eb4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

=C2=A0 there was a recen= t change to how the tags table is initialized. I think that as a side effec= t, some tag functions like org-tags-expand don't work unless you open a= n org-mode buffer first. I have a small bash script that exports my agenda;= right in the beginning (before opening any org-mode file) it collects some= data by calling org-map-entries. org-map-entries needs org-tags-expand, wh= ich now fails because the syntax table hasn't been initialized yet.

Minimal case to reproduce this:

1. run: emacs -Q

2. load latest org:
=
(add-to-list 'load-path "/=E2=80=A6/org-mode/lisp")
(= require 'org)=C2=A0

3. eval:
= =C2=A0=C2=A0 (org-tags-expand "+sometag")

You'll see:

Debugger entered--Lisp error= : (wrong-type-argument syntax-table-p "Syntax table including \"@= \" and \"_\" as word constit...")
=C2=A0 org-tags-ex= pand("+sometag")
=C2=A0 (progn (org-tags-expand "+sometag= "))
=C2=A0 elisp--eval-last-sexp(nil)
=C2=A0 eval-last-sexp(nil)=
=C2=A0 funcall-interactively(eval-last-sexp nil)


If I open any .org file before step 3, then it will work.=

I think the related commit is:
comm= it 6e6354c074a323780f103aabf45be74104ce3ecf
Author: Ihor Radchenko <<= a href=3D"mailto:yantar92@posteo.net">yantar92@posteo.net>
Date: = =C2=A0 Mon May 8 13:23:15 2023 +0200

=C2=A0 =C2=A0 org-tags-expand: = Do no modify buffer's syntax table by side effect

=C2=A0 =C2=A0 = * lisp/org.el (org-mode-tags-syntax-table): New variable holding
=C2=A0 = =C2=A0 syntax table for tags.
=C2=A0 =C2=A0 (org-mode): Initialize tag s= yntax table.
=C2=A0 =C2=A0 (org-make-tags-matcher): Match tags using app= ropriate syntax table.
=C2=A0 =C2=A0 (org-tags-expand): Do no modify syn= tax table by side effect.

=C2=A0 =C2=A0 Reported-by: Mattias Engdeg= =C3=A5rd <mattias.engdega= rd@gmail.com>
=C2=A0 =C2=A0 Link: https://debbugs.gnu.org/cgi/bugreport= .cgi?bug=3D63225#68


Of course I= could make sure to open an org file (any file) before calling org-map-entr= ies but that seems like a workaround to a bug. I would expect (org-map-entr= ies =E2=80=A6 'agenda) to also work before opening any .org file.

--00000000000094224d05fcaa2eb4--