GNU bug report logs - #56162
13.1.3; "org.freedesktop.DBus.Error.ServiceUnknown" when loading AucTeX

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: auctex,emacs; Reported by: Philip Kaludercic <philipk@HIDDEN>; dated Thu, 23 Jun 2022 10:29:02 UTC; Maintainer for auctex is bug-auctex@HIDDEN.
bug No longer marked as found in versions 13.1.3. Request was from Michael Albinus <michael.albinus@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug reassigned from package 'auctex' to 'auctex,emacs'. Request was from Michael Albinus <michael.albinus@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 56162) by debbugs.gnu.org; 23 Jun 2022 17:32:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 23 13:32:18 2022
Received: from localhost ([127.0.0.1]:39782 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o4Qgj-0005WP-7T
	for submit <at> debbugs.gnu.org; Thu, 23 Jun 2022 13:32:18 -0400
Received: from mout.gmx.net ([212.227.15.18]:38139)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1o4Qgf-0005Od-73
 for 56162 <at> debbugs.gnu.org; Thu, 23 Jun 2022 13:32:15 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1656005526;
 bh=Ta94lOXh8gilnw63Car50tQ9exsc86sg8sZVtRh0MNQ=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=dC26HA/R2LpwlVib3HMOrTepTmUqDiLb8Y0Xa1DsBrmayTIcbxCsZv7/FQBtjbScx
 DedB+rEetOADFBeN6h5gioh0yyNMTKlaWsZkQw4IgUZ515jd8/mtMRCyekgXoqJrys
 3OMZoYjQbkKPwIE29l/78g+G73ziRfnUtCXg6/6g=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from gandalf.gmx.de ([213.220.156.125]) by mail.gmx.net (mrgmx005
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Ml6qM-1nNNAw03Zc-00lW71; Thu, 23
 Jun 2022 19:32:06 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Tassilo Horn <tsdh@HIDDEN>
Subject: Re: bug#56162: 13.1.3; "org.freedesktop.DBus.Error.ServiceUnknown"
 when loading AucTeX
References: <87zgi3n074.fsf@HIDDEN> <87czezh6mc.fsf@HIDDEN>
Date: Thu, 23 Jun 2022 19:32:04 +0200
In-Reply-To: <87czezh6mc.fsf@HIDDEN> (Tassilo Horn's message of "Thu, 23 Jun
 2022 14:14:14 +0200")
Message-ID: <87mte3nv57.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:BlVTlXHhRwELhDjb8D11xUFayA/TRUZX4qDkSfRfC7Ix0Qihbos
 +j94ofv4o/qVC2BzKQSik6xbga85o+tTFYCN06hif3hpQMvN4flQ+7U0Ugo21rPGf1+xunl
 L4Laa7Mzqg3DAXDM0dsA7JAjEUcOTEBL7sucpNyCfDkr1RWYQnpwNLshnfIYV8Kgu4NneKH
 FCUuztbZxS8u1OfNSacxA==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:jpt1a7oQdiI=:Bb8wToN1tV673lBLEp75pw
 gPGaltBoqooSyG+ukTaCcB4eJganXracOf8CA+brO/VoMkZi5FFRc1NCXjt9plDXK74IqV7Un
 vO4OtbX9la496/QRYvAONqy2oeUEk1gPqSRek04xjNbuYT7PSuV9ZMN+lIkF/BipmFPe3dmcC
 TwCAvC4CMfkw+MKJ/4TPEt1DRLgcvhpLNPGPvaiWmd8SA4gZXccwH3RzqDRWuFyKJ74nSkD41
 g5c+O+wybmoaSK1tn4zHrlfGCb8u8t1+KT5+oVBJf+JrkzD7H2X8hBtjSO+SHEFsxdWlxEd1L
 H6ksPhyQUhLvS03QOiej/5Bw0EmNlljPW9E/Yr99g4dcj1sLlVr8xaH3adz2QOSbnIiVWTxkn
 l8tKDDIRc1W37cFEfMDrgyqSrFIxK+sV0pr9W8i1CpS6mS1Ub+1qqQb+Wxaof5duxnemltqo+
 NPffrV+kF32BYRD0ef7kh4JfFD3BMyW9XzuZHIfNaUvlnp4kIzkFaKwmUrrSR2SejKYpjx6vl
 udah4MNBtJNdrQlIiw6dilSYmNeJgoSkryqQsWsg73l6RVikXotnWF8xkb7Lcm0DCzXCBjCub
 Pa261Yf1IJfxZQdDZl4yqhDaHUGEzk28xBuYEBwA3WcDdrXsZMSR0YACQh3vZ8Fp3CRL4WrzA
 zAhyVpsv7Euzgg9tOjB9mAFU2ny79NstJ7MQyHCAXORu12nL78WUSLrJEHJ3cE2fU09aeGI4g
 9eEBweZxLbC6Ba8x+wD9p5K5rdmOJj4QknJ1Ydoe121EFS9Y8+VPWvw2BkPsYxfIR/3pUItUa
 eB+n7NCLZUYZZpVmxx2wgrRGLbiYrjEqp8GP0ySyR/UeeQHI4yv3ZYltURUmvTNXqnZQBkFTs
 6M2nWlg9Mssas+pJE+BFAyuBhCvYh55LDGqME7FlZ6/lAdce0KgG4TR9yNWZXtq9TrCfOAPC6
 RGTB+5k4wDov3p7QL3x2PqHdNUdskGhW1DL4VWm9cUWh395XgHtUZYQJsJr+poeV34n3swrRk
 18aB4ffr1zV+4fMJua7TBwMBG6taibnfQZ3eMT67SeWs9AT9B43n4IocYxzQXhulWHVUAEdiC
 VaY95TC3VbdTnOWnZu1rM810QcjGAvcmFKiyNNy4ABLtY4L4O4A3m2D8g==
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 56162
Cc: bug-auctex@HIDDEN, Philip Kaludercic <philipk@HIDDEN>,
 56162 <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.7 (-)

--=-=-=
Content-Type: text/plain

Tassilo Horn <tsdh@HIDDEN> writes:

> Hi Philip & Michael,

Hi Tassilo & Philip,

> it looks more like a TRAMP issue to me, so I added Michael to the Cc.

Yes, it is Tramp.

> So we can assume you have dbus and the session dbus is available.  But
> why does the dbus-ping signal an error?  I can do
>
>   (TeX-evince-dbus-p "foo" "bar")
>
> just fine which simply returns nil.  And how come there's tramp stuff in
> your backtrace and you get a file-error?  And what is
> /home/cip/2017/oj14ozun/.links2 for a file and why is it accessed via
> sftp?
>
> Ah, it seems you have tramp-gvfs-dbus-event-error in
> dbus-event-error-functions which is simply added when tramp-gvfs.el is
> loaded.  But when loading tramp-gvfs, I still cannot trigger the error
> because tramp-gvfs-dbus-event-vector is nil.

We don't need AucTeX and friends for this error :-) A simple scenario is

--8<---------------cut here---------------start------------->8---
# emacs -Q
;; Activatel anything tramp-gvfs.el is responsible for, like
(file-attributes "/sftp::")

=> (t 0 0 0 (25267 48739 0 0) (25259 16295 0 0) (0 0 0 0) 4096 "dr-xr-xr-x" nil 1 (-1 . 1))

(dbus-ping :session "foo.bar")

=> Debugger entered--Lisp error: (file-error "org.freedesktop.DBus.Error.ServiceUnknown")
  signal(file-error ("org.freedesktop.DBus.Error.ServiceUnknown"))
  tramp-error((tramp-file-name "sftp" nil nil #("gandalf" 0 7 (tramp-default t)) nil "/" nil) file-error "org.freedesktop.DBus.Error.ServiceUnknown")
  tramp-gvfs-dbus-event-error((dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable")) (dbus-error "org.freedesktop.DBus.Error.ServiceUnknown" "The name is not activatable"))
  run-hook-with-args(tramp-gvfs-dbus-event-error (dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable")) (dbus-error "org.freedesktop.DBus.Error.ServiceUnknown" "The name is not activatable"))
  dbus-handle-event((dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable")))
  funcall-interactively(dbus-handle-event (dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable")))
  call-interactively(dbus-handle-event nil [(dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable"))])
  command-execute(dbus-handle-event nil [(dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable"))] t)
  read-event(nil nil 0.001)
  dbus-call-method(:session "foo.bar" "/org/freedesktop/DBus" "org.freedesktop.DBus.Peer" "Ping")
  dbus-ping(:session "foo.bar")
--8<---------------cut here---------------end--------------->8---

> Philip, you got that backtrace from M-x TeX-submit-bug-report.  Where
> did that /home/cip/2017/oj14ozun/.links2 file come from in that context?

That is not relevant.

> And Michael, looking at the code I have the feeling that
> tramp-gvfs-dbus-event-vector should be buffer-local but it's set
> globally and then causes the issue...

Somehow. tramp-gvfs tries to catch *any* D-Bus error it sees, even if it
isn't responsible for. And from the error itself it cannot determine
whether it is meant for tramp-gvfs, the struct

--8<---------------cut here---------------start------------->8---
(dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable"))
--8<---------------cut here---------------end--------------->8---

tells us that it is an error ("3") with the serial "48" (not relevant,
D-Bus internal counter) from service "org.freedesktop.DBus" (the general
purpose D-Bus service) sent to service ":1.220203" (that's us,
Emacs). So there is no chance to filter tramp-gvfs events out.

A buffer-local tramp-gvfs-dbus-event-vector doesn't help; the D-Bus
event is received asynchronously, and it can happen any time Emacs reads
incoming events. No guarantee that the respective buffer is current.

The appended patch changes tramp-gvfs-dbus-event-vector being let-bound
while tramp-gvfs is in action. There is the possible threat that a
related D-Bus event arrives too late, due to time-outs or so, but let's
see how it works.

Could you pls check the patch?

> Bye,
> Tassilo

Best regards, Michael.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment
Content-Transfer-Encoding: quoted-printable

diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el
index 3a5041c491..4adc35bcb6 100644
=2D-- a/lisp/net/tramp-gvfs.el
+++ b/lisp/net/tramp-gvfs.el
@@ -841,6 +841,8 @@ tramp-gvfs-file-name-p
 	      (tramp-file-name-method (tramp-dissect-file-name filename))))
 	 (and (stringp method) (member method tramp-gvfs-methods)))))

+(defvar tramp-gvfs-dbus-event-vector)
+
 ;;;###tramp-autoload
 (defun tramp-gvfs-file-name-handler (operation &rest args)
   "Invoke the GVFS related OPERATION and ARGS.
@@ -848,7 +850,11 @@ tramp-gvfs-file-name-handler
 arguments to pass to the OPERATION."
   (unless tramp-gvfs-enabled
     (tramp-user-error nil "Package `tramp-gvfs' not supported"))
-  (if-let ((fn (assoc operation tramp-gvfs-file-name-handler-alist)))
+  (if-let ((filename (apply #'tramp-file-name-for-operation operation arg=
s))
+           (tramp-gvfs-dbus-event-vector
+            (and (tramp-tramp-file-p filename)
+                 (tramp-dissect-file-name filename)))
+           (fn (assoc operation tramp-gvfs-file-name-handler-alist)))
       (save-match-data (apply (cdr fn) args))
     (tramp-run-real-handler operation args)))

@@ -942,7 +948,8 @@ with-tramp-dbus-get-all-properties
 (defvar tramp-gvfs-dbus-event-vector nil
   "Current Tramp file name to be used, as vector.
 It is needed when D-Bus signals or errors arrive, because there
-is no information where to trace the message.")
+is no information where to trace the message.
+Globally, the value shall always be nil; it is bound where needed.")

 (defun tramp-gvfs-dbus-event-error (event err)
   "Called when a D-Bus error message arrives, see `dbus-event-error-funct=
ions'."
@@ -2121,10 +2128,6 @@ tramp-gvfs-maybe-open-connection
   (unless (tramp-connectable-p vec)
     (throw 'non-essential 'non-essential))

-  ;; We set the file name, in case there are incoming D-Bus signals or
-  ;; D-Bus errors.
-  (setq tramp-gvfs-dbus-event-vector vec)
-
   ;; For password handling, we need a process bound to the connection
   ;; buffer.  Therefore, we create a dummy process.  Maybe there is a
   ;; better solution?

--=-=-=--




Information forwarded to bug-auctex@HIDDEN:
bug#56162; Package auctex. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 23 Jun 2022 17:32:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 23 13:32:27 2022
Received: from localhost ([127.0.0.1]:39785 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o4Qgs-0005cf-5A
	for submit <at> debbugs.gnu.org; Thu, 23 Jun 2022 13:32:27 -0400
Received: from lists.gnu.org ([209.51.188.17]:40460)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1o4Qgp-0005bP-VG
 for submit <at> debbugs.gnu.org; Thu, 23 Jun 2022 13:32:24 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39758)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michael.albinus@HIDDEN>)
 id 1o4Qgo-0007U8-Ly
 for bug-auctex@HIDDEN; Thu, 23 Jun 2022 13:32:23 -0400
Received: from mout.gmx.net ([212.227.15.18]:56625)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michael.albinus@HIDDEN>)
 id 1o4Qgl-0003cB-3R; Thu, 23 Jun 2022 13:32:21 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
 s=badeba3b8450; t=1656005526;
 bh=Ta94lOXh8gilnw63Car50tQ9exsc86sg8sZVtRh0MNQ=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To;
 b=dC26HA/R2LpwlVib3HMOrTepTmUqDiLb8Y0Xa1DsBrmayTIcbxCsZv7/FQBtjbScx
 DedB+rEetOADFBeN6h5gioh0yyNMTKlaWsZkQw4IgUZ515jd8/mtMRCyekgXoqJrys
 3OMZoYjQbkKPwIE29l/78g+G73ziRfnUtCXg6/6g=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from gandalf.gmx.de ([213.220.156.125]) by mail.gmx.net (mrgmx005
 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Ml6qM-1nNNAw03Zc-00lW71; Thu, 23
 Jun 2022 19:32:06 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Tassilo Horn <tsdh@HIDDEN>
Subject: Re: bug#56162: 13.1.3; "org.freedesktop.DBus.Error.ServiceUnknown"
 when loading AucTeX
References: <87zgi3n074.fsf@HIDDEN> <87czezh6mc.fsf@HIDDEN>
Date: Thu, 23 Jun 2022 19:32:04 +0200
In-Reply-To: <87czezh6mc.fsf@HIDDEN> (Tassilo Horn's message of "Thu, 23 Jun
 2022 14:14:14 +0200")
Message-ID: <87mte3nv57.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Provags-ID: V03:K1:BlVTlXHhRwELhDjb8D11xUFayA/TRUZX4qDkSfRfC7Ix0Qihbos
 +j94ofv4o/qVC2BzKQSik6xbga85o+tTFYCN06hif3hpQMvN4flQ+7U0Ugo21rPGf1+xunl
 L4Laa7Mzqg3DAXDM0dsA7JAjEUcOTEBL7sucpNyCfDkr1RWYQnpwNLshnfIYV8Kgu4NneKH
 FCUuztbZxS8u1OfNSacxA==
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:jpt1a7oQdiI=:Bb8wToN1tV673lBLEp75pw
 gPGaltBoqooSyG+ukTaCcB4eJganXracOf8CA+brO/VoMkZi5FFRc1NCXjt9plDXK74IqV7Un
 vO4OtbX9la496/QRYvAONqy2oeUEk1gPqSRek04xjNbuYT7PSuV9ZMN+lIkF/BipmFPe3dmcC
 TwCAvC4CMfkw+MKJ/4TPEt1DRLgcvhpLNPGPvaiWmd8SA4gZXccwH3RzqDRWuFyKJ74nSkD41
 g5c+O+wybmoaSK1tn4zHrlfGCb8u8t1+KT5+oVBJf+JrkzD7H2X8hBtjSO+SHEFsxdWlxEd1L
 H6ksPhyQUhLvS03QOiej/5Bw0EmNlljPW9E/Yr99g4dcj1sLlVr8xaH3adz2QOSbnIiVWTxkn
 l8tKDDIRc1W37cFEfMDrgyqSrFIxK+sV0pr9W8i1CpS6mS1Ub+1qqQb+Wxaof5duxnemltqo+
 NPffrV+kF32BYRD0ef7kh4JfFD3BMyW9XzuZHIfNaUvlnp4kIzkFaKwmUrrSR2SejKYpjx6vl
 udah4MNBtJNdrQlIiw6dilSYmNeJgoSkryqQsWsg73l6RVikXotnWF8xkb7Lcm0DCzXCBjCub
 Pa261Yf1IJfxZQdDZl4yqhDaHUGEzk28xBuYEBwA3WcDdrXsZMSR0YACQh3vZ8Fp3CRL4WrzA
 zAhyVpsv7Euzgg9tOjB9mAFU2ny79NstJ7MQyHCAXORu12nL78WUSLrJEHJ3cE2fU09aeGI4g
 9eEBweZxLbC6Ba8x+wD9p5K5rdmOJj4QknJ1Ydoe121EFS9Y8+VPWvw2BkPsYxfIR/3pUItUa
 eB+n7NCLZUYZZpVmxx2wgrRGLbiYrjEqp8GP0ySyR/UeeQHI4yv3ZYltURUmvTNXqnZQBkFTs
 6M2nWlg9Mssas+pJE+BFAyuBhCvYh55LDGqME7FlZ6/lAdce0KgG4TR9yNWZXtq9TrCfOAPC6
 RGTB+5k4wDov3p7QL3x2PqHdNUdskGhW1DL4VWm9cUWh395XgHtUZYQJsJr+poeV34n3swrRk
 18aB4ffr1zV+4fMJua7TBwMBG6taibnfQZ3eMT67SeWs9AT9B43n4IocYxzQXhulWHVUAEdiC
 VaY95TC3VbdTnOWnZu1rM810QcjGAvcmFKiyNNy4ABLtY4L4O4A3m2D8g==
Received-SPF: pass client-ip=212.227.15.18;
 envelope-from=michael.albinus@HIDDEN; helo=mout.gmx.net
X-Spam_score_int: -25
X-Spam_score: -2.6
X-Spam_bar: --
X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7,
 RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
Cc: bug-auctex@HIDDEN, Philip Kaludercic <philipk@HIDDEN>,
 56162 <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: -2.4 (--)

--=-=-=
Content-Type: text/plain

Tassilo Horn <tsdh@HIDDEN> writes:

> Hi Philip & Michael,

Hi Tassilo & Philip,

> it looks more like a TRAMP issue to me, so I added Michael to the Cc.

Yes, it is Tramp.

> So we can assume you have dbus and the session dbus is available.  But
> why does the dbus-ping signal an error?  I can do
>
>   (TeX-evince-dbus-p "foo" "bar")
>
> just fine which simply returns nil.  And how come there's tramp stuff in
> your backtrace and you get a file-error?  And what is
> /home/cip/2017/oj14ozun/.links2 for a file and why is it accessed via
> sftp?
>
> Ah, it seems you have tramp-gvfs-dbus-event-error in
> dbus-event-error-functions which is simply added when tramp-gvfs.el is
> loaded.  But when loading tramp-gvfs, I still cannot trigger the error
> because tramp-gvfs-dbus-event-vector is nil.

We don't need AucTeX and friends for this error :-) A simple scenario is

--8<---------------cut here---------------start------------->8---
# emacs -Q
;; Activatel anything tramp-gvfs.el is responsible for, like
(file-attributes "/sftp::")

=> (t 0 0 0 (25267 48739 0 0) (25259 16295 0 0) (0 0 0 0) 4096 "dr-xr-xr-x" nil 1 (-1 . 1))

(dbus-ping :session "foo.bar")

=> Debugger entered--Lisp error: (file-error "org.freedesktop.DBus.Error.ServiceUnknown")
  signal(file-error ("org.freedesktop.DBus.Error.ServiceUnknown"))
  tramp-error((tramp-file-name "sftp" nil nil #("gandalf" 0 7 (tramp-default t)) nil "/" nil) file-error "org.freedesktop.DBus.Error.ServiceUnknown")
  tramp-gvfs-dbus-event-error((dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable")) (dbus-error "org.freedesktop.DBus.Error.ServiceUnknown" "The name is not activatable"))
  run-hook-with-args(tramp-gvfs-dbus-event-error (dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable")) (dbus-error "org.freedesktop.DBus.Error.ServiceUnknown" "The name is not activatable"))
  dbus-handle-event((dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable")))
  funcall-interactively(dbus-handle-event (dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable")))
  call-interactively(dbus-handle-event nil [(dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable"))])
  command-execute(dbus-handle-event nil [(dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable"))] t)
  read-event(nil nil 0.001)
  dbus-call-method(:session "foo.bar" "/org/freedesktop/DBus" "org.freedesktop.DBus.Peer" "Ping")
  dbus-ping(:session "foo.bar")
--8<---------------cut here---------------end--------------->8---

> Philip, you got that backtrace from M-x TeX-submit-bug-report.  Where
> did that /home/cip/2017/oj14ozun/.links2 file come from in that context?

That is not relevant.

> And Michael, looking at the code I have the feeling that
> tramp-gvfs-dbus-event-vector should be buffer-local but it's set
> globally and then causes the issue...

Somehow. tramp-gvfs tries to catch *any* D-Bus error it sees, even if it
isn't responsible for. And from the error itself it cannot determine
whether it is meant for tramp-gvfs, the struct

--8<---------------cut here---------------start------------->8---
(dbus-event :session 3 48 "org.freedesktop.DBus" ":1.220203" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-handler (:string "The name is not activatable"))
--8<---------------cut here---------------end--------------->8---

tells us that it is an error ("3") with the serial "48" (not relevant,
D-Bus internal counter) from service "org.freedesktop.DBus" (the general
purpose D-Bus service) sent to service ":1.220203" (that's us,
Emacs). So there is no chance to filter tramp-gvfs events out.

A buffer-local tramp-gvfs-dbus-event-vector doesn't help; the D-Bus
event is received asynchronously, and it can happen any time Emacs reads
incoming events. No guarantee that the respective buffer is current.

The appended patch changes tramp-gvfs-dbus-event-vector being let-bound
while tramp-gvfs is in action. There is the possible threat that a
related D-Bus event arrives too late, due to time-outs or so, but let's
see how it works.

Could you pls check the patch?

> Bye,
> Tassilo

Best regards, Michael.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment
Content-Transfer-Encoding: quoted-printable

diff --git a/lisp/net/tramp-gvfs.el b/lisp/net/tramp-gvfs.el
index 3a5041c491..4adc35bcb6 100644
=2D-- a/lisp/net/tramp-gvfs.el
+++ b/lisp/net/tramp-gvfs.el
@@ -841,6 +841,8 @@ tramp-gvfs-file-name-p
 	      (tramp-file-name-method (tramp-dissect-file-name filename))))
 	 (and (stringp method) (member method tramp-gvfs-methods)))))

+(defvar tramp-gvfs-dbus-event-vector)
+
 ;;;###tramp-autoload
 (defun tramp-gvfs-file-name-handler (operation &rest args)
   "Invoke the GVFS related OPERATION and ARGS.
@@ -848,7 +850,11 @@ tramp-gvfs-file-name-handler
 arguments to pass to the OPERATION."
   (unless tramp-gvfs-enabled
     (tramp-user-error nil "Package `tramp-gvfs' not supported"))
-  (if-let ((fn (assoc operation tramp-gvfs-file-name-handler-alist)))
+  (if-let ((filename (apply #'tramp-file-name-for-operation operation arg=
s))
+           (tramp-gvfs-dbus-event-vector
+            (and (tramp-tramp-file-p filename)
+                 (tramp-dissect-file-name filename)))
+           (fn (assoc operation tramp-gvfs-file-name-handler-alist)))
       (save-match-data (apply (cdr fn) args))
     (tramp-run-real-handler operation args)))

@@ -942,7 +948,8 @@ with-tramp-dbus-get-all-properties
 (defvar tramp-gvfs-dbus-event-vector nil
   "Current Tramp file name to be used, as vector.
 It is needed when D-Bus signals or errors arrive, because there
-is no information where to trace the message.")
+is no information where to trace the message.
+Globally, the value shall always be nil; it is bound where needed.")

 (defun tramp-gvfs-dbus-event-error (event err)
   "Called when a D-Bus error message arrives, see `dbus-event-error-funct=
ions'."
@@ -2121,10 +2128,6 @@ tramp-gvfs-maybe-open-connection
   (unless (tramp-connectable-p vec)
     (throw 'non-essential 'non-essential))

-  ;; We set the file name, in case there are incoming D-Bus signals or
-  ;; D-Bus errors.
-  (setq tramp-gvfs-dbus-event-vector vec)
-
   ;; For password handling, we need a process bound to the connection
   ;; buffer.  Therefore, we create a dummy process.  Maybe there is a
   ;; better solution?

--=-=-=--




Information forwarded to bug-auctex@HIDDEN:
bug#56162; Package auctex. Full text available.

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


Received: (at 56162) by debbugs.gnu.org; 23 Jun 2022 13:06:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 23 09:06:15 2022
Received: from localhost ([127.0.0.1]:37748 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o4MXG-0004RP-GE
	for submit <at> debbugs.gnu.org; Thu, 23 Jun 2022 09:06:15 -0400
Received: from eggs.gnu.org ([209.51.188.92]:48348)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tsdh@HIDDEN>) id 1o4MXE-0004Qy-2i
 for 56162 <at> debbugs.gnu.org; Thu, 23 Jun 2022 09:06:13 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:43216)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>)
 id 1o4MX8-0001Tk-S4; Thu, 23 Jun 2022 09:06:06 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From:
 References; bh=HkdANgQUHkGS5afxPR05kDTj9lY7Gc1I5u9HHAZHLVM=; b=RIlahe5pcmMjvc
 uOTBx8CoYQJru47QuJBT34eMq2CX+QE+xnB3xddH7FJ34Hzci4PGTUij2nwVVTnwzqjt/3PYmZN5a
 phRAvoDfr222Hvk4uA3MKg5GSbddD7mYurx7i/r5esZ//Rpyn/kI9AKV6wgKRLlhk6RzVl4NXy9/E
 comSCNszyIsYmD6y5lJpvBcft8D+cTu73hXq9+LoXRkFPyIXqmElMrCYXqRcjGEIRVIzDNOMJxMHY
 KPZG0EMx0Wmm0EJkqB73fyFkLdm6Brj2rVh679Ie1nMo6JtAoj31Oz/rz309K+G7dxoN3NPednHzg
 8tKeGhOU0RZYm7DeV9pw==;
Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:47885)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>)
 id 1o4MX8-0008Ve-I8; Thu, 23 Jun 2022 09:06:06 -0400
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailauth.nyi.internal (Postfix) with ESMTP id 35B5E27C0054;
 Thu, 23 Jun 2022 09:06:06 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute5.internal (MEProxy); Thu, 23 Jun 2022 09:06:06 -0400
X-ME-Sender: <xms:PWW0YjF0XDXBei4MwgGtO_M9qswXswLNxd0YrXT2b077M4nbgq1P9g>
 <xme:PWW0YgWb46sXE2mSWjKDtt9N3gG4dxgAjeFRFYm2kJwuDq8XaaPoKxfsZ-SZglpUf
 7P0XNajflZ1Mg>
X-ME-Received: <xmr:PWW0YlLXK-PqBdxE0QMns3XukiRE58PBXZlg8ODkPeWLysGla4aIUXfBTquhYwlsT3U1dWWJ2p_Qfdx3Mp3AbK5PoQGH2YE>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudefjedgheelucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhepfhgfhffvvefuffgjkfggtgfgsehtqhertddtredtnecuhfhrohhmpefvrghs
 shhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnh
 epheeutdekhfettdfgudekkeevueduvdehveevjefhiefgudfhgeejjedtgfdtudejnecu
 ffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg
 hmpehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghl
 ihhthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfh
 grshhtmhgrihhlrdhfmh
X-ME-Proxy: <xmx:PmW0YhHGmf1hJ7risYczvsAlhB23F5zeNHQeyAE9bY2YFNO_2v-L4A>
 <xmx:PmW0YpVfXLS2wsPEWlzsabc4NGyuba6TSrMErBmgaQXVxfoFjug1LA>
 <xmx:PmW0YsMsd51bOpyjhynu52WHV8ZYXNKSh-z7kuFzwaQvLzBGM9nrIg>
 <xmx:PmW0Ymjqmbf4I-4jkl05YV0m2fqqOL7mhpQ487d5k3luFAXzSNgIdw>
Feedback-ID: ib2b94485:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 23 Jun 2022 09:06:05 -0400 (EDT)
References: <87zgi3n074.fsf@HIDDEN>
User-agent: mu4e 1.7.28; emacs 29.0.50
From: Tassilo Horn <tsdh@HIDDEN>
To: Philip Kaludercic <philipk@HIDDEN>
Subject: Re: bug#56162: 13.1.3; "org.freedesktop.DBus.Error.ServiceUnknown"
 when loading AucTeX
Date: Thu, 23 Jun 2022 14:14:14 +0200
In-reply-to: <87zgi3n074.fsf@HIDDEN>
Message-ID: <87czezh6mc.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 56162
Cc: bug-auctex@HIDDEN, Michael Albinus <michael.albinus@HIDDEN>,
 56162 <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: -3.3 (---)

Philip Kaludercic <philipk@HIDDEN> writes:

Hi Philip & Michael,

it looks more like a TRAMP issue to me, so I added Michael to the Cc.

I think your patch might make sense and shouldn't affect users of
Evince/Atril but I'd rather safeguard TeX-evince-dbus-p itself.
However, I want to understand why you get the error.  TeX-evince-dbus-p
is defined starting with:

--8<---------------cut here---------------start------------->8---
(defun TeX-evince-dbus-p (de app &rest options)
  "Return non-nil, if an evince-compatible reader is accessible via DBUS.
Additional OPTIONS may be given to extend the check.  If none are
given, only the minimal requirements needed by backward search
are checked.  If OPTIONS include `:forward', which is currently
the only option, then additional requirements needed by forward
search are checked, too.

DE is the name of the desktop environment, APP is the name of viewer."
  (let ((dbus-debug nil))
    (and (featurep 'dbusbind)
         (require 'dbus nil :no-error)
         (dbus-ignore-errors (dbus-get-unique-name :session))
         (dbus-ping :session (format "org.%s.%s.Daemon" de app))
--8<---------------cut here---------------end--------------->8---

So we can assume you have dbus and the session dbus is available.  But
why does the dbus-ping signal an error?  I can do

  (TeX-evince-dbus-p "foo" "bar")

just fine which simply returns nil.  And how come there's tramp stuff in
your backtrace and you get a file-error?  And what is
/home/cip/2017/oj14ozun/.links2 for a file and why is it accessed via
sftp?

Ah, it seems you have tramp-gvfs-dbus-event-error in
dbus-event-error-functions which is simply added when tramp-gvfs.el is
loaded.  But when loading tramp-gvfs, I still cannot trigger the error
because tramp-gvfs-dbus-event-vector is nil.

Philip, you got that backtrace from M-x TeX-submit-bug-report.  Where
did that /home/cip/2017/oj14ozun/.links2 file come from in that context?

And Michael, looking at the code I have the feeling that
tramp-gvfs-dbus-event-vector should be buffer-local but it's set
globally and then causes the issue...

Bye,
Tassilo

> while loading AucTeX I encounter the following issue:
>
> Debugger entered--Lisp error: (file-error "org.freedesktop.DBus.Error.Ser=
viceUnknown")
>   signal(file-error ("org.freedesktop.DBus.Error.ServiceUnknown"))
>   tramp-error((tramp-file-name "sftp" nil nil "uni" nil "/home/cip/2017/o=
j14ozun/.links2" nil) file-error "org.freedesktop.DBus.Error.ServiceUnknown=
")
>   tramp-gvfs-dbus-event-error((dbus-event :session 3 91 "org.freedesktop.=
DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call=
-method-handler (:string "The name is not activatable")) (dbus-error "org.f=
reedesktop.DBus.Error.ServiceUnknown" "The name is not activatable"))
>   run-hook-with-args(tramp-gvfs-dbus-event-error (dbus-event :session 3 9=
1 "org.freedesktop.DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.Servic=
eUnknown" dbus-call-method-handler (:string "The name is not activatable"))=
 (dbus-error "org.freedesktop.DBus.Error.ServiceUnknown" "The name is not a=
ctivatable"))
>   dbus-handle-event((dbus-event :session 3 91 "org.freedesktop.DBus" ":1.=
97" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-ha=
ndler (:string "The name is not activatable")))
>   funcall-interactively(dbus-handle-event (dbus-event :session 3 91 "org.=
freedesktop.DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.ServiceUnknow=
n" dbus-call-method-handler (:string "The name is not activatable")))
>   command-execute(dbus-handle-event nil [(dbus-event :session 3 91 "org.f=
reedesktop.DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.ServiceUnknown=
" dbus-call-method-handler (:string "The name is not activatable"))] t)
>   read-event(nil nil 0.001)
>   dbus-call-method(:session "org.x.reader.Daemon" "/org/freedesktop/DBus"=
 "org.freedesktop.DBus.Peer" "Ping")
>   dbus-ping(:session "org.x.reader.Daemon")
>   (and (featurep 'dbusbind) (require 'dbus nil :no-error) (condition-case=
 err (progn (dbus-get-unique-name :session)) (dbus-error (if dbus-debug (pr=
ogn (signal (car err) (cdr err)))))) (dbus-ping :session (format "org.%s.%s=
.Daemon" de app)) (or (not (memq :forward options)) (let ((spec (dbus-intro=
spect-get-method :session (format "org.%s.%s.Daemon" de app) (format "/org/=
%s/%s/Daemon" de app) (format "org.%s.%s.Daemon" de app) "FindDocument"))) =
(and spec (equal '("s" "b" "s") (delq nil (mapcar #'... spec)))))))
>   (let ((dbus-debug nil)) (and (featurep 'dbusbind) (require 'dbus nil :n=
o-error) (condition-case err (progn (dbus-get-unique-name :session)) (dbus-=
error (if dbus-debug (progn (signal (car err) (cdr err)))))) (dbus-ping :se=
ssion (format "org.%s.%s.Daemon" de app)) (or (not (memq :forward options))=
 (let ((spec (dbus-introspect-get-method :session (format "org.%s.%s.Daemon=
" de app) (format "/org/%s/%s/Daemon" de app) (format "org.%s.%s.Daemon" de=
 app) "FindDocument"))) (and spec (equal '("s" "b" "s") (delq nil (mapcar .=
.. spec))))))))
>   TeX-evince-dbus-p("x" "reader" :forward)
>   (if (TeX-evince-dbus-p de app :forward) (intern (format "TeX-%s-sync-vi=
ew" app)) (cons app (cons (list 'mode-io-correlate (let ((default-directory=
 (file-name-as-directory ...))) (if (string-match "--page-index" (shell-com=
mand-to-string ...)) " -i %(outpage)" " -p %(outpage)"))) '(" %o"))))
>   TeX-view-program-select-evince("x" "reader")
>   (cons (TeX-view-program-select-evince "x" "reader") '("xreader"))
>   (cons "Xreader" (cons (TeX-view-program-select-evince "x" "reader") '("=
xreader")))
>   (cons (cons "Xreader" (cons (TeX-view-program-select-evince "x" "reader=
") '("xreader"))) '(("Okular" ("okular --unique %o" (mode-io-correlate "#sr=
c:%n%a")) "okular") ("xdg-open" "xdg-open %o" "xdg-open") ("PDF Tools" TeX-=
pdf-tools-sync-view) ("Zathura" ("zathura %o" (mode-io-correlate " --syncte=
x-forward %n:0:\"%b\" -x \"emacsclient +%{li...")) "zathura")))
>   (cons (cons "Evince" (cons (TeX-view-program-select-evince "gnome" "evi=
nce") '("evince"))) (cons (cons "Xreader" (cons (TeX-view-program-select-ev=
ince "x" "reader") '("xreader"))) '(("Okular" ("okular --unique %o" (mode-i=
o-correlate "#src:%n%a")) "okular") ("xdg-open" "xdg-open %o" "xdg-open") (=
"PDF Tools" TeX-pdf-tools-sync-view) ("Zathura" ("zathura %o" (mode-io-corr=
elate " --synctex-forward %n:0:\"%b\" -x \"emacsclient +%{li...")) "zathura=
"))))
>   (cons '("xpdf" ("xpdf -remote %s -raise %o" (mode-io-correlate " %(outp=
age)")) "xpdf") (cons (cons "Evince" (cons (TeX-view-program-select-evince =
"gnome" "evince") '("evince"))) (cons (cons "Xreader" (cons (TeX-view-progr=
am-select-evince "x" "reader") '("xreader"))) '(("Okular" ("okular --unique=
 %o" (mode-io-correlate "#src:%n%a")) "okular") ("xdg-open" "xdg-open %o" "=
xdg-open") ("PDF Tools" TeX-pdf-tools-sync-view) ("Zathura" ("zathura %o" (=
mode-io-correlate " --synctex-forward %n:0:\"%b\" -x \"emacsclient +%{li...=
")) "zathura")))))
>   (cons '("gv" "gv %o" "gv") (cons '("xpdf" ("xpdf -remote %s -raise %o" =
(mode-io-correlate " %(outpage)")) "xpdf") (cons (cons "Evince" (cons (TeX-=
view-program-select-evince "gnome" "evince") '("evince"))) (cons (cons "Xre=
ader" (cons (TeX-view-program-select-evince "x" "reader") '("xreader"))) '(=
("Okular" ("okular --unique %o" ...) "okular") ("xdg-open" "xdg-open %o" "x=
dg-open") ("PDF Tools" TeX-pdf-tools-sync-view) ("Zathura" ("zathura %o" ..=
.) "zathura"))))))
>   (cons (list "dvips and gv" "%(o?)dvips %d -o && gv %f" (list "%(o?)dvip=
s" "gv")) (cons '("gv" "gv %o" "gv") (cons '("xpdf" ("xpdf -remote %s -rais=
e %o" (mode-io-correlate " %(outpage)")) "xpdf") (cons (cons "Evince" (cons=
 (TeX-view-program-select-evince "gnome" "evince") '("evince"))) (cons (con=
s "Xreader" (cons (TeX-view-program-select-evince "x" "reader") '...)) '(("=
Okular" ... "okular") ("xdg-open" "xdg-open %o" "xdg-open") ("PDF Tools" Te=
X-pdf-tools-sync-view) ("Zathura" ... "zathura")))))))
>   (cons '("xdvi" ("%(o?)xdvi" (mode-io-correlate " -sourceposition \"%n %=
b\" -editor \"%cS\"") ((paper-a4 paper-portrait) " -paper a4") ((paper-a4 p=
aper-landscape) " -paper a4r") ((paper-a5 paper-portrait) " -paper a5") ((p=
aper-a5 paper-landscape) " -paper a5r") (paper-b5 " -paper b5") (paper-lett=
er " -paper us") (paper-legal " -paper legal") (paper-executive " -paper 7.=
25x10.5in") " %d") "%(o?)xdvi") (cons (list "dvips and gv" "%(o?)dvips %d -=
o && gv %f" (list "%(o?)dvips" "gv")) (cons '("gv" "gv %o" "gv") (cons '("x=
pdf" ("xpdf -remote %s -raise %o" (mode-io-correlate " %(outpage)")) "xpdf"=
) (cons (cons "Evince" (cons (TeX-view-program-select-evince "gnome" "evinc=
e") '...)) (cons (cons "Xreader" (cons ... ...)) '(... ... ... ...)))))))
>   (cons '("dvi2tty" ("dvi2tty -q -w 132 %o")) (cons '("xdvi" ("%(o?)xdvi"=
 (mode-io-correlate " -sourceposition \"%n %b\" -editor \"%cS\"") ((paper-a=
4 paper-portrait) " -paper a4") ((paper-a4 paper-landscape) " -paper a4r") =
((paper-a5 paper-portrait) " -paper a5") ((paper-a5 paper-landscape) " -pap=
er a5r") (paper-b5 " -paper b5") (paper-letter " -paper us") (paper-legal "=
 -paper legal") (paper-executive " -paper 7.25x10.5in") " %d") "%(o?)xdvi")=
 (cons (list "dvips and gv" "%(o?)dvips %d -o && gv %f" (list "%(o?)dvips" =
"gv")) (cons '("gv" "gv %o" "gv") (cons '("xpdf" ("xpdf -remote %s -raise %=
o" ...) "xpdf") (cons (cons "Evince" (cons ... ...)) (cons (cons "Xreader" =
...) '...)))))))
>   (cond ((eq system-type 'windows-nt) '(("Yap" ("yap -1" (mode-io-correla=
te " -s %n%b") " %o") "yap") ("dviout" ("dviout -1 " ((paper-a4 paper-portr=
ait) "-y=3DA4 ") ((paper-a4 paper-landscape) "-y=3DA4L ") ((paper-a5 paper-=
portrait) "-y=3DA5 ") ((paper-a5 paper-landscape) "-y=3DA5L ") ((paper-b5 p=
aper-portrait) "-y=3DE5 ") ((paper-b5 paper-landscape) "-y=3DE5L ") ((paper=
-b4jis paper-portrait) "-y=3DB4 ") ((paper-b4jis paper-landscape) "-y=3DB4L=
 ") ((paper-b5jis paper-portrait) "-y=3DB5 ") ((paper-b5jis paper-landscape=
) "-y=3DB5L ") (paper-legal "-y=3DLegal ") (paper-letter "-y=3DLetter ") (p=
aper-executive "-y=3DExecutive ") "%d" (mode-io-correlate " \"# %n '%b'\"")=
) "dviout") ("PDF Tools" TeX-pdf-tools-sync-view) ("SumatraPDF" ("SumatraPD=
F -reuse-instance" (mode-io-correlate " -forward-search \"%b\" %n") " %o") =
"SumatraPDF") ("dvips and start" "dvips %d -o && start \"\" %f" "dvips") ("=
start" "start \"\" %o"))) ((eq system-type 'darwin) '(("Preview.app" "open =
-a Preview.app %o" "open") ("Skim" "open -a Skim.app %o" "open") ("PDF Tool=
s" TeX-pdf-tools-sync-view) ("displayline" "displayline %n %o %b" "displayl=
ine") ("open" "open %o" "open"))) (t (cons '("dvi2tty" ("dvi2tty -q -w 132 =
%o")) (cons '("xdvi" ("%(o?)xdvi" (mode-io-correlate " -sourceposition \"%n=
 %b\" -editor \"%cS\"") (... " -paper a4") (... " -paper a4r") (... " -pape=
r a5") (... " -paper a5r") (paper-b5 " -paper b5") (paper-letter " -paper u=
s") (paper-legal " -paper legal") (paper-executive " -paper 7.25x10.5in") "=
 %d") "%(o?)xdvi") (cons (list "dvips and gv" "%(o?)dvips %d -o && gv %f" (=
list "%(o?)dvips" "gv")) (cons '("gv" "gv %o" "gv") (cons '... (cons ... ..=
.))))))))
>   (defvar TeX-view-program-list-builtin (cond ((eq system-type 'windows-n=
t) '(("Yap" ("yap -1" (mode-io-correlate " -s %n%b") " %o") "yap") ("dviout=
" ("dviout -1 " (... "-y=3DA4 ") (... "-y=3DA4L ") (... "-y=3DA5 ") (... "-=
y=3DA5L ") (... "-y=3DE5 ") (... "-y=3DE5L ") (... "-y=3DB4 ") (... "-y=3DB=
4L ") (... "-y=3DB5 ") (... "-y=3DB5L ") (paper-legal "-y=3DLegal ") (paper=
-letter "-y=3DLetter ") (paper-executive "-y=3DExecutive ") "%d" (mode-io-c=
orrelate " \"# %n '%b'\"")) "dviout") ("PDF Tools" TeX-pdf-tools-sync-view)=
 ("SumatraPDF" ("SumatraPDF -reuse-instance" (mode-io-correlate " -forward-=
search \"%b\" %n") " %o") "SumatraPDF") ("dvips and start" "dvips %d -o && =
start \"\" %f" "dvips") ("start" "start \"\" %o"))) ((eq system-type 'darwi=
n) '(("Preview.app" "open -a Preview.app %o" "open") ("Skim" "open -a Skim.=
app %o" "open") ("PDF Tools" TeX-pdf-tools-sync-view) ("displayline" "displ=
ayline %n %o %b" "displayline") ("open" "open %o" "open"))) (t (cons '("dvi=
2tty" ("dvi2tty -q -w 132 %o")) (cons '("xdvi" ("%(o?)xdvi" ... ... ... ...=
 ... ... ... ... ... " %d") "%(o?)xdvi") (cons (list "dvips and gv" "%(o?)d=
vips %d -o && gv %f" (list "%(o?)dvips" "gv")) (cons '... (cons ... ...))))=
))) "Alist of built-in viewer specifications.\nThis vari...")
>   eval-buffer(#<buffer  *load*> nil "/home/philip/.config/emacs/elpa/auct=
ex-13.1.3/tex...." nil t)  ; Reading at buffer position 56145
>   load-with-code-conversion("/home/philip/.config/emacs/elpa/auctex-13.1.=
3/tex...." "/home/philip/.config/emacs/elpa/auctex-13.1.3/tex...." nil t)
>   command-execute(TeX-submit-bug-report record)
>   execute-extended-command(nil "TeX-submit-bug-report" "TeX-bug")
>   funcall-interactively(execute-extended-command nil "TeX-submit-bug-repo=
rt" "TeX-bug")
>   command-execute(execute-extended-command)
>
> Apparently this is caused by `TeX-view-program-list-builtin' trying to
> evaluate
>
> (TeX-view-program-select-evince "mate" "atril") ; for Atril
>
> and
>
> (TeX-view-program-select-evince "x" "reader") ; for Xreader
>
> neither of which are installed on my system.  I can solve this by either
> commenting the two entries out of the alist or by applying this patch
>
> diff -u --label /home/philip/.config/emacs/elpa/auctex-13.1.3/tex.el --la=
bel \#\<buffer\ tex.el\> /home/philip/.config/emacs/elpa/auctex-13.1.3/tex.=
el /tmp/buffer-content-CKKwvw
> --- /home/philip/.config/emacs/elpa/auctex-13.1.3/tex.el
> +++ #<buffer tex.el>
> @@ -1233,7 +1233,7 @@
>=20=20
>  DE is the name of the desktop environment, APP is the name of
>  viewer."
> -  (if (TeX-evince-dbus-p de app :forward)
> +  (if (ignore-errors (TeX-evince-dbus-p de app :forward))
>        (intern (format "TeX-%s-sync-view" app))
>      `(,app (mode-io-correlate
>              ;; When tex.el is loaded as response to opening a tex file
>
> Diff finished.  Thu Jun 23 12:27:02 2022
>
>
> Don't know if this breaks anything for Atril or Xrender users tough...
>
> Emacs  : GNU Emacs 29.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.=
24.34, cairo version 1.17.6)
>  of 2022-06-19
> Package: 13.1.3
>
> current state:
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> (setq
>  AUCTeX-date "2022-04-16"
>  window-system 'pgtk
>  LaTeX-version "2e"
>  TeX-style-path '("~/.emacs.d/auctex"
> 		  "/home/philip/.config/emacs/elpa/auctex-13.1.3/style"
> 		  "/home/philip/.config/emacs/auctex/auto"
> 		  "/home/philip/.config/emacs/auctex/style" "auto" "style")
>  TeX-auto-save t
>  TeX-parse-self t
>  TeX-master 'dwim
>  TeX-command-list '(("TeX"
> 		     "%(PDF)%(tex) %(file-line-error) %`%(extraopts) %S%(PDFout)%(mode)=
%' %(output-dir) %t"
> 		     TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode)
> 		     :help "Run plain TeX")
> 		    ("LaTeX" "%`%l%(mode)%' %T" TeX-run-TeX nil
> 		     (latex-mode doctex-mode) :help "Run LaTeX")
> 		    ("Makeinfo" "makeinfo %(extraopts) %(o-dir) %t"
> 		     TeX-run-compile nil (texinfo-mode) :help
> 		     "Run Makeinfo with Info output")
> 		    ("Makeinfo HTML" "makeinfo %(extraopts) %(o-dir) --html %t"
> 		     TeX-run-compile nil (texinfo-mode) :help
> 		     "Run Makeinfo with HTML output")
> 		    ("AmSTeX"
> 		     "amstex %(PDFout) %`%(extraopts) %S%(mode)%' %(output-dir) %t"
> 		     TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
> 		    ("ConTeXt"
> 		     "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t"
> 		     TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
> 		    ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t"
> 		     TeX-run-TeX nil (context-mode) :help
> 		     "Run ConTeXt until completion")
> 		    ("BibTeX" "bibtex %(O?aux)" TeX-run-BibTeX nil
> 		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
> 		      texinfo-mode context-mode)
> 		     :help "Run BibTeX")
> 		    ("Biber" "biber %(output-dir) %s" TeX-run-Biber nil
> 		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
> 		      texinfo-mode)
> 		     :help "Run Biber")
> 		    ("Texindex" "texindex %s.??" TeX-run-command nil
> 		     (texinfo-mode) :help "Run Texindex")
> 		    ("Texi2dvi" "%(PDF)texi2dvi %t" TeX-run-command nil
> 		     (texinfo-mode) :help "Run Texi2dvi or Texi2pdf")
> 		    ("View" "%V" TeX-run-discard-or-function t t :help
> 		     "Run Viewer")
> 		    ("Print" "%p" TeX-run-command t t :help "Print the file")
> 		    ("Queue" "%q" TeX-run-background nil t :help
> 		     "View the printer queue" :visible TeX-queue-command)
> 		    ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t
> 		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
> 		      texinfo-mode)
> 		     :help "Generate PostScript file")
> 		    ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil
> 		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
> 		      texinfo-mode)
> 		     :help "Convert DVI file to PostScript")
> 		    ("Dvipdfmx" "dvipdfmx -o %(O?pdf) %d" TeX-run-dvipdfmx nil
> 		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
> 		      texinfo-mode)
> 		     :help "Convert DVI file to PDF with dvipdfmx")
> 		    ("Ps2pdf" "ps2pdf %f %(O?pdf)" TeX-run-ps2pdf nil
> 		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
> 		      texinfo-mode)
> 		     :help "Convert PostScript file to PDF")
> 		    ("Glossaries" "makeglossaries %(d-dir) %s" TeX-run-command
> 		     nil
> 		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
> 		      texinfo-mode)
> 		     :help "Run makeglossaries to create glossary file")
> 		    ("Index" "makeindex %(O?idx)" TeX-run-index nil
> 		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
> 		      texinfo-mode)
> 		     :help "Run makeindex to create index file")
> 		    ("upMendex" "upmendex %(O?idx)" TeX-run-index t
> 		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
> 		      texinfo-mode)
> 		     :help "Run upmendex to create index file")
> 		    ("Xindy" "texindy %s" TeX-run-command nil
> 		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
> 		      texinfo-mode)
> 		     :help "Run xindy to create index file")
> 		    ("Check" "lacheck %s" TeX-run-compile nil (latex-mode)
> 		     :help "Check LaTeX file for correctness")
> 		    ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode)
> 		     :help "Check LaTeX file for common mistakes")
> 		    ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil
> 		     t :help "Spell-check the document")
> 		    ("Clean" "TeX-clean" TeX-run-function nil t :help
> 		     "Delete generated intermediate files")
> 		    ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
> 		     "Delete generated intermediate and output files")
> 		    ("Other" "" TeX-run-command t t :help
> 		     "Run an arbitrary command")
> 		    )
>  )
>
> _______________________________________________
> bug-auctex mailing list
> bug-auctex@HIDDEN
> https://lists.gnu.org/mailman/listinfo/bug-auctex





Information forwarded to bug-auctex@HIDDEN:
bug#56162; Package auctex. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 23 Jun 2022 13:06:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 23 09:06:10 2022
Received: from localhost ([127.0.0.1]:37744 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o4MXB-0004R7-FG
	for submit <at> debbugs.gnu.org; Thu, 23 Jun 2022 09:06:10 -0400
Received: from lists.gnu.org ([209.51.188.17]:52756)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tsdh@HIDDEN>) id 1o4MX9-0004Qz-Cp
 for submit <at> debbugs.gnu.org; Thu, 23 Jun 2022 09:06:08 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:33300)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>) id 1o4MX9-0008Dp-5v
 for bug-auctex@HIDDEN; Thu, 23 Jun 2022 09:06:07 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:43216)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>)
 id 1o4MX8-0001Tk-S4; Thu, 23 Jun 2022 09:06:06 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-reply-to:Date:Subject:To:From:
 References; bh=HkdANgQUHkGS5afxPR05kDTj9lY7Gc1I5u9HHAZHLVM=; b=RIlahe5pcmMjvc
 uOTBx8CoYQJru47QuJBT34eMq2CX+QE+xnB3xddH7FJ34Hzci4PGTUij2nwVVTnwzqjt/3PYmZN5a
 phRAvoDfr222Hvk4uA3MKg5GSbddD7mYurx7i/r5esZ//Rpyn/kI9AKV6wgKRLlhk6RzVl4NXy9/E
 comSCNszyIsYmD6y5lJpvBcft8D+cTu73hXq9+LoXRkFPyIXqmElMrCYXqRcjGEIRVIzDNOMJxMHY
 KPZG0EMx0Wmm0EJkqB73fyFkLdm6Brj2rVh679Ie1nMo6JtAoj31Oz/rz309K+G7dxoN3NPednHzg
 8tKeGhOU0RZYm7DeV9pw==;
Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:47885)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <tsdh@HIDDEN>)
 id 1o4MX8-0008Ve-I8; Thu, 23 Jun 2022 09:06:06 -0400
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailauth.nyi.internal (Postfix) with ESMTP id 35B5E27C0054;
 Thu, 23 Jun 2022 09:06:06 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute5.internal (MEProxy); Thu, 23 Jun 2022 09:06:06 -0400
X-ME-Sender: <xms:PWW0YjF0XDXBei4MwgGtO_M9qswXswLNxd0YrXT2b077M4nbgq1P9g>
 <xme:PWW0YgWb46sXE2mSWjKDtt9N3gG4dxgAjeFRFYm2kJwuDq8XaaPoKxfsZ-SZglpUf
 7P0XNajflZ1Mg>
X-ME-Received: <xmr:PWW0YlLXK-PqBdxE0QMns3XukiRE58PBXZlg8ODkPeWLysGla4aIUXfBTquhYwlsT3U1dWWJ2p_Qfdx3Mp3AbK5PoQGH2YE>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudefjedgheelucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhepfhgfhffvvefuffgjkfggtgfgsehtqhertddtredtnecuhfhrohhmpefvrghs
 shhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnh
 epheeutdekhfettdfgudekkeevueduvdehveevjefhiefgudfhgeejjedtgfdtudejnecu
 ffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg
 hmpehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghl
 ihhthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfh
 grshhtmhgrihhlrdhfmh
X-ME-Proxy: <xmx:PmW0YhHGmf1hJ7risYczvsAlhB23F5zeNHQeyAE9bY2YFNO_2v-L4A>
 <xmx:PmW0YpVfXLS2wsPEWlzsabc4NGyuba6TSrMErBmgaQXVxfoFjug1LA>
 <xmx:PmW0YsMsd51bOpyjhynu52WHV8ZYXNKSh-z7kuFzwaQvLzBGM9nrIg>
 <xmx:PmW0Ymjqmbf4I-4jkl05YV0m2fqqOL7mhpQ487d5k3luFAXzSNgIdw>
Feedback-ID: ib2b94485:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 23 Jun 2022 09:06:05 -0400 (EDT)
References: <87zgi3n074.fsf@HIDDEN>
User-agent: mu4e 1.7.28; emacs 29.0.50
From: Tassilo Horn <tsdh@HIDDEN>
To: Philip Kaludercic <philipk@HIDDEN>
Subject: Re: bug#56162: 13.1.3; "org.freedesktop.DBus.Error.ServiceUnknown"
 when loading AucTeX
Date: Thu, 23 Jun 2022 14:14:14 +0200
In-reply-to: <87zgi3n074.fsf@HIDDEN>
Message-ID: <87czezh6mc.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
Cc: bug-auctex@HIDDEN, Michael Albinus <michael.albinus@HIDDEN>,
 56162 <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: -3.3 (---)

Philip Kaludercic <philipk@HIDDEN> writes:

Hi Philip & Michael,

it looks more like a TRAMP issue to me, so I added Michael to the Cc.

I think your patch might make sense and shouldn't affect users of
Evince/Atril but I'd rather safeguard TeX-evince-dbus-p itself.
However, I want to understand why you get the error.  TeX-evince-dbus-p
is defined starting with:

--8<---------------cut here---------------start------------->8---
(defun TeX-evince-dbus-p (de app &rest options)
  "Return non-nil, if an evince-compatible reader is accessible via DBUS.
Additional OPTIONS may be given to extend the check.  If none are
given, only the minimal requirements needed by backward search
are checked.  If OPTIONS include `:forward', which is currently
the only option, then additional requirements needed by forward
search are checked, too.

DE is the name of the desktop environment, APP is the name of viewer."
  (let ((dbus-debug nil))
    (and (featurep 'dbusbind)
         (require 'dbus nil :no-error)
         (dbus-ignore-errors (dbus-get-unique-name :session))
         (dbus-ping :session (format "org.%s.%s.Daemon" de app))
--8<---------------cut here---------------end--------------->8---

So we can assume you have dbus and the session dbus is available.  But
why does the dbus-ping signal an error?  I can do

  (TeX-evince-dbus-p "foo" "bar")

just fine which simply returns nil.  And how come there's tramp stuff in
your backtrace and you get a file-error?  And what is
/home/cip/2017/oj14ozun/.links2 for a file and why is it accessed via
sftp?

Ah, it seems you have tramp-gvfs-dbus-event-error in
dbus-event-error-functions which is simply added when tramp-gvfs.el is
loaded.  But when loading tramp-gvfs, I still cannot trigger the error
because tramp-gvfs-dbus-event-vector is nil.

Philip, you got that backtrace from M-x TeX-submit-bug-report.  Where
did that /home/cip/2017/oj14ozun/.links2 file come from in that context?

And Michael, looking at the code I have the feeling that
tramp-gvfs-dbus-event-vector should be buffer-local but it's set
globally and then causes the issue...

Bye,
Tassilo

> while loading AucTeX I encounter the following issue:
>
> Debugger entered--Lisp error: (file-error "org.freedesktop.DBus.Error.Ser=
viceUnknown")
>   signal(file-error ("org.freedesktop.DBus.Error.ServiceUnknown"))
>   tramp-error((tramp-file-name "sftp" nil nil "uni" nil "/home/cip/2017/o=
j14ozun/.links2" nil) file-error "org.freedesktop.DBus.Error.ServiceUnknown=
")
>   tramp-gvfs-dbus-event-error((dbus-event :session 3 91 "org.freedesktop.=
DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call=
-method-handler (:string "The name is not activatable")) (dbus-error "org.f=
reedesktop.DBus.Error.ServiceUnknown" "The name is not activatable"))
>   run-hook-with-args(tramp-gvfs-dbus-event-error (dbus-event :session 3 9=
1 "org.freedesktop.DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.Servic=
eUnknown" dbus-call-method-handler (:string "The name is not activatable"))=
 (dbus-error "org.freedesktop.DBus.Error.ServiceUnknown" "The name is not a=
ctivatable"))
>   dbus-handle-event((dbus-event :session 3 91 "org.freedesktop.DBus" ":1.=
97" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-ha=
ndler (:string "The name is not activatable")))
>   funcall-interactively(dbus-handle-event (dbus-event :session 3 91 "org.=
freedesktop.DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.ServiceUnknow=
n" dbus-call-method-handler (:string "The name is not activatable")))
>   command-execute(dbus-handle-event nil [(dbus-event :session 3 91 "org.f=
reedesktop.DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.ServiceUnknown=
" dbus-call-method-handler (:string "The name is not activatable"))] t)
>   read-event(nil nil 0.001)
>   dbus-call-method(:session "org.x.reader.Daemon" "/org/freedesktop/DBus"=
 "org.freedesktop.DBus.Peer" "Ping")
>   dbus-ping(:session "org.x.reader.Daemon")
>   (and (featurep 'dbusbind) (require 'dbus nil :no-error) (condition-case=
 err (progn (dbus-get-unique-name :session)) (dbus-error (if dbus-debug (pr=
ogn (signal (car err) (cdr err)))))) (dbus-ping :session (format "org.%s.%s=
.Daemon" de app)) (or (not (memq :forward options)) (let ((spec (dbus-intro=
spect-get-method :session (format "org.%s.%s.Daemon" de app) (format "/org/=
%s/%s/Daemon" de app) (format "org.%s.%s.Daemon" de app) "FindDocument"))) =
(and spec (equal '("s" "b" "s") (delq nil (mapcar #'... spec)))))))
>   (let ((dbus-debug nil)) (and (featurep 'dbusbind) (require 'dbus nil :n=
o-error) (condition-case err (progn (dbus-get-unique-name :session)) (dbus-=
error (if dbus-debug (progn (signal (car err) (cdr err)))))) (dbus-ping :se=
ssion (format "org.%s.%s.Daemon" de app)) (or (not (memq :forward options))=
 (let ((spec (dbus-introspect-get-method :session (format "org.%s.%s.Daemon=
" de app) (format "/org/%s/%s/Daemon" de app) (format "org.%s.%s.Daemon" de=
 app) "FindDocument"))) (and spec (equal '("s" "b" "s") (delq nil (mapcar .=
.. spec))))))))
>   TeX-evince-dbus-p("x" "reader" :forward)
>   (if (TeX-evince-dbus-p de app :forward) (intern (format "TeX-%s-sync-vi=
ew" app)) (cons app (cons (list 'mode-io-correlate (let ((default-directory=
 (file-name-as-directory ...))) (if (string-match "--page-index" (shell-com=
mand-to-string ...)) " -i %(outpage)" " -p %(outpage)"))) '(" %o"))))
>   TeX-view-program-select-evince("x" "reader")
>   (cons (TeX-view-program-select-evince "x" "reader") '("xreader"))
>   (cons "Xreader" (cons (TeX-view-program-select-evince "x" "reader") '("=
xreader")))
>   (cons (cons "Xreader" (cons (TeX-view-program-select-evince "x" "reader=
") '("xreader"))) '(("Okular" ("okular --unique %o" (mode-io-correlate "#sr=
c:%n%a")) "okular") ("xdg-open" "xdg-open %o" "xdg-open") ("PDF Tools" TeX-=
pdf-tools-sync-view) ("Zathura" ("zathura %o" (mode-io-correlate " --syncte=
x-forward %n:0:\"%b\" -x \"emacsclient +%{li...")) "zathura")))
>   (cons (cons "Evince" (cons (TeX-view-program-select-evince "gnome" "evi=
nce") '("evince"))) (cons (cons "Xreader" (cons (TeX-view-program-select-ev=
ince "x" "reader") '("xreader"))) '(("Okular" ("okular --unique %o" (mode-i=
o-correlate "#src:%n%a")) "okular") ("xdg-open" "xdg-open %o" "xdg-open") (=
"PDF Tools" TeX-pdf-tools-sync-view) ("Zathura" ("zathura %o" (mode-io-corr=
elate " --synctex-forward %n:0:\"%b\" -x \"emacsclient +%{li...")) "zathura=
"))))
>   (cons '("xpdf" ("xpdf -remote %s -raise %o" (mode-io-correlate " %(outp=
age)")) "xpdf") (cons (cons "Evince" (cons (TeX-view-program-select-evince =
"gnome" "evince") '("evince"))) (cons (cons "Xreader" (cons (TeX-view-progr=
am-select-evince "x" "reader") '("xreader"))) '(("Okular" ("okular --unique=
 %o" (mode-io-correlate "#src:%n%a")) "okular") ("xdg-open" "xdg-open %o" "=
xdg-open") ("PDF Tools" TeX-pdf-tools-sync-view) ("Zathura" ("zathura %o" (=
mode-io-correlate " --synctex-forward %n:0:\"%b\" -x \"emacsclient +%{li...=
")) "zathura")))))
>   (cons '("gv" "gv %o" "gv") (cons '("xpdf" ("xpdf -remote %s -raise %o" =
(mode-io-correlate " %(outpage)")) "xpdf") (cons (cons "Evince" (cons (TeX-=
view-program-select-evince "gnome" "evince") '("evince"))) (cons (cons "Xre=
ader" (cons (TeX-view-program-select-evince "x" "reader") '("xreader"))) '(=
("Okular" ("okular --unique %o" ...) "okular") ("xdg-open" "xdg-open %o" "x=
dg-open") ("PDF Tools" TeX-pdf-tools-sync-view) ("Zathura" ("zathura %o" ..=
.) "zathura"))))))
>   (cons (list "dvips and gv" "%(o?)dvips %d -o && gv %f" (list "%(o?)dvip=
s" "gv")) (cons '("gv" "gv %o" "gv") (cons '("xpdf" ("xpdf -remote %s -rais=
e %o" (mode-io-correlate " %(outpage)")) "xpdf") (cons (cons "Evince" (cons=
 (TeX-view-program-select-evince "gnome" "evince") '("evince"))) (cons (con=
s "Xreader" (cons (TeX-view-program-select-evince "x" "reader") '...)) '(("=
Okular" ... "okular") ("xdg-open" "xdg-open %o" "xdg-open") ("PDF Tools" Te=
X-pdf-tools-sync-view) ("Zathura" ... "zathura")))))))
>   (cons '("xdvi" ("%(o?)xdvi" (mode-io-correlate " -sourceposition \"%n %=
b\" -editor \"%cS\"") ((paper-a4 paper-portrait) " -paper a4") ((paper-a4 p=
aper-landscape) " -paper a4r") ((paper-a5 paper-portrait) " -paper a5") ((p=
aper-a5 paper-landscape) " -paper a5r") (paper-b5 " -paper b5") (paper-lett=
er " -paper us") (paper-legal " -paper legal") (paper-executive " -paper 7.=
25x10.5in") " %d") "%(o?)xdvi") (cons (list "dvips and gv" "%(o?)dvips %d -=
o && gv %f" (list "%(o?)dvips" "gv")) (cons '("gv" "gv %o" "gv") (cons '("x=
pdf" ("xpdf -remote %s -raise %o" (mode-io-correlate " %(outpage)")) "xpdf"=
) (cons (cons "Evince" (cons (TeX-view-program-select-evince "gnome" "evinc=
e") '...)) (cons (cons "Xreader" (cons ... ...)) '(... ... ... ...)))))))
>   (cons '("dvi2tty" ("dvi2tty -q -w 132 %o")) (cons '("xdvi" ("%(o?)xdvi"=
 (mode-io-correlate " -sourceposition \"%n %b\" -editor \"%cS\"") ((paper-a=
4 paper-portrait) " -paper a4") ((paper-a4 paper-landscape) " -paper a4r") =
((paper-a5 paper-portrait) " -paper a5") ((paper-a5 paper-landscape) " -pap=
er a5r") (paper-b5 " -paper b5") (paper-letter " -paper us") (paper-legal "=
 -paper legal") (paper-executive " -paper 7.25x10.5in") " %d") "%(o?)xdvi")=
 (cons (list "dvips and gv" "%(o?)dvips %d -o && gv %f" (list "%(o?)dvips" =
"gv")) (cons '("gv" "gv %o" "gv") (cons '("xpdf" ("xpdf -remote %s -raise %=
o" ...) "xpdf") (cons (cons "Evince" (cons ... ...)) (cons (cons "Xreader" =
...) '...)))))))
>   (cond ((eq system-type 'windows-nt) '(("Yap" ("yap -1" (mode-io-correla=
te " -s %n%b") " %o") "yap") ("dviout" ("dviout -1 " ((paper-a4 paper-portr=
ait) "-y=3DA4 ") ((paper-a4 paper-landscape) "-y=3DA4L ") ((paper-a5 paper-=
portrait) "-y=3DA5 ") ((paper-a5 paper-landscape) "-y=3DA5L ") ((paper-b5 p=
aper-portrait) "-y=3DE5 ") ((paper-b5 paper-landscape) "-y=3DE5L ") ((paper=
-b4jis paper-portrait) "-y=3DB4 ") ((paper-b4jis paper-landscape) "-y=3DB4L=
 ") ((paper-b5jis paper-portrait) "-y=3DB5 ") ((paper-b5jis paper-landscape=
) "-y=3DB5L ") (paper-legal "-y=3DLegal ") (paper-letter "-y=3DLetter ") (p=
aper-executive "-y=3DExecutive ") "%d" (mode-io-correlate " \"# %n '%b'\"")=
) "dviout") ("PDF Tools" TeX-pdf-tools-sync-view) ("SumatraPDF" ("SumatraPD=
F -reuse-instance" (mode-io-correlate " -forward-search \"%b\" %n") " %o") =
"SumatraPDF") ("dvips and start" "dvips %d -o && start \"\" %f" "dvips") ("=
start" "start \"\" %o"))) ((eq system-type 'darwin) '(("Preview.app" "open =
-a Preview.app %o" "open") ("Skim" "open -a Skim.app %o" "open") ("PDF Tool=
s" TeX-pdf-tools-sync-view) ("displayline" "displayline %n %o %b" "displayl=
ine") ("open" "open %o" "open"))) (t (cons '("dvi2tty" ("dvi2tty -q -w 132 =
%o")) (cons '("xdvi" ("%(o?)xdvi" (mode-io-correlate " -sourceposition \"%n=
 %b\" -editor \"%cS\"") (... " -paper a4") (... " -paper a4r") (... " -pape=
r a5") (... " -paper a5r") (paper-b5 " -paper b5") (paper-letter " -paper u=
s") (paper-legal " -paper legal") (paper-executive " -paper 7.25x10.5in") "=
 %d") "%(o?)xdvi") (cons (list "dvips and gv" "%(o?)dvips %d -o && gv %f" (=
list "%(o?)dvips" "gv")) (cons '("gv" "gv %o" "gv") (cons '... (cons ... ..=
.))))))))
>   (defvar TeX-view-program-list-builtin (cond ((eq system-type 'windows-n=
t) '(("Yap" ("yap -1" (mode-io-correlate " -s %n%b") " %o") "yap") ("dviout=
" ("dviout -1 " (... "-y=3DA4 ") (... "-y=3DA4L ") (... "-y=3DA5 ") (... "-=
y=3DA5L ") (... "-y=3DE5 ") (... "-y=3DE5L ") (... "-y=3DB4 ") (... "-y=3DB=
4L ") (... "-y=3DB5 ") (... "-y=3DB5L ") (paper-legal "-y=3DLegal ") (paper=
-letter "-y=3DLetter ") (paper-executive "-y=3DExecutive ") "%d" (mode-io-c=
orrelate " \"# %n '%b'\"")) "dviout") ("PDF Tools" TeX-pdf-tools-sync-view)=
 ("SumatraPDF" ("SumatraPDF -reuse-instance" (mode-io-correlate " -forward-=
search \"%b\" %n") " %o") "SumatraPDF") ("dvips and start" "dvips %d -o && =
start \"\" %f" "dvips") ("start" "start \"\" %o"))) ((eq system-type 'darwi=
n) '(("Preview.app" "open -a Preview.app %o" "open") ("Skim" "open -a Skim.=
app %o" "open") ("PDF Tools" TeX-pdf-tools-sync-view) ("displayline" "displ=
ayline %n %o %b" "displayline") ("open" "open %o" "open"))) (t (cons '("dvi=
2tty" ("dvi2tty -q -w 132 %o")) (cons '("xdvi" ("%(o?)xdvi" ... ... ... ...=
 ... ... ... ... ... " %d") "%(o?)xdvi") (cons (list "dvips and gv" "%(o?)d=
vips %d -o && gv %f" (list "%(o?)dvips" "gv")) (cons '... (cons ... ...))))=
))) "Alist of built-in viewer specifications.\nThis vari...")
>   eval-buffer(#<buffer  *load*> nil "/home/philip/.config/emacs/elpa/auct=
ex-13.1.3/tex...." nil t)  ; Reading at buffer position 56145
>   load-with-code-conversion("/home/philip/.config/emacs/elpa/auctex-13.1.=
3/tex...." "/home/philip/.config/emacs/elpa/auctex-13.1.3/tex...." nil t)
>   command-execute(TeX-submit-bug-report record)
>   execute-extended-command(nil "TeX-submit-bug-report" "TeX-bug")
>   funcall-interactively(execute-extended-command nil "TeX-submit-bug-repo=
rt" "TeX-bug")
>   command-execute(execute-extended-command)
>
> Apparently this is caused by `TeX-view-program-list-builtin' trying to
> evaluate
>
> (TeX-view-program-select-evince "mate" "atril") ; for Atril
>
> and
>
> (TeX-view-program-select-evince "x" "reader") ; for Xreader
>
> neither of which are installed on my system.  I can solve this by either
> commenting the two entries out of the alist or by applying this patch
>
> diff -u --label /home/philip/.config/emacs/elpa/auctex-13.1.3/tex.el --la=
bel \#\<buffer\ tex.el\> /home/philip/.config/emacs/elpa/auctex-13.1.3/tex.=
el /tmp/buffer-content-CKKwvw
> --- /home/philip/.config/emacs/elpa/auctex-13.1.3/tex.el
> +++ #<buffer tex.el>
> @@ -1233,7 +1233,7 @@
>=20=20
>  DE is the name of the desktop environment, APP is the name of
>  viewer."
> -  (if (TeX-evince-dbus-p de app :forward)
> +  (if (ignore-errors (TeX-evince-dbus-p de app :forward))
>        (intern (format "TeX-%s-sync-view" app))
>      `(,app (mode-io-correlate
>              ;; When tex.el is loaded as response to opening a tex file
>
> Diff finished.  Thu Jun 23 12:27:02 2022
>
>
> Don't know if this breaks anything for Atril or Xrender users tough...
>
> Emacs  : GNU Emacs 29.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.=
24.34, cairo version 1.17.6)
>  of 2022-06-19
> Package: 13.1.3
>
> current state:
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> (setq
>  AUCTeX-date "2022-04-16"
>  window-system 'pgtk
>  LaTeX-version "2e"
>  TeX-style-path '("~/.emacs.d/auctex"
> 		  "/home/philip/.config/emacs/elpa/auctex-13.1.3/style"
> 		  "/home/philip/.config/emacs/auctex/auto"
> 		  "/home/philip/.config/emacs/auctex/style" "auto" "style")
>  TeX-auto-save t
>  TeX-parse-self t
>  TeX-master 'dwim
>  TeX-command-list '(("TeX"
> 		     "%(PDF)%(tex) %(file-line-error) %`%(extraopts) %S%(PDFout)%(mode)=
%' %(output-dir) %t"
> 		     TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode)
> 		     :help "Run plain TeX")
> 		    ("LaTeX" "%`%l%(mode)%' %T" TeX-run-TeX nil
> 		     (latex-mode doctex-mode) :help "Run LaTeX")
> 		    ("Makeinfo" "makeinfo %(extraopts) %(o-dir) %t"
> 		     TeX-run-compile nil (texinfo-mode) :help
> 		     "Run Makeinfo with Info output")
> 		    ("Makeinfo HTML" "makeinfo %(extraopts) %(o-dir) --html %t"
> 		     TeX-run-compile nil (texinfo-mode) :help
> 		     "Run Makeinfo with HTML output")
> 		    ("AmSTeX"
> 		     "amstex %(PDFout) %`%(extraopts) %S%(mode)%' %(output-dir) %t"
> 		     TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
> 		    ("ConTeXt"
> 		     "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t"
> 		     TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
> 		    ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t"
> 		     TeX-run-TeX nil (context-mode) :help
> 		     "Run ConTeXt until completion")
> 		    ("BibTeX" "bibtex %(O?aux)" TeX-run-BibTeX nil
> 		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
> 		      texinfo-mode context-mode)
> 		     :help "Run BibTeX")
> 		    ("Biber" "biber %(output-dir) %s" TeX-run-Biber nil
> 		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
> 		      texinfo-mode)
> 		     :help "Run Biber")
> 		    ("Texindex" "texindex %s.??" TeX-run-command nil
> 		     (texinfo-mode) :help "Run Texindex")
> 		    ("Texi2dvi" "%(PDF)texi2dvi %t" TeX-run-command nil
> 		     (texinfo-mode) :help "Run Texi2dvi or Texi2pdf")
> 		    ("View" "%V" TeX-run-discard-or-function t t :help
> 		     "Run Viewer")
> 		    ("Print" "%p" TeX-run-command t t :help "Print the file")
> 		    ("Queue" "%q" TeX-run-background nil t :help
> 		     "View the printer queue" :visible TeX-queue-command)
> 		    ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t
> 		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
> 		      texinfo-mode)
> 		     :help "Generate PostScript file")
> 		    ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil
> 		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
> 		      texinfo-mode)
> 		     :help "Convert DVI file to PostScript")
> 		    ("Dvipdfmx" "dvipdfmx -o %(O?pdf) %d" TeX-run-dvipdfmx nil
> 		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
> 		      texinfo-mode)
> 		     :help "Convert DVI file to PDF with dvipdfmx")
> 		    ("Ps2pdf" "ps2pdf %f %(O?pdf)" TeX-run-ps2pdf nil
> 		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
> 		      texinfo-mode)
> 		     :help "Convert PostScript file to PDF")
> 		    ("Glossaries" "makeglossaries %(d-dir) %s" TeX-run-command
> 		     nil
> 		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
> 		      texinfo-mode)
> 		     :help "Run makeglossaries to create glossary file")
> 		    ("Index" "makeindex %(O?idx)" TeX-run-index nil
> 		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
> 		      texinfo-mode)
> 		     :help "Run makeindex to create index file")
> 		    ("upMendex" "upmendex %(O?idx)" TeX-run-index t
> 		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
> 		      texinfo-mode)
> 		     :help "Run upmendex to create index file")
> 		    ("Xindy" "texindy %s" TeX-run-command nil
> 		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
> 		      texinfo-mode)
> 		     :help "Run xindy to create index file")
> 		    ("Check" "lacheck %s" TeX-run-compile nil (latex-mode)
> 		     :help "Check LaTeX file for correctness")
> 		    ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode)
> 		     :help "Check LaTeX file for common mistakes")
> 		    ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil
> 		     t :help "Spell-check the document")
> 		    ("Clean" "TeX-clean" TeX-run-function nil t :help
> 		     "Delete generated intermediate files")
> 		    ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
> 		     "Delete generated intermediate and output files")
> 		    ("Other" "" TeX-run-command t t :help
> 		     "Run an arbitrary command")
> 		    )
>  )
>
> _______________________________________________
> bug-auctex mailing list
> bug-auctex@HIDDEN
> https://lists.gnu.org/mailman/listinfo/bug-auctex





