[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible bug: org-capture fails when emacs started as daemon
From: |
Ihor Radchenko |
Subject: |
Re: Possible bug: org-capture fails when emacs started as daemon |
Date: |
Sun, 13 Aug 2023 08:37:37 +0000 |
Iñigo Serna <inigoserna@gmx.com> writes:
> As I see the error message is defined in either
> `make-indirect-buffer' or `rename-buffer' functions, and the first
> one is called from `org-capture-make-indirect-buffer'.
> How could I investigate further the issue? Any hints?
`org-capture-get-indirect-buffer' constructs a name of a new capture
buffer as
(setq bname (concat prefix "-" base))
(while (buffer-live-p (get-buffer bname))
(setq bname (concat prefix "-" (number-to-string (cl-incf n)) "-" base)))
So, I can see the error happening when the buffer is not live, but yet
exists for some reason.
AFAIK, `get-buffer' check Vbuffer_alist, which should contain only live
buffers. If it is not the case, something fishy may be going on in Emacs.
I'd try to check the value of (get-buffer "CAPTURE-todo.org") and see if
it is a killed buffer or not.
--
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>
- Possible bug: org-capture fails when emacs started as daemon, Iñigo Serna, 2023/08/12
- Re: Possible bug: org-capture fails when emacs started as daemon, Morgan Willcock, 2023/08/12
- Re: Possible bug: org-capture fails when emacs started as daemon,
Ihor Radchenko <=
- Re: Possible bug: org-capture fails when emacs started as daemon, Iñigo Serna, 2023/08/13
- Re: Possible bug: org-capture fails when emacs started as daemon, Ihor Radchenko, 2023/08/13
- Re: Possible bug: org-capture fails when emacs started as daemon, Morgan Willcock, 2023/08/15
- Re: Possible bug: org-capture fails when emacs started as daemon, Ihor Radchenko, 2023/08/15
- Re: Possible bug: org-capture fails when emacs started as daemon, Eli Zaretskii, 2023/08/15
- Re: Possible bug: org-capture fails when emacs started as daemon, Iñigo Serna, 2023/08/16
- Re: Possible bug: org-capture fails when emacs started as daemon, Eli Zaretskii, 2023/08/16
- Re: Possible bug: org-capture fails when emacs started as daemon, Stefan Monnier, 2023/08/16
- Re: Possible bug: org-capture fails when emacs started as daemon, Iñigo Serna, 2023/08/16
- Re: Possible bug: org-capture fails when emacs started as daemon, Eli Zaretskii, 2023/08/16