GNU bug report logs - #46704
X clipboard is always empty with emacs server without emacsclient running

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Parvesh Monu <parvesh.dhullmonu@HIDDEN>; dated Mon, 22 Feb 2021 10:03:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 46704 <at> debbugs.gnu.org:


Received: (at 46704) by debbugs.gnu.org; 22 Feb 2021 14:55:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 22 09:55:32 2021
Received: from localhost ([127.0.0.1]:57028 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lECcV-0001Im-OG
	for submit <at> debbugs.gnu.org; Mon, 22 Feb 2021 09:55:31 -0500
Received: from quimby.gnus.org ([95.216.78.240]:48300)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1lECcU-0001GC-5D
 for 46704 <at> debbugs.gnu.org; Mon, 22 Feb 2021 09:55:30 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=L5NfhhE4txxSRMDSt1uLCvM6lKt93xQ3jriYVeBJvpY=; b=FeI4IDKNtY1VP17vGzmOu9qhnm
 3v+6Sg5gumH6Pnmh4E2YdrqgKHI09KlSjc6a1SOuNWTG8q9SHUoHVG2XX9qlRwvhvcNPWnYCMNPbo
 b6IXfV8WvvEhbO6IaX2poFU35Th8JzZ5eZfYoLfFfXUPi/0oLjpzhVXAYzlK+U3Ptc5s=;
Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1lECcH-0006H3-8n; Mon, 22 Feb 2021 15:55:23 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Parvesh Monu <parvesh.dhullmonu@HIDDEN>
Subject: Re: bug#46704: X clipboard is always empty with emacs server
 without emacsclient running
References: <6482e65d-de70-6fbe-a0c9-89cb39e3082b@HIDDEN>
X-Now-Playing: Ben Neill's _Night Science_: "Booster"
Date: Mon, 22 Feb 2021 15:55:15 +0100
In-Reply-To: <6482e65d-de70-6fbe-a0c9-89cb39e3082b@HIDDEN> (Parvesh Monu's
 message of "Mon, 22 Feb 2021 14:07:39 +0530")
Message-ID: <878s7gkv8s.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Parvesh Monu <parvesh.dhullmonu@HIDDEN> writes: > I have
 this template which captures clipboard content in file. It works fine when
 > emacsclient is running, but if no client is running then server adds empty
 entry. > > (add-to-list 'org-capture-te [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 46704
Cc: 46704 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Parvesh Monu <parvesh.dhullmonu@HIDDEN> writes:

> I have this template which captures clipboard content in file. It works fine when
> emacsclient is running, but if no client is running then server adds empty entry.
>
> (add-to-list 'org-capture-templates
>        '("x" "Clips" entry (file+headline "/home/user/desktop/clips" "Clips")
>          "** %x" :immediate-finish t :prepend t))

I'm not quite sure I understand you correctly here -- but I think you're
saying that if you start "emacs --daemon", then that daemonised Emacs
can't communicate with the X clipboard?

I'm not sure, but doesn't that sound quite natural?  If you don't have
an X window open, then you can't talk to the X server, so you can't
access the clipboard, either.

I don't know how Org is talking to the clipboard, though.  Anybody?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#46704; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 22 Feb 2021 10:02:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 22 05:02:51 2021
Received: from localhost ([127.0.0.1]:55679 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1lE83H-0006S0-0y
	for submit <at> debbugs.gnu.org; Mon, 22 Feb 2021 05:02:51 -0500
Received: from lists.gnu.org ([209.51.188.17]:55646)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <parvesh.dhullmonu@HIDDEN>) id 1lE6j3-0002DA-UC
 for submit <at> debbugs.gnu.org; Mon, 22 Feb 2021 03:37:55 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:53236)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <parvesh.dhullmonu@HIDDEN>)
 id 1lE6j2-0001xV-6d
 for bug-gnu-emacs@HIDDEN; Mon, 22 Feb 2021 03:37:53 -0500
Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:39060)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <parvesh.dhullmonu@HIDDEN>)
 id 1lE6ix-0002yz-WC
 for bug-gnu-emacs@HIDDEN; Mon, 22 Feb 2021 03:37:51 -0500