Information forwarded to bug-auctex@HIDDEN:
bug#56162; Package auctex. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 23 Jun 2022 10:28:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 23 06:28:31 2022
Received: from localhost ([127.0.0.1]:37575 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o4K4c-0004Nx-5h
	for submit <at> debbugs.gnu.org; Thu, 23 Jun 2022 06:28:30 -0400
Received: from lists.gnu.org ([209.51.188.17]:49482)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <philipk@HIDDEN>) id 1o4K4a-0004Nq-Ff
 for submit <at> debbugs.gnu.org; Thu, 23 Jun 2022 06:28:29 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:56068)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <philipk@HIDDEN>)
 id 1o4K4a-0001SG-1v
 for bug-auctex@HIDDEN; Thu, 23 Jun 2022 06:28:28 -0400
Received: from mout01.posteo.de ([185.67.36.65]:59361)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <philipk@HIDDEN>)
 id 1o4K4W-0005zP-Bq
 for bug-auctex@HIDDEN; Thu, 23 Jun 2022 06:28:27 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id 17D3C240026
 for <bug-auctex@HIDDEN>; Thu, 23 Jun 2022 12:28:20 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1655980101; bh=kHV7E2vzm5seJ17N3LCsnTPBT85VYW/hHpsGPWQugfU=;
 h=From:To:Subject:Autocrypt:Date:From;
 b=a03oXNXezQGHATNOzKrv/3GGsB6JNnmmTGOq0ZRmHDMH2U7eI54pIdjaJt7YTYHch
 PcI16TyV5dH5GotHg/kZ1NqWbSPGvBGbqd0UrkV3ri1quEa6wX1DVzMhthBoMybMe5
 VROyNe2g89+Ihv7Gvk3yKY3QnFFVOz1DgkCcpYFPz9lJkNjrJ5VdPL0IHQke8tBPZS
 9S5wkRtgDTo9arIek8R2LjSiISFpC07SnFdB3aHoCQgUKIVOx9gOg2VzexPN1q3L3j
 FzepSsnCavfXBDfxTggU23ideBXBGnXTqMU9qdMtQbRzTYXH1aJxfasDexTaSGpIxu
 AjI2EnwL7BpCw==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4LTGg847rTz6tn3
 for <bug-auctex@HIDDEN>; Thu, 23 Jun 2022 12:28:20 +0200 (CEST)
