From: Angela L <angeldjsyg@outlook.com>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] (error "rx ‘**’ range error") [9.7 (9.7-??-d6f3aed7b @ /Users/melody/.emacs.d/.local/straight/build-28.2/org/)]
Date: Tue, 8 Aug 2023 15:55:12 +0800 [thread overview]
Message-ID: <PH8PR12MB6962354F0108EB121A3E41B7DE0DA@PH8PR12MB6962.namprd12.prod.outlook.com> (raw)
In-Reply-To: <87zg32q8bq.fsf@localhost>
[-- Attachment #1: Type: text/plain, Size: 2159 bytes --]
org-roam-buffer-p is a byte-compiled function defined in org-roam.el.
Signature
(org-roam-buffer-p &optional BUFFER)
Documentation
Return t if BUFFER is for an Org-roam file.
If BUFFER 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
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/straight/repos/org-roam/org-roam.el
(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)))))
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 Radchenko <yantar92@posteo.net>, wrote:
> Angela L <angeldjsyg@outlook.com> writes:
>
> > It’s 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>
[-- Attachment #2: Type: text/html, Size: 4679 bytes --]
next prev parent reply other threads:[~2023-08-08 7:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-02 5:56 [BUG] (error "rx ‘**’ range error") [9.7 (9.7-??-d6f3aed7b @ /Users/melody/.emacs.d/.local/straight/build-28.2/org/)] Angela L
2023-08-02 11:15 ` Ihor Radchenko
[not found] ` <PH8PR12MB696238BA3FE205B6D57EA779DE0BA@PH8PR12MB6962.namprd12.prod.outlook.com>
[not found] ` <878rat319f.fsf@localhost>
[not found] ` <PH8PR12MB6962771C678E097020A8F87DDE0CA@PH8PR12MB6962.namprd12.prod.outlook.com>
[not found] ` <87cyzyroti.fsf@localhost>
[not found] ` <PH8PR12MB6962A1E05B41F108D3A5D868DE0DA@PH8PR12MB6962.namprd12.prod.outlook.com>
2023-08-08 7:23 ` Ihor Radchenko
[not found] ` <PH8PR12MB6962147E71B097536A86D9B2DE0DA@PH8PR12MB6962.namprd12.prod.outlook.com>
2023-08-08 7:48 ` Ihor Radchenko
2023-08-08 7:49 ` Angela L
2023-08-08 7:52 ` Ihor Radchenko
2023-08-08 7:55 ` Angela L [this message]
2023-08-08 8:00 ` Ihor Radchenko
2023-08-08 8:01 ` Angela L
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=PH8PR12MB6962354F0108EB121A3E41B7DE0DA@PH8PR12MB6962.namprd12.prod.outlook.com \
--to=angeldjsyg@outlook.com \
--cc=emacs-orgmode@gnu.org \
--cc=yantar92@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.