Received: by mail-pl1-x62d.google.com with SMTP id k22so7289418pll.6
 for <bug-gnu-emacs@HIDDEN>; Mon, 22 Feb 2021 00:37:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=to:from:subject:message-id:date:user-agent:mime-version
 :content-language;
 bh=2/27V87g0yzorEhxLRCBKqX0fz0CErfNgO7FIr5B9U8=;
 b=V1VApwZVggIG3iEtc+nUYsh1pxBtg2MUm06oW7nCsdXukrrJXei3SBkpKfbIAKqIob
 8/p5gh1YVlnKuils5Yc6bNyul3sc61aCu6rOuZkIzXu2jaWhBi6W6krE/eytoer3Idef
 i9Mr4jVDM1BfTrlDnoc8B3tS/ArKW0dL61hbi6UFwfhL0s7xqIPySkuv/JDMKO11MPhf
 YlLhNucWVxIkdnFwZPo2obyMIlZf1rtDCRFsvV5Nohp/7/n6S0hAuzqVjaInRoh5iZ1A
 3u7syBlUr1h6RzqM2vzLFOPXyXWQlJt+k6ilWGQvtkPKbkuebdaWQs9TQxWYUMyFWjdD
 8k9g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:to:from:subject:message-id:date:user-agent
 :mime-version:content-language;
 bh=2/27V87g0yzorEhxLRCBKqX0fz0CErfNgO7FIr5B9U8=;
 b=cxneL8sJlDRfOLihNq/UTX8bh5SvNp8bDG+290BkdC2FDVkUFvVkFMtoINVVmBif0z
 qf09fTh3R4Ue/7CMlidHSl75JNPRbiRNUuQyusrmHzDrB/hu6P05c7oP5JCF1C9yfLNo
 2U/cD3GNTDj4kHWOe/c8HqH5j5pVGJCvPjb5ceA8zEsPi9GmbuSipxrxfYJeO//o8iXs
 TfceHEEz4nPqcZ5/7Fntyo25VYSi+O4vzrE0rO+eroZLa0tvaS7AL/uRQi5SfCBV0S1O
 ymHuKHJOldGOstyiFMtM5rC+Noac1YTcblJpi/L6p2/klGmtaFHnc1jL6JQW+Ex91mkd
 vZWA==
X-Gm-Message-State: AOAM532v+9fZ4EsVJeuufRULch3K+MBdGyQzMWruVJqKS+7lZTUOQ/t3
 Mo043T/LMR1Ql1Tdc/C+0mTMK2r+omUXLQ==
X-Google-Smtp-Source: ABdhPJwkXKXZpTous2cNM7zrVAdpspEb5gYGFZ9i8XIcHcJ0myPavoH4GPVTX0If8jDInbM1rZm0Zw==
X-Received: by 2002:a17:90a:1b4b:: with SMTP id
 q69mr20091373pjq.108.1613983065609; 
 Mon, 22 Feb 2021 00:37:45 -0800 (PST)
Received: from [10.110.125.6]
 (ec2-54-254-8-17.ap-southeast-1.compute.amazonaws.com. [54.254.8.17])
 by smtp.gmail.com with ESMTPSA id a15sm18603105pfg.159.2021.02.22.00.37.43
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 22 Feb 2021 00:37:44 -0800 (PST)
To: bug-gnu-emacs@HIDDEN
From: Parvesh Monu <parvesh.dhullmonu@HIDDEN>
Subject: X clipboard is always empty with emacs server without emacsclient
 running
Message-ID: <6482e65d-de70-6fbe-a0c9-89cb39e3082b@HIDDEN>
Date: Mon, 22 Feb 2021 14:07:39 +0530
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.7.1
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="------------0A0241DE9D8FBF4C792B5671"
Content-Language: en-US
Received-SPF: pass client-ip=2607:f8b0:4864:20::62d;
 envelope-from=parvesh.dhullmonu@HIDDEN; helo=mail-pl1-x62d.google.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, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 22 Feb 2021 05:02:49 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

This is a multi-part message in MIME format.
--------------0A0241DE9D8FBF4C792B5671
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

I have this template which captures clipboard content in file. It works 
fine when emacsclient is running, but if no client is running then 
server adds empty entry.

(add-to-list 'org-capture-templates
        '("x" "Clips" entry (file+headline "/home/user/desktop/clips" 
"Clips")
          "** %x" :immediate-finish t :prepend t))


*System:* 5.10.16-arch1-1
*Desktop Environment:* xfce
*GNU Emacs 27.1*


--------------0A0241DE9D8FBF4C792B5671
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>I have this template which captures clipboard content in file. It
      works fine when emacsclient is running, but if no client is
      running then server adds empty entry.<br>
      <br>
      (add-to-list 'org-capture-templates<br>
             '("x" "Clips" entry (file+headline
      "/home/user/desktop/clips" "Clips")<br>
               "** %x" :immediate-finish t :prepend t))</p>
    <p><br>
    </p>
    <p><b>System:</b> 5.10.16-arch1-1<br>
      <b>Desktop Environment:</b> xfce<br>
      <b>GNU Emacs 27.1</b><br>
      <br>
    </p>
  </body>
</html>

--------------0A0241DE9D8FBF4C792B5671--




Acknowledgement sent to Parvesh Monu <parvesh.dhullmonu@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#46704; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 22 Feb 2021 15:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.