From: Philip Kaludercic <philipk@HIDDEN>
To: bug-auctex@HIDDEN
Subject: 13.1.3; "org.freedesktop.DBus.Error.ServiceUnknown" when loading
 AucTeX
Autocrypt: addr=philipk@HIDDEN; prefer-encrypt=nopreference; keydata=
 mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo
 aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0
 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ
 CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh
 io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF
 AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo
 Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS
 g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB
Date: Thu, 23 Jun 2022 10:28:15 +0000
Message-ID: <87zgi3n074.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@HIDDEN;
 helo=mout01.posteo.de
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 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,
 RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
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 (--)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


Hi,

while loading AucTeX I encounter the following issue:

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (file-error "org.freedesktop.DBus.Error.Servi=
ceUnknown")
  signal(file-error ("org.freedesktop.DBus.Error.ServiceUnknown"))
  tramp-error((tramp-file-name "sftp" nil nil "uni" nil "/home/cip/2017/oj1=
4ozun/.links2" nil) file-error "org.freedesktop.DBus.Error.ServiceUnknown")
  tramp-gvfs-dbus-event-error((dbus-event :session 3 91 "org.freedesktop.DB=
us" ":1.97" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-m=
ethod-handler (:string "The name is not activatable")) (dbus-error "org.fre=
edesktop.DBus.Error.ServiceUnknown" "The name is not activatable"))
  run-hook-with-args(tramp-gvfs-dbus-event-error (dbus-event :session 3 91 =
"org.freedesktop.DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.ServiceU=
nknown" dbus-call-method-handler (:string "The name is not activatable")) (=
dbus-error "org.freedesktop.DBus.Error.ServiceUnknown" "The name is not act=
ivatable"))
  dbus-handle-event((dbus-event :session 3 91 "org.freedesktop.DBus" ":1.97=
" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" dbus-call-method-hand=
ler (:string "The name is not activatable")))
  funcall-interactively(dbus-handle-event (dbus-event :session 3 91 "org.fr=
eedesktop.DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.ServiceUnknown"=
 dbus-call-method-handler (:string "The name is not activatable")))
  command-execute(dbus-handle-event nil [(dbus-event :session 3 91 "org.fre=
edesktop.DBus" ":1.97" nil nil "org.freedesktop.DBus.Error.ServiceUnknown" =
dbus-call-method-handler (:string "The name is not activatable"))] t)
  read-event(nil nil 0.001)
  dbus-call-method(:session "org.x.reader.Daemon" "/org/freedesktop/DBus" "=
org.freedesktop.DBus.Peer" "Ping")
  dbus-ping(:session "org.x.reader.Daemon")
  (and (featurep 'dbusbind) (require 'dbus nil :no-error) (condition-case e=
rr (progn (dbus-get-unique-name :session)) (dbus-error (if dbus-debug (prog=
n (signal (car err) (cdr err)))))) (dbus-ping :session (format "org.%s.%s.D=
aemon" de app)) (or (not (memq :forward options)) (let ((spec (dbus-introsp=
ect-get-method :session (format "org.%s.%s.Daemon" de app) (format "/org/%s=
/%s/Daemon" de app) (format "org.%s.%s.Daemon" de app) "FindDocument"))) (a=
nd spec (equal '("s" "b" "s") (delq nil (mapcar #'... spec)))))))
  (let ((dbus-debug nil)) (and (featurep 'dbusbind) (require 'dbus nil :no-=
error) (condition-case err (progn (dbus-get-unique-name :session)) (dbus-er=
ror (if dbus-debug (progn (signal (car err) (cdr err)))))) (dbus-ping :sess=
ion (format "org.%s.%s.Daemon" de app)) (or (not (memq :forward options)) (=
let ((spec (dbus-introspect-get-method :session (format "org.%s.%s.Daemon" =
de app) (format "/org/%s/%s/Daemon" de app) (format "org.%s.%s.Daemon" de a=
pp) "FindDocument"))) (and spec (equal '("s" "b" "s") (delq nil (mapcar ...=
 spec))))))))
  TeX-evince-dbus-p("x" "reader" :forward)
  (if (TeX-evince-dbus-p de app :forward) (intern (format "TeX-%s-sync-view=
" app)) (cons app (cons (list 'mode-io-correlate (let ((default-directory (=
file-name-as-directory ...))) (if (string-match "--page-index" (shell-comma=
nd-to-string ...)) " -i %(outpage)" " -p %(outpage)"))) '(" %o"))))
  TeX-view-program-select-evince("x" "reader")
  (cons (TeX-view-program-select-evince "x" "reader") '("xreader"))
  (cons "Xreader" (cons (TeX-view-program-select-evince "x" "reader") '("xr=
eader")))
  (cons (cons "Xreader" (cons (TeX-view-program-select-evince "x" "reader")=
 '("xreader"))) '(("Okular" ("okular --unique %o" (mode-io-correlate "#src:=
%n%a")) "okular") ("xdg-open" "xdg-open %o" "xdg-open") ("PDF Tools" TeX-pd=
f-tools-sync-view) ("Zathura" ("zathura %o" (mode-io-correlate " --synctex-=
forward %n:0:\"%b\" -x \"emacsclient +%{li...")) "zathura")))
  (cons (cons "Evince" (cons (TeX-view-program-select-evince "gnome" "evinc=
e") '("evince"))) (cons (cons "Xreader" (cons (TeX-view-program-select-evin=
ce "x" "reader") '("xreader"))) '(("Okular" ("okular --unique %o" (mode-io-=
correlate "#src:%n%a")) "okular") ("xdg-open" "xdg-open %o" "xdg-open") ("P=
DF Tools" TeX-pdf-tools-sync-view) ("Zathura" ("zathura %o" (mode-io-correl=
ate " --synctex-forward %n:0:\"%b\" -x \"emacsclient +%{li...")) "zathura")=
)))
  (cons '("xpdf" ("xpdf -remote %s -raise %o" (mode-io-correlate " %(outpag=
e)")) "xpdf") (cons (cons "Evince" (cons (TeX-view-program-select-evince "g=
nome" "evince") '("evince"))) (cons (cons "Xreader" (cons (TeX-view-program=
-select-evince "x" "reader") '("xreader"))) '(("Okular" ("okular --unique %=
o" (mode-io-correlate "#src:%n%a")) "okular") ("xdg-open" "xdg-open %o" "xd=
g-open") ("PDF Tools" TeX-pdf-tools-sync-view) ("Zathura" ("zathura %o" (mo=
de-io-correlate " --synctex-forward %n:0:\"%b\" -x \"emacsclient +%{li...")=
) "zathura")))))
  (cons '("gv" "gv %o" "gv") (cons '("xpdf" ("xpdf -remote %s -raise %o" (m=
ode-io-correlate " %(outpage)")) "xpdf") (cons (cons "Evince" (cons (TeX-vi=
ew-program-select-evince "gnome" "evince") '("evince"))) (cons (cons "Xread=
er" (cons (TeX-view-program-select-evince "x" "reader") '("xreader"))) '(("=
Okular" ("okular --unique %o" ...) "okular") ("xdg-open" "xdg-open %o" "xdg=
-open") ("PDF Tools" TeX-pdf-tools-sync-view) ("Zathura" ("zathura %o" ...)=
 "zathura"))))))
  (cons (list "dvips and gv" "%(o?)dvips %d -o && gv %f" (list "%(o?)dvips"=
 "gv")) (cons '("gv" "gv %o" "gv") (cons '("xpdf" ("xpdf -remote %s -raise =
%o" (mode-io-correlate " %(outpage)")) "xpdf") (cons (cons "Evince" (cons (=
TeX-view-program-select-evince "gnome" "evince") '("evince"))) (cons (cons =
"Xreader" (cons (TeX-view-program-select-evince "x" "reader") '...)) '(("Ok=
ular" ... "okular") ("xdg-open" "xdg-open %o" "xdg-open") ("PDF Tools" TeX-=
pdf-tools-sync-view) ("Zathura" ... "zathura")))))))
  (cons '("xdvi" ("%(o?)xdvi" (mode-io-correlate " -sourceposition \"%n %b\=
" -editor \"%cS\"") ((paper-a4 paper-portrait) " -paper a4") ((paper-a4 pap=
er-landscape) " -paper a4r") ((paper-a5 paper-portrait) " -paper a5") ((pap=
er-a5 paper-landscape) " -paper a5r") (paper-b5 " -paper b5") (paper-letter=
 " -paper us") (paper-legal " -paper legal") (paper-executive " -paper 7.25=
x10.5in") " %d") "%(o?)xdvi") (cons (list "dvips and gv" "%(o?)dvips %d -o =
&& gv %f" (list "%(o?)dvips" "gv")) (cons '("gv" "gv %o" "gv") (cons '("xpd=
f" ("xpdf -remote %s -raise %o" (mode-io-correlate " %(outpage)")) "xpdf") =
(cons (cons "Evince" (cons (TeX-view-program-select-evince "gnome" "evince"=
) '...)) (cons (cons "Xreader" (cons ... ...)) '(... ... ... ...)))))))
  (cons '("dvi2tty" ("dvi2tty -q -w 132 %o")) (cons '("xdvi" ("%(o?)xdvi" (=
mode-io-correlate " -sourceposition \"%n %b\" -editor \"%cS\"") ((paper-a4 =
paper-portrait) " -paper a4") ((paper-a4 paper-landscape) " -paper a4r") ((=
paper-a5 paper-portrait) " -paper a5") ((paper-a5 paper-landscape) " -paper=
 a5r") (paper-b5 " -paper b5") (paper-letter " -paper us") (paper-legal " -=
paper legal") (paper-executive " -paper 7.25x10.5in") " %d") "%(o?)xdvi") (=
cons (list "dvips and gv" "%(o?)dvips %d -o && gv %f" (list "%(o?)dvips" "g=
v")) (cons '("gv" "gv %o" "gv") (cons '("xpdf" ("xpdf -remote %s -raise %o"=
 ...) "xpdf") (cons (cons "Evince" (cons ... ...)) (cons (cons "Xreader" ..=
.) '...)))))))
  (cond ((eq system-type 'windows-nt) '(("Yap" ("yap -1" (mode-io-correlate=
 " -s %n%b") " %o") "yap") ("dviout" ("dviout -1 " ((paper-a4 paper-portrai=
t) "-y=3DA4 ") ((paper-a4 paper-landscape) "-y=3DA4L ") ((paper-a5 paper-po=
rtrait) "-y=3DA5 ") ((paper-a5 paper-landscape) "-y=3DA5L ") ((paper-b5 pap=
er-portrait) "-y=3DE5 ") ((paper-b5 paper-landscape) "-y=3DE5L ") ((paper-b=
4jis paper-portrait) "-y=3DB4 ") ((paper-b4jis paper-landscape) "-y=3DB4L "=
) ((paper-b5jis paper-portrait) "-y=3DB5 ") ((paper-b5jis paper-landscape) =
"-y=3DB5L ") (paper-legal "-y=3DLegal ") (paper-letter "-y=3DLetter ") (pap=
er-executive "-y=3DExecutive ") "%d" (mode-io-correlate " \"# %n '%b'\"")) =
"dviout") ("PDF Tools" TeX-pdf-tools-sync-view) ("SumatraPDF" ("SumatraPDF =
-reuse-instance" (mode-io-correlate " -forward-search \"%b\" %n") " %o") "S=
umatraPDF") ("dvips and start" "dvips %d -o && start \"\" %f" "dvips") ("st=
art" "start \"\" %o"))) ((eq system-type 'darwin) '(("Preview.app" "open -a=
 Preview.app %o" "open") ("Skim" "open -a Skim.app %o" "open") ("PDF Tools"=
 TeX-pdf-tools-sync-view) ("displayline" "displayline %n %o %b" "displaylin=
e") ("open" "open %o" "open"))) (t (cons '("dvi2tty" ("dvi2tty -q -w 132 %o=
")) (cons '("xdvi" ("%(o?)xdvi" (mode-io-correlate " -sourceposition \"%n %=
b\" -editor \"%cS\"") (... " -paper a4") (... " -paper a4r") (... " -paper =
a5") (... " -paper a5r") (paper-b5 " -paper b5") (paper-letter " -paper us"=
) (paper-legal " -paper legal") (paper-executive " -paper 7.25x10.5in") " %=
d") "%(o?)xdvi") (cons (list "dvips and gv" "%(o?)dvips %d -o && gv %f" (li=
st "%(o?)dvips" "gv")) (cons '("gv" "gv %o" "gv") (cons '... (cons ... ...)=
)))))))
  (defvar TeX-view-program-list-builtin (cond ((eq system-type 'windows-nt)=
 '(("Yap" ("yap -1" (mode-io-correlate " -s %n%b") " %o") "yap") ("dviout" =
("dviout -1 " (... "-y=3DA4 ") (... "-y=3DA4L ") (... "-y=3DA5 ") (... "-y=
=3DA5L ") (... "-y=3DE5 ") (... "-y=3DE5L ") (... "-y=3DB4 ") (... "-y=3DB4=
L ") (... "-y=3DB5 ") (... "-y=3DB5L ") (paper-legal "-y=3DLegal ") (paper-=
letter "-y=3DLetter ") (paper-executive "-y=3DExecutive ") "%d" (mode-io-co=
rrelate " \"# %n '%b'\"")) "dviout") ("PDF Tools" TeX-pdf-tools-sync-view) =
("SumatraPDF" ("SumatraPDF -reuse-instance" (mode-io-correlate " -forward-s=
earch \"%b\" %n") " %o") "SumatraPDF") ("dvips and start" "dvips %d -o && s=
tart \"\" %f" "dvips") ("start" "start \"\" %o"))) ((eq system-type 'darwin=
) '(("Preview.app" "open -a Preview.app %o" "open") ("Skim" "open -a Skim.a=
pp %o" "open") ("PDF Tools" TeX-pdf-tools-sync-view) ("displayline" "displa=
yline %n %o %b" "displayline") ("open" "open %o" "open"))) (t (cons '("dvi2=
tty" ("dvi2tty -q -w 132 %o")) (cons '("xdvi" ("%(o?)xdvi" ... ... ... ... =
... ... ... ... ... " %d") "%(o?)xdvi") (cons (list "dvips and gv" "%(o?)dv=
ips %d -o && gv %f" (list "%(o?)dvips" "gv")) (cons '... (cons ... ...)))))=
)) "Alist of built-in viewer specifications.\nThis vari...")
  eval-buffer(#<buffer  *load*> nil "/home/philip/.config/emacs/elpa/auctex=
-13.1.3/tex...." nil t)  ; Reading at buffer position 56145
  load-with-code-conversion("/home/philip/.config/emacs/elpa/auctex-13.1.3/=
tex...." "/home/philip/.config/emacs/elpa/auctex-13.1.3/tex...." nil t)
  command-execute(TeX-submit-bug-report record)
  execute-extended-command(nil "TeX-submit-bug-report" "TeX-bug")
  funcall-interactively(execute-extended-command nil "TeX-submit-bug-report=
" "TeX-bug")
  command-execute(execute-extended-command)
--8<---------------cut here---------------end--------------->8---

Apparently this is caused by `TeX-view-program-list-builtin' trying to
evaluate

(TeX-view-program-select-evince "mate" "atril") ; for Atril

and

(TeX-view-program-select-evince "x" "reader") ; for Xreader

neither of which are installed on my system.  I can solve this by either
commenting the two entries out of the alist or by applying this patch


--=-=-=
Content-Type: text/plain
Content-Disposition: inline

diff -u --label /home/philip/.config/emacs/elpa/auctex-13.1.3/tex.el --label \#\<buffer\ tex.el\> /home/philip/.config/emacs/elpa/auctex-13.1.3/tex.el /tmp/buffer-content-CKKwvw
--- /home/philip/.config/emacs/elpa/auctex-13.1.3/tex.el
+++ #<buffer tex.el>
@@ -1233,7 +1233,7 @@
 
 DE is the name of the desktop environment, APP is the name of
 viewer."
-  (if (TeX-evince-dbus-p de app :forward)
+  (if (ignore-errors (TeX-evince-dbus-p de app :forward))
       (intern (format "TeX-%s-sync-view" app))
     `(,app (mode-io-correlate
             ;; When tex.el is loaded as response to opening a tex file

Diff finished.  Thu Jun 23 12:27:02 2022

--=-=-=
Content-Type: text/plain


Don't know if this breaks anything for Atril or Xrender users tough...

Emacs  : GNU Emacs 29.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6)
 of 2022-06-19
Package: 13.1.3

current state:
==============
(setq
 AUCTeX-date "2022-04-16"
 window-system 'pgtk
 LaTeX-version "2e"
 TeX-style-path '("~/.emacs.d/auctex"
		  "/home/philip/.config/emacs/elpa/auctex-13.1.3/style"
		  "/home/philip/.config/emacs/auctex/auto"
		  "/home/philip/.config/emacs/auctex/style" "auto" "style")
 TeX-auto-save t
 TeX-parse-self t
 TeX-master 'dwim
 TeX-command-list '(("TeX"
		     "%(PDF)%(tex) %(file-line-error) %`%(extraopts) %S%(PDFout)%(mode)%' %(output-dir) %t"
		     TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode)
		     :help "Run plain TeX")
		    ("LaTeX" "%`%l%(mode)%' %T" TeX-run-TeX nil
		     (latex-mode doctex-mode) :help "Run LaTeX")
		    ("Makeinfo" "makeinfo %(extraopts) %(o-dir) %t"
		     TeX-run-compile nil (texinfo-mode) :help
		     "Run Makeinfo with Info output")
		    ("Makeinfo HTML" "makeinfo %(extraopts) %(o-dir) --html %t"
		     TeX-run-compile nil (texinfo-mode) :help
		     "Run Makeinfo with HTML output")
		    ("AmSTeX"
		     "amstex %(PDFout) %`%(extraopts) %S%(mode)%' %(output-dir) %t"
		     TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
		    ("ConTeXt"
		     "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t"
		     TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
		    ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t"
		     TeX-run-TeX nil (context-mode) :help
		     "Run ConTeXt until completion")
		    ("BibTeX" "bibtex %(O?aux)" TeX-run-BibTeX nil
		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
		      texinfo-mode context-mode)
		     :help "Run BibTeX")
		    ("Biber" "biber %(output-dir) %s" TeX-run-Biber nil
		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
		      texinfo-mode)
		     :help "Run Biber")
		    ("Texindex" "texindex %s.??" TeX-run-command nil
		     (texinfo-mode) :help "Run Texindex")
		    ("Texi2dvi" "%(PDF)texi2dvi %t" TeX-run-command nil
		     (texinfo-mode) :help "Run Texi2dvi or Texi2pdf")
		    ("View" "%V" TeX-run-discard-or-function t t :help
		     "Run Viewer")
		    ("Print" "%p" TeX-run-command t t :help "Print the file")
		    ("Queue" "%q" TeX-run-background nil t :help
		     "View the printer queue" :visible TeX-queue-command)
		    ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t
		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
		      texinfo-mode)
		     :help "Generate PostScript file")
		    ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil
		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
		      texinfo-mode)
		     :help "Convert DVI file to PostScript")
		    ("Dvipdfmx" "dvipdfmx -o %(O?pdf) %d" TeX-run-dvipdfmx nil
		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
		      texinfo-mode)
		     :help "Convert DVI file to PDF with dvipdfmx")
		    ("Ps2pdf" "ps2pdf %f %(O?pdf)" TeX-run-ps2pdf nil
		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
		      texinfo-mode)
		     :help "Convert PostScript file to PDF")
		    ("Glossaries" "makeglossaries %(d-dir) %s" TeX-run-command
		     nil
		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
		      texinfo-mode)
		     :help "Run makeglossaries to create glossary file")
		    ("Index" "makeindex %(O?idx)" TeX-run-index nil
		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
		      texinfo-mode)
		     :help "Run makeindex to create index file")
		    ("upMendex" "upmendex %(O?idx)" TeX-run-index t
		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
		      texinfo-mode)
		     :help "Run upmendex to create index file")
		    ("Xindy" "texindy %s" TeX-run-command nil
		     (plain-tex-mode latex-mode doctex-mode ams-tex-mode
		      texinfo-mode)
		     :help "Run xindy to create index file")
		    ("Check" "lacheck %s" TeX-run-compile nil (latex-mode)
		     :help "Check LaTeX file for correctness")
		    ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode)
		     :help "Check LaTeX file for common mistakes")
		    ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil
		     t :help "Spell-check the document")
		    ("Clean" "TeX-clean" TeX-run-function nil t :help
		     "Delete generated intermediate files")
		    ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
		     "Delete generated intermediate and output files")
		    ("Other" "" TeX-run-command t t :help
		     "Run an arbitrary command")
		    )
 )

--=-=-=--




Acknowledgement sent to Philip Kaludercic <philipk@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-auctex@HIDDEN. Full text available.
Report forwarded to bug-auctex@HIDDEN:
bug#56162; Package auctex. 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: Thu, 23 Jun 2022 17:45:02 UTC

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