unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Bastien <bzg@gnu.org>,
	63578@debbugs.gnu.org, "k.ninev@cdots.bg" <k.ninev@cdots.bg>
Subject: bug#63578: 29.0.91; Org Cannot tangle with tramp using sudo
Date: Fri, 19 May 2023 06:32:33 +0000	[thread overview]
Message-ID: <87v8goltku.fsf@localhost> (raw)
In-Reply-To: <831qjcvpbg.fsf@gnu.org>

Eli Zaretskii <eliz@gnu.org> 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 <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>





  reply	other threads:[~2023-05-19  6:32 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-18 19:21 bug#63578: 29.0.91; Org Cannot tangle with tramp using sudo k.ninev@cdots.bg via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-05-19  5:54 ` Eli Zaretskii
2023-05-19  6:32   ` Ihor Radchenko [this message]
2023-05-19  6:55     ` Kostadin Ninev
2023-05-19  7:17       ` Ihor Radchenko
2023-05-19  7:18         ` Kostadin Ninev
2023-05-19  7:28           ` Ihor Radchenko
2023-05-19  9:12             ` Kostadin Ninev
2023-05-19  9:43               ` Michael Albinus
2023-05-19  9:49                 ` Kostadin Ninev
2023-05-19 10:57                 ` Kostadin Ninev
2023-05-20  8:30                 ` Kostadin Ninev
2023-05-20 11:16                   ` Michael Albinus
2023-05-20 11:26                     ` Kostadin Ninev
2023-05-20 11:50                       ` Michael Albinus
2023-05-20 11:53                         ` Kostadin Ninev
2023-05-20 14:48                           ` Michael Albinus
2023-05-20 16:50                             ` Michael Albinus
2023-05-20 17:09                               ` Kostadin Ninev
2023-05-22 10:44                                 ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v8goltku.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=63578@debbugs.gnu.org \
    --cc=bzg@gnu.org \
    --cc=eliz@gnu.org \
    --cc=k.ninev@cdots.bg \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

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