From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?I=C3=B1igo?= Serna Newsgroups: gmane.emacs.devel Subject: Possible bug: org-capture fails when emacs started as daemon Date: Sat, 12 Aug 2023 14:14:45 +0200 Message-ID: <87350opi0t.fsf@gmx.com> Reply-To: inigoserna@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30888"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.11.6; emacs 30.0.50 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 12 14:24:28 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qUnfQ-0007pX-2N for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Aug 2023 14:24:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qUnee-0003LL-8W; Sat, 12 Aug 2023 08:23:40 -0400 Original-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 1qUneX-0003L1-R7 for emacs-devel@gnu.org; Sat, 12 Aug 2023 08:23:34 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qUneV-0000ZO-72 for emacs-devel@gnu.org; Sat, 12 Aug 2023 08:23:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com; s=s31663417; t=1691843007; x=1692447807; i=inigoserna@gmx.com; bh=H6QRG/PwKYtovx3O87c672r7D31ZWRP4so4uST80p+o=; h=X-UI-Sender-Class:From:To:Subject:Date:Reply-To; b=NLkD2rN2HvPhsDBtp4SJCaljHJOkMxFVye/2a5P9t/vU9SeJlg0D3dGr5s4qeZ2bqwYP1k1 Ef8kUWAD4YTtj8+GoaFJekZR6m0x4STyICCsq0q4dWQOUo/rNuBrrjGNbyKyuFSx5etChKaVC rNALmAJZ6Y26Doe9TZdngcA+m9FxnYOn7pEVo6bKCLSNCyOnW+CWJCocDfl7R134qaW9EG5KD iiE+EDxAgUjbuJzKN2PTerxdw4yHdYWvIfWE21CEnEmptUISG7YRktzNEL3pueYumDN3b/Yjl x4mxOIlLH5rxMtBm4id8/YwuRYoSov6x0z+4Uw7XY6NBEeEO5VCQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from zeus.gmx.com ([93.176.181.42]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MY68T-1qIIew2NkD-00YS4n; Sat, 12 Aug 2023 14:23:27 +0200 X-Provags-ID: V03:K1:iao9atWbWsAGhXEkdIzbeUdExxuMCr2Hr02MJVOC9KD6SnU5xuy C2zVq27+9DmUrxqpDjFVZx9QBgN1icVQ0TfDyNtfIFj7BwD81Qz2mpgzgJZm6EBomaDdY8z dsDGBgA+0EafGNMgI/VU9LgdYpp2pujnpgaIvufEoSU9sV48GLsRuPyR41D1F/AGLChlIAY MoMw9gb5PlZt/w3fSk1Eg== UI-OutboundReport: notjunk:1;M01:P0:m1tvaF0IFQo=;p+kHmX7cyqYsINQUJAygLYsbDgg xLXbKffOXEwbx5A2qMq6iRkrpITPFmjJvX/tiGEnfqlYkXSqpBIFh3yDAjCKXExHQX2meAuu+ oMulTpNOHq42oKPySE2VKCK9//Cmu/MMtd9rW2sDUDP6Z9l+ziC804rjhQEnWQYorlvKFqUIz mXc8ieCLB1IndW8JxamuWw5slmRbxTo2L1QjzKyf4aX/Oz718D5yze6JKEGgENSTvKF+YZRh1 Ir1itfI+XMBkXMYITsUKnl06HhIxq71IzA/Tr0+BY2qnd3ciEBOvfRYPQqIIPtsBXZMc3AocA SmSbgba6ATMG3t6qB0P69uzXU51EqbNNbXH5/+TZ7ljAFttnoF6BB14w0uMu9ZIvgKWkXy3Xa WVjOy0bLTwsjTOFwMHTWJRY8OOI3t25XkQW8npwzUipxhO8YD2TGMHZFDLMAmjUvE+Gmf00wW VJkhDDbsPwyQuR7P0nd4xVdR0GawkWoyicAmweI1lJ7PuVw7VnvYtwFB69FrqtCc89ZYE4Xfu MpqCp9jcc4hyuB5zu5H1FcvKEbGUsAjTIrXYfvSN5/ljOybZexOePUk7bmC9abF1EYgi1hRVi 6wpE5Cwi6vJmeKYowZCfQJtv7ZjOeGzWiIqP5erp8UdMuexMfiyXm5R9As9YwsiTtcld+LH0r u6hF+xOd2SmJZCcCpaM+skRBYRfwaGNJ6ezd5KHSIbdhYhBzLIogUI+cF7ouBmLBt5fKusiQv CE/tdEtSKMoNgNxtMHydr7y8i64rGd22Mcs30HU4Hcfb/XD1vtR40AKFG2w7AxtuSWSqZK0h Received-SPF: pass client-ip=212.227.17.20; envelope-from=inigoserna@gmx.com; helo=mout.gmx.net X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_REPLYTO=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308616 Archived-At: Hi, Since some months ago (sorry, can't remember when it started) I'm=20 suffering a problem with org-capture: every time I run it and=20 select a template it errors with message "org-capture: Capture=20 template =E2=80=98i=E2=80=99: Buffer name =E2=80=98CAPTURE-todo.org=E2=80= =99 is in use". I'm posting the issue here in case it's a silly thing on my side=20 before opening a bug report. This happens on my main emacs instance: daily master, pgtk,=20 native-compilation, on a x64 Fedora Linux 38 under swaywm=20 (Wayland). Emacs started as systemd user unit with --fg-daemon=20 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*=20 --{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=20 run org-capture successfully, even after executing `server-start'.=20 But once I run the first emacs-client, org-capture fails from=20 both, main and client. As I see the error message is defined in either=20 `make-indirect-buffer' or `rename-buffer' functions, and the first=20 one is called from `org-capture-make-indirect-buffer'. How could I investigate further the issue? Any hints? Thanks in advance, --=20 I=C3=B1igo Serna