unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Possible bug: org-capture fails when emacs started as daemon
@ 2023-08-12 12:14 Iñigo Serna
  2023-08-12 17:05 ` Morgan Willcock
  2023-08-13  8:37 ` Ihor Radchenko
  0 siblings, 2 replies; 17+ messages in thread
From: Iñigo Serna @ 2023-08-12 12:14 UTC (permalink / raw)
  To: emacs-devel

Hi,

Since some months ago (sorry, can't remember when it started) I'm 
suffering a problem with org-capture: every time I run it and 
select a template it errors with message "org-capture: Capture 
template ‘i’: Buffer name ‘CAPTURE-todo.org’ is in use".
I'm posting the issue here in case it's a silly thing on my side 
before opening a bug report.

This happens on my main emacs instance: daily master, pgtk, 
native-compilation, on a x64 Fedora Linux 38 under swaywm 
(Wayland).  Emacs started as systemd user unit with --fg-daemon 
flag and connecting with emacs-client.

I replicated the errors consistently in these tests:
- with pgtk / gtk3 / lucid
- running on Wayland (swaywm) or X (GNOME Classic)
- with/without native-compilation
- starting emacs as systemd unit or from terminal *with* 
  --{fg,bg}-daemon options
- with minimum / complete configuration

All the same tests set with v29.1 on this machine fail as well.

Instead, if I run emacs from terminal without daemon option it can 
run org-capture successfully, even after executing `server-start'. 
But once I run the first emacs-client, org-capture fails from 
both, main and client.

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?


Thanks in advance,
-- 
Iñigo Serna



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2023-08-17  7:53 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-12 12:14 Possible bug: org-capture fails when emacs started as daemon Iñigo Serna
2023-08-12 17:05 ` Morgan Willcock
2023-08-13 15:09   ` Iñigo Serna
2023-08-13  8:37 ` Ihor Radchenko
2023-08-13 15:29   ` Iñigo Serna
2023-08-13 15:38     ` Ihor Radchenko
2023-08-15 16:53       ` Morgan Willcock
2023-08-15 16:57         ` Ihor Radchenko
2023-08-15 18:57           ` Eli Zaretskii
2023-08-16  9:25             ` Iñigo Serna
2023-08-16 14:04               ` Eli Zaretskii
2023-08-16 14:59                 ` Iñigo Serna
2023-08-16 15:00                 ` Stefan Monnier
2023-08-16 15:44                   ` Iñigo Serna
2023-08-16 17:04                   ` Eli Zaretskii
2023-08-16 17:46                     ` Stefan Monnier
2023-08-17  7:53                       ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).