From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#63578: 29.0.91; Org Cannot tangle with tramp using sudo Date: Fri, 19 May 2023 06:32:33 +0000 Message-ID: <87v8goltku.fsf@localhost> References: <831qjcvpbg.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25316"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Bastien , 63578@debbugs.gnu.org, "k.ninev@cdots.bg" To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 19 08:30:35 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pztdL-0006QM-I8 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 May 2023 08:30:35 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pztcy-00087L-7b; Fri, 19 May 2023 02:30:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pztcq-00085R-Vj for bug-gnu-emacs@gnu.org; Fri, 19 May 2023 02:30:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pztco-00081H-R7 for bug-gnu-emacs@gnu.org; Fri, 19 May 2023 02:30:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pztco-0006MI-F6 for bug-gnu-emacs@gnu.org; Fri, 19 May 2023 02:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 May 2023 06:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63578 X-GNU-PR-Package: emacs Original-Received: via spool by 63578-submit@debbugs.gnu.org id=B63578.168447776324372 (code B ref 63578); Fri, 19 May 2023 06:30:02 +0000 Original-Received: (at 63578) by debbugs.gnu.org; 19 May 2023 06:29:23 +0000 Original-Received: from localhost ([127.0.0.1]:55230 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pztcB-0006L2-4s for submit@debbugs.gnu.org; Fri, 19 May 2023 02:29:23 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:55823) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pztc6-0006Km-OG for 63578@debbugs.gnu.org; Fri, 19 May 2023 02:29:21 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 78A02240103 for <63578@debbugs.gnu.org>; Fri, 19 May 2023 08:29:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1684477752; bh=Pg+rSyW6Azzh9uoabSIYFL1SM4jgClQb2STk3SIUxyk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=M9dLAgmUMW6UkGqwpJWgSBm/XFXH+/AmbbgHyWwb0/GtMeKOe525yij7+WvKFLHWD jxdKsU5AYWzpf9yYkt0DojzjMfMAomdVGi9y/GakjmDVtiJwOszIrgV1SaOVdqjrgU YzZztwekE9eOPxuwMdx8/CE/KhzCIS94UjKnF5DffndmDDrgwomvfFpwHJaoIchYWr 0huMMEfrZJqgfrSRDfZ6jcmdjcdxnL5Q/Eygfw1NGLXA5gIMuaDp4fv+drHBoDE6sB G+KHiYkdho5hzVaEipaMr3g4NSDCNhnJMdMPycNbLiHCXQuGKfGfZ1ykkFXCJpU5kc ngs15RX1c6dFg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QMxkv5dqmz9rxK; Fri, 19 May 2023 08:29:11 +0200 (CEST) In-Reply-To: <831qjcvpbg.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261978 Archived-At: Eli Zaretskii writes: >> Triyng to tangle this org block on emacs 29.0.91 with emacs -Q >> >> #+begin_src conf :tangle /ssh:user@server|sudo::/etc/test.conf >> test >> #+end_src >> >> It hangs with Opening connection nil for root@server using sudo.... If I >> install emacs 28 everything works fine. > ... > Adding Org developers to CC, in case Org has something to do with > this. It would help to do M-x toggle-debug-on-quit ... try to tangle ... C-g, and share the backtrace. The suspicious, recently changed part of the tangle code is below. I do not see anything fishy there, even when file is remote. (unless (and (file-exists-p file-name) (let ((tangle-buf (current-buffer))) (with-temp-buffer (insert-file-contents file-name) (and (equal (buffer-size) (buffer-size tangle-buf)) (= 0 (let (case-fold-search) (compare-buffer-substrings nil nil nil tangle-buf nil nil))))))) ;; erase previous file (when (file-exists-p file-name) (delete-file file-name)) (write-region nil nil file-name) (mapc (lambda (mode) (set-file-modes file-name mode)) modes)) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at