From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id eDYDNQ1HeGV+swAAkFu2QA (envelope-from ) for ; Tue, 12 Dec 2023 12:42:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id eGWlMQ1HeGVaigAA62LTzQ (envelope-from ) for ; Tue, 12 Dec 2023 12:42:05 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=madlon-kay.com header.s=google header.b=WDWHezDs; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1702381325; 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: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=jivR9LKPoHPCKalEcHwDDAlprWkuE/apAnBZ/OTaONc=; b=BaLCajv+Eh9cNy/rN3lehUuI8CM/CeHjfzIO1h5aIaNDZW1Vys8xX2SwoPhEMgl/KATUWM vPAK9wkIY5dYnHiNJeak7TKHdty5nPb8NToN1Q0e0HcuYio9XLsJWAb9jmxN6ixr275JkW deVJh8kRgJIxa6YV0ZyduQqy87tu+IW4OWsbdnu+++YE6hRFoE8W+Mv3vJQz1yQNuyY5Gs xhPLKzePjcI4a7lSRW3falhehp20HHca5GoHWwTxad4xQ9XaiTXyc5zCwg723Iv3+1EZDY yG0g5SlWg6u3UyHsM5FU5KaICR9zJDPcfGJEL+CDgQmMdFF6qesI71fyU4lImg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=madlon-kay.com header.s=google header.b=WDWHezDs; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1702381325; a=rsa-sha256; cv=none; b=OL8VFR38U2wnFSSzYey9DFQTW5NJfCceh7aE0Uec6HOvFPCc4mbK9K2f+U3rmALW3pb/Ld zJcLIEtDYiTn87sMs7EjmWEnHPf9dTLUPkl2WzrIyueuO0aL3c6idlKvPBTbdsBdbqIW66 kz8PU/60Pk2QCR8s83a0oSItUQkDck9zq4sH4pUvYsA6q2GcIPlFwXSvW5eaBK/8IHrP49 tikEQ3hHG/UW1DspX3pWBVzMrrGM+Y0csvf43u7/MLClJ4ClKC6RUtx+ST2t4uQiybp5ic GZLx7ASyNHNrpEQb08B0QIHlAbACZkCGGOPMVTkqqO1z7TEnbFcyKkhUQKj9pg== 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 BCC7E15283 for ; Tue, 12 Dec 2023 12:42:04 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rD18Y-00047Z-Rj; Tue, 12 Dec 2023 06:41:18 -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 1rD18W-00046j-56 for emacs-orgmode@gnu.org; Tue, 12 Dec 2023 06:41:16 -0500 Received: from mail-oa1-x36.google.com ([2001:4860:4864:20::36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rD18U-0008T2-2i for emacs-orgmode@gnu.org; Tue, 12 Dec 2023 06:41:15 -0500 Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-20307e91258so175086fac.0 for ; Tue, 12 Dec 2023 03:41:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=madlon-kay.com; s=google; t=1702381271; x=1702986071; darn=gnu.org; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=jivR9LKPoHPCKalEcHwDDAlprWkuE/apAnBZ/OTaONc=; b=WDWHezDsCaqI5/3IclkV/mOWNInqU603oLZj4sd6kFh2vwynXIo8ppcSA/yhbO/oDq QmMSSyO6JY7szPi0JunE1aIAGXZ52iuhpQD4L8ocMuJHotRRXvwatag4TVUTR5LW0ZnW ohNbJ0VJ/Qv5Dmy5WGGmfXFEH/tu4YYWBlff4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702381271; x=1702986071; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jivR9LKPoHPCKalEcHwDDAlprWkuE/apAnBZ/OTaONc=; b=fCtMfi7ztPm1RELAAM8+zFM0C2GSDza+ARTWaX6CzW0WwZV59oNTiy3O18h8mwAFrF btpKR23JCgAXCr+rA1wiEu1GuPE//Kt/SGVwHqJv3W6Kxl4dQcfOh17m9TM6err856yE 1GfgAflOoHMIGp/HS/YMA9qnN4Fv4b8Dr3uILaHUFaIBSxvT28ZBQpbJzqkHFko8IwKt kQPECqdppjiNwAkRJGqTI8beodQtc7GaRXJHMjGx0Wi2/FrCvk4emQ05SU583zM2mYco XW5RvOav3bxC+NXPYyTbH18XGbat9NpmpTu51gYZC6Ffz4hkvmlHN6+Mnk4YM2M5dWCq QbQg== X-Gm-Message-State: AOJu0YyLYlux24qPK6hW+rq+J+M6TkqLMbxtcj4/++DasV83DsCwQF4H 0CiQ+e89Lh3EPDL5kv5Pfuemf01sdBh11+97cWA= X-Google-Smtp-Source: AGHT+IGEpZN+rsF7NW+DwTrXje/GBb+nzeK+8cFjCSN+YNyRWFV03KhoSAck9sFOUs414PJ/Jo4hrw== X-Received: by 2002:a05:6870:3e09:b0:1fb:1480:b2a0 with SMTP id lk9-20020a0568703e0900b001fb1480b2a0mr6604852oab.8.1702381271071; Tue, 12 Dec 2023 03:41:11 -0800 (PST) Received: from smtpclient.apple (p4139069-ipxg22701hodogaya.kanagawa.ocn.ne.jp. [153.129.207.69]) by smtp.gmail.com with ESMTPSA id d8-20020a056a00198800b006cee656cb35sm6796596pfl.156.2023.12.12.03.41.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Dec 2023 03:41:10 -0800 (PST) From: Aaron Madlon-Kay Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.300.61.1.2\)) Subject: [BUG] "Safe" local values for org-entities-user not recognized as such [9.6.11 (release_9.6.11 @ /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/org/)] Message-Id: Date: Tue, 12 Dec 2023 20:40:58 +0900 To: emacs-orgmode@gnu.org X-Mailer: Apple Mail (2.3774.300.61.1.2) Received-SPF: none client-ip=2001:4860:4864:20::36; envelope-from=aaron@madlon-kay.com; helo=mail-oa1-x36.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=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 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -0.11 X-Spam-Score: -0.11 X-Migadu-Queue-Id: BCC7E15283 X-TUID: Q26Wc3OBPdem Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. ------------------------------------------------------------------------ Local definitions for `org-entities-user` are not recognized as "safe" even when they are in the correct format. For instance, including the following local variables list in an org-mode file will still result in Emacs prompting you to accept the value: # Local Variables: # org-entities-user: (("snowman" "[snowman]" nil "☃" "[snowman]" = "[snowman]" "=E2=98=83")) # End: Cause: The defcustom for `org-entities-user` has :safe set to the function `org-entities--user-safe-p`. This function, however, appears to be designed to validate a single entry of `org-entities-user`, rather than the full value. Locally redefining as follows results in the expected behavior: (defun org-entities--user-safe-p (v) "Non-nil if V is a safe value for `org-entities-user'." (seq-every-p (lambda (e) (pcase e (`nil t) (`(,(and (pred stringp) (pred (string-match-p = "\\`[a-zA-Z][a-zA-Z0-9]*\\'"))) ,(pred stringp) ,(pred booleanp) ,(pred stringp) ,(pred stringp) ,(pred stringp) ,(pred stringp)) t) (_ nil))) v)) The difference is that the current logic has been supplied as a lambda to `seq-every-p`. Thank you, Aaron Emacs : GNU Emacs 30.0.50 (build 1, x86_64-apple-darwin23.1.0, NS = appkit-2487.20 Version 14.1.1 (Build 23B81)) of 2023-11-26 Package: Org mode version 9.6.11 (release_9.6.11 @ = /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/org/)