all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: Pankaj Jangid <p4j@j4d.net>, 39111@debbugs.gnu.org
Subject: bug#39111: 27.0.60; Tramp offers to save password in ~/.authinfo instead of ~/.authinfo.gpg
Date: Sun, 05 Sep 2021 10:40:06 +0200	[thread overview]
Message-ID: <87r1e3o1p5.fsf@gnus.org> (raw)
In-Reply-To: <87zgss4xtt.fsf@gmx.de> (Michael Albinus's message of "Sat, 04 Sep 2021 09:14:06 +0200")

Michael Albinus <michael.albinus@gmx.de> writes:

> Perhaps setting auth-source-debug gives more information?

Unfortunately not.  This is the most confusing behaviour I've ever seen
in Emacs -- it does prompt if I edebug certain auth-source functions,
so I added a bunch of messages to see where it...  gives out.  And:

(defun auth-source-netrc-saver (file add)

[...]

        ;; Ask AFTER we've successfully opened the file.
        (let ((prompt (format "Save auth info to file %s? " file))
              (done (not (eq auth-source-save-behavior 'ask)))
              (bufname "*auth-source Help*")
              k)
          (message "hello 3 %s %s" auth-source-save-behavior done)
          (while (not done)
            (message "hello 3.5")
            (setq k (auth-source-read-char-choice prompt '(?y ?n ?N ?e ??)))
            (message "hello 4 %s" k)

Tramp: Opening connection nil for larsi@stories using ssh...
hello 2 nil
hello 3 ~/.authinfo
hello 3 ask nil
hello 3.5
Tramp: Opening connection nil for larsi@stories using ssh...done

So we're getting all the way to `auth-source-read-char-choice' (which
just does a read-char-choice), but not to the next statement.

Is something making read-char-choice bug out, but in a way that's caught
by Tramp (or something else), so we just continue?  debug-on-signal
doesn't help, either.

Very confusing.

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





  reply	other threads:[~2021-09-05  8:40 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-13  9:45 bug#39111: 27.0.60; Tramp offers to save password in ~/.authinfo instead of ~/.authinfo.gpg Pankaj Jangid
2020-10-30 14:30 ` Lars Ingebrigtsen
2020-10-31  7:21   ` Pankaj Jangid
2021-08-30  1:30     ` Lars Ingebrigtsen
2021-08-30  7:15       ` Michael Albinus
2021-08-30 23:59         ` Lars Ingebrigtsen
2021-08-31  8:13           ` Michael Albinus
2021-09-01  7:50             ` Lars Ingebrigtsen
2021-09-01  9:51               ` Michael Albinus
2021-09-02 13:56               ` Pankaj Jangid
2021-09-03  5:59                 ` Lars Ingebrigtsen
2021-09-04  7:14                   ` Michael Albinus
2021-09-05  8:40                     ` Lars Ingebrigtsen [this message]
2021-09-05  9:32                       ` Eli Zaretskii
2021-09-06  8:19                         ` Lars Ingebrigtsen
2021-09-01  6:24 ` bug#39111: [Re] " Thierry Volpiatto
2021-09-01 16:34   ` Michael Albinus
2021-09-02  4:21     ` Thierry Volpiatto
2021-09-02  6:49       ` 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

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

  git send-email \
    --in-reply-to=87r1e3o1p5.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=39111@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    --cc=p4j@j4d.net \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.