From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 IMJ0IQ310WRHjAAASxT56A (envelope-from ) for ; Tue, 08 Aug 2023 09:55:57 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cHtNIQ310WTpywAAauVa8A (envelope-from ) for ; Tue, 08 Aug 2023 09:55:57 +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 EF0005C764 for ; Tue, 8 Aug 2023 09:55:56 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=VgcmXphz; 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=outlook.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691481357; 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=+MbQ95A81IPN7rMhjCK07AqtvTHOsv0VlopeHtXS0vM=; b=rZ3881n7jKmDCjAWDbHjJAbdqSbJG1hibJIv3agIMDrZr0+Rbj1ZUUs9yTdKPe4Q1ik6Xb DRehtP6j3mPdEsjCJPYXQ4xX2km4xx4ZNJyPMKykcF6Fct30QSSN14k2K90ivhsKyZeqOZ 0k2McTTsIfAI9ge/5FKCJlsF6zMnz1fjaPpbQzJaYIYRifGtUT6HyVgIxcKF2WKxpTjGW7 F3JDTxPb2o79c2i7fiiVpapBL/sEqzalKO678aLYHiq2f1/7iLb3kI0pMqmQFibQQwA+Mx QMl5zRQAWPB+rYvdlNeRHJ/KGtspWmKdU0Po+6EhkGw1FN4eeYvzaxMViAyAnQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=VgcmXphz; 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=outlook.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1691481357; a=rsa-sha256; cv=pass; b=JcpTv+ek0856k1G/VMNlrHqvMu9Q7fv0/O5e+8RRoE0EK0QWWhjJvsy+mRWXOruL7IeEAH 7b8efInGOJ/d2z6SG6ps5vFF1W46XBIUJItdgq2oVfnG0C92UY9dPBbFbldRzP+AToBYU7 yiRpIeatGSw6lOdZQXZiRUelz1+l4TH+S2v1kzCwOA5Tvu/tKG+9IlM+Rou+6yYLAtIgve mQXAfVcMtm5uZve9+e41AMwUzrAxvtsFOOJDNM6QGpDiQgtUuVCumGn7ql632A704sFAyJ 8mQU86uNpRi0eTwntfxh6x3U+Rk1GQl/nKZ0gpNzFIQQuVwP2syWX0GhEfHmwQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qTHZ0-0006hA-Vf; Tue, 08 Aug 2023 03:55:35 -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 1qTHYy-0006eo-ET for emacs-orgmode@gnu.org; Tue, 08 Aug 2023 03:55:32 -0400 Received: from mail-mw2nam10olkn2051.outbound.protection.outlook.com ([40.92.42.51] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qTHYw-0003Xg-6S for emacs-orgmode@gnu.org; Tue, 08 Aug 2023 03:55:32 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jYVpQTnXZPL7PM5ONqmCqZKd8sgx3SPe0o6qGf+KZe5tbAeuifcvj8zuZujKwCF4MmXRRcXyUhWLIzTHLLERo0CWDcqkK2amgzE0E9nq/fa/6rVnheXRxXjbLr5qJTlYA5svuv/Y+9JWCGgWXCCLZDZXduJUIqpVJswGP8Ze8U+Znnt3/nt4gYJsaaxr43h+b01cpu0bZZvvJNB6BWgY9SDBKpu2P5MUYy9Kg1PCFtbjU0CrCliUfIv43UM4wcmxd5MMj2eh0Jm/NjY6Mb2Ek4NnnfdNaSQxDYfIWkhcK6CA8+70AadqRIuhP5oh6VCUePzstAUft0vpLL04BZk7cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+MbQ95A81IPN7rMhjCK07AqtvTHOsv0VlopeHtXS0vM=; b=ZQyM6FA+StifWTV3CuKW9tDy5m0oPF4Kk4kqw/Ac/6cFFdh2so1TZapEDQWdxkzbcc0eploNUxat5d1kDUk3h6oBwAv9ZIZ856gD63SRC/lABLvygWgrDjrI7Nwp5ZHWfl9VTYAAlZa1WlkvexNotDrFnapCmYTZ30nQ8Ci4ay2vDFlykyaUAQReBohmFGT4gz++1yqzsTPEjN+Lbwxh5oY9QgL3VNt6R58ThqqSaYpkkA36m5MPCkgWSOj3R+SPIgRNwlmvARaT4uXPwMb0Z/1DqiQLL7kV2Y6r9sf+6q4jBnMeNqO1m4oewHb784fYkOOhSYC/hULCar7fqayoWQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+MbQ95A81IPN7rMhjCK07AqtvTHOsv0VlopeHtXS0vM=; b=VgcmXphzZ+flxwmj+feDSSIarSeMFNQl/aU/NHYTEiq/XTYbwTWrDNztn5grUdbSyOfSAHFOzzkp6stPUlsMSM98hIm7qfti48j5lWdyWMri1w4Kl+QsB2p0pU3EBpc4VZ131iahTgI/ATaC7ZTKTKPe3As1TvWptMhMjGx4hNXKQaYAJPLhbK5U0UWl62wd/xPQeQkI33IrIdAuHtP8uJqxRg2j2WW6whPGdn54AOyQcTOqKkto0Qhwaf6IJbmxVvMcXe6wYt9RrhzfYjwfgPRr0P3l7RMJuDqzefn+vYInmqLhCJaeZMGHk9K8NeK//XFFKQZNlmB6X57ekMFEIQ== Received: from PH8PR12MB6962.namprd12.prod.outlook.com (2603:10b6:510:1bd::18) by BL1PR12MB5756.namprd12.prod.outlook.com (2603:10b6:208:393::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.26; Tue, 8 Aug 2023 07:55:22 +0000 Received: from PH8PR12MB6962.namprd12.prod.outlook.com ([fe80::2630:61dc:a66:bf95]) by PH8PR12MB6962.namprd12.prod.outlook.com ([fe80::2630:61dc:a66:bf95%3]) with mapi id 15.20.6652.026; Tue, 8 Aug 2023 07:55:26 +0000 Date: Tue, 8 Aug 2023 15:55:12 +0800 From: Angela L To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Message-ID: In-Reply-To: <87zg32q8bq.fsf@localhost> References: <87leetu235.fsf@localhost> <878rat319f.fsf@localhost> <87cyzyroti.fsf@localhost> <878ramro9o.fsf@localhost> <87350urn3d.fsf@localhost> <87zg32q8bq.fsf@localhost> Subject: Re: [BUG] (error "rx =?utf-8?Q?=E2=80=98**=E2=80=99_?=range error") [9.7 (9.7-??-d6f3aed7b @ /Users/melody/.emacs.d/.local/straight/build-28.2/org/)] X-Readdle-Message-ID: 4dd006e1-5ebd-409b-98cd-ed21e6bcce22@Spark Content-Type: multipart/alternative; boundary="64d1f4e6_79838cb2_1d7" X-TMN: [EdK7Vw59CLgapGLaKPIVxZHos8Nsaets] X-ClientProxiedBy: SI2P153CA0006.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::22) To PH8PR12MB6962.namprd12.prod.outlook.com (2603:10b6:510:1bd::18) X-Microsoft-Original-Message-ID: <4dd006e1-5ebd-409b-98cd-ed21e6bcce22@Spark> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH8PR12MB6962:EE_|BL1PR12MB5756:EE_ X-MS-Office365-Filtering-Correlation-Id: 9cf7fd1e-b84a-4119-869f-08db97e4d3dc X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0DIMpREyAOzdL8GMVREkT8aEt5koSkQhuaED9l4V22TV3TWBw9tzzNbVfA8X8oJi8XzfwRZTY6ySaf+WjwE2pvj/XhVrNL1z4QNQ2F8I2nzx3/MJe7uydi3YwcoD3TgzL68W0GGC2tprQajwn7EMgcehjhBpUvw/QvRGT/BPxkuh4ETW5z93nF9Y4Oz+fCXXKk8Ws4DZOKNi0kGTnx7JOZ90Rs9Bzc7n7OEZhrv7OaXjP/Ffzu1ys5//k6ge3bkPSOQRumj5ZqMBOtx0pGso84bsmfbq2WPCmUZuZJzMetdsDKvU7xESzjBgW9R/IZTEeFCYEFuCg0y4dvY+B4A67d5R8zo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?utf-8?B?SS9qb1FiUS9hVVJET0w0NHBuY3pzRnJuYTMycFU2VjFCU3kvamVmVnhCc0ww?= =?utf-8?B?Y0tDdm9ad3VpR3FyeURjeWczODVxbmlVazBhYVNvSHNEdnVIZ28rbFVoc1Zn?= =?utf-8?Q?66Q23hEAlz30iov+9lgkklrWM4iyBRa8t83aX6t45tfw=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9cf7fd1e-b84a-4119-869f-08db97e4d3dc X-MS-Exchange-CrossTenant-AuthSource: PH8PR12MB6962.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Aug 2023 07:55:26.8971 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5756 Received-SPF: pass client-ip=40.92.42.51; envelope-from=angeldjsyg@outlook.com; helo=NAM10-MW2-obe.outbound.protection.outlook.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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 X-Migadu-Queue-Id: EF0005C764 X-Migadu-Scanner: mx1.migadu.com X-Spam-Score: -9.99 X-Migadu-Spam-Score: -9.99 X-TUID: fGtPciUH8d4Q --64d1f4e6_79838cb2_1d7 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline org-roam-buffer-p is a byte-compiled function defined in org-roam.el. Signature (org-roam-buffer-p &optional BU=46=46ER) Documentation Return t if BU=46=46ER is for an Org-roam file. If BU=46=46ER is not specified, use the current buffer. This function has :before-until advice: md-roam-buffer-p. References References in org-roam.el: (defun org-roam-buffer-list ...) 1 reference =46ind all references =46unctions used by org-roam-buffer-p Advice This function is advised. Debugging Enable edebug Enable tracing Disassemble =46orget Source Code ;; Defined in =7E/.emacs.d/.local/straight/repos/org-roam/org-roam.el (defun org-roam-buffer-p (&optional buffer) =C2=A0=22Return t if BU=46=46ER is for an Org-roam file. If BU=46=46ER is not specified, use the current buffer.=22 =C2=A0(let ((buffer (or buffer (current-buffer))) =C2=A0path) =C2=A0(with-current-buffer buffer =C2=A0(and (derived-mode-p 'org-mode) =C2=A0(setq path (buffer-file-name (buffer-base-buffer))) =C2=A0(org-roam-file-p path))))) Symbol Properties defalias-fset-function =C2=A0=23=5B128 =22=5C300=5C301=5C302=23=5C207=22 =C2=A0=5Bapply advice--defalias-fset nil nil=5D =C2=A05 nil=5D =C2=A0Disassemble function-documentation =C2=A0(advice--make-docstring 'org-roam-buffer-p) Cheers, Annie On Aug 8, 2023, 3:52 PM +0800, Ihor Radchenko , wr= ote: > Angela L writes: > > > It=E2=80=99s nil > > This is unexpected. > A=46AIK, org-roam-buffer-p is defined as > > (defun org-roam-buffer-p (&optional buffer) > =22Return t if BU=46=46ER is for an Org-roam file. > If BU=46=46ER is not specified, use the current buffer.=22 > (let ((buffer (or buffer (current-buffer))) > path) > (with-current-buffer buffer > (and (derived-mode-p 'org-mode) > (setq path (buffer-file-name (buffer-base-buffer))) > (org-roam-file-p path))))) > > And it does check (derived-mode-p 'org-mode). > > May you please post the information displayed in C-h f org-roam-buffer-= p=3F > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at --64d1f4e6_79838cb2_1d7 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
org-roam-buffer-p= is a byte-compiled function defined in org-roam.el.

Signature
(org-roam-buffer-p &optional BU= FFER)

Documentation
Return t if BUFFER is for an Org-ro= am file.

If BUFFER is not specified, use the= current buffer.

This function has :before-until adv= ice: md-roam-buffer-p.

References
References in org-roam.el: (defun org-roam-buffer-list ...) 1 = reference

Find all references Functions used = by org-roam-buffer-p

Advice
This function is advised.
Debugging
Enable edebug Enable tracing=
Disassemble Forget

Source Code
;; Defined in ~/.emacs.d/.local/str= aight/repos/org-roam/org-roam.el
(defun org-roam-buffer-p (&opti= onal buffer)
 "Return t if BUFFER is f= or an Org-roam file.
If BUFFER is not specified, use the= current buffer."
 (let ((buffer (or buffer (cur= rent-buffer)))
 path)
 (with-current-buffer buffer
 (and (derived-mode-p 'org-mod= e)
 (setq path (buffer-file-name = (buffer-base-buffer)))
 (org-roam-file-p path)))))

Symbol Properties
defalias-fset-function
 #[128 "\300\301\302#\207= "
 [apply advice--defalias-fset = nil nil]
 5 nil]
 Disassemble
function-documentation
 (advice--make-docstring 'org-= roam-buffer-p)

Cheers,
Annie
On Aug 8, 2023, 3:52 PM +0800, Ihor Radch= enko <yantar92@posteo.net>, wrote:
An= gela L <angeldjsyg@outlook.com> writes:

It=E2=80=99s nil

This is unexpected.
AFAIK, org-roam-buffer-p is defined as

(defun org-roam-buffer-p (&optional buffer)
"Return t if BUFFER is for an Org-roam file.
If BUFFER is not specified, use the current buffer."
(let ((buffer (or buffer (current-buffer)))
path)
(with-current-buffer buffer
(and (derived-mode-p 'org-mode)
(setq path (buffer-file-name (buffer-base-buffer)))
(org-roam-file-p path)))))

And it does check (derived-mode-p 'org-mode).

May you please post the information displayed in C-h f org-roam-buffer-p?
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
--64d1f4e6_79838cb2_1d7--