* Re: [Emacs-diffs] master 618310c: Work on `tramp-completion-mode-p'
[not found] ` <20170226114526.6EC2026044@vcs0.savannah.gnu.org>
@ 2017-02-28 0:06 ` Dmitry Gutov
2017-02-28 9:05 ` Michael Albinus
0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Gutov @ 2017-02-28 0:06 UTC (permalink / raw)
To: emacs-devel, Michael Albinus
On 26.02.2017 13:45, Michael Albinus wrote:
> (progn (defun tramp-completion-mode-p ()
> "Check, whether method / user name / host name completion is active."
> (or
> ;; Signal from outside. `non-essential' has been introduced in Emacs 24.
> (and (boundp 'non-essential) (symbol-value 'non-essential))
> - tramp-completion-mode)))
> + ;; This variable has been obsoleted in Emacs 26.
> + tramp-completion-mode
> + ;; Fallback. Some completion packages still don't support
> + ;; `non-essential' sufficiently.
Any packages in particular? Should we try working with their authors?
> + (equal last-input-event 'tab))))
Not sure I understand what's going on here. It seems you are making
`non-essential' being non-nil and `tab' being the last input event have
the same impact.
Whereas, IME, the user pressing TAB usually means that the completion
operation *is essential*, and they would probably be willing to input
their connection credentials if necessary.
Like the discussion in https://debbugs.gnu.org/25607 has touched on.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Emacs-diffs] master 618310c: Work on `tramp-completion-mode-p'
2017-02-28 0:06 ` [Emacs-diffs] master 618310c: Work on `tramp-completion-mode-p' Dmitry Gutov
@ 2017-02-28 9:05 ` Michael Albinus
2017-02-28 10:32 ` Dmitry Gutov
0 siblings, 1 reply; 4+ messages in thread
From: Michael Albinus @ 2017-02-28 9:05 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: emacs-devel
Dmitry Gutov <dgutov@yandex.ru> writes:
Hi Dmitry,
>> + ;; Fallback. Some completion packages still don't support
>> + ;; `non-essential' sufficiently.
>
> Any packages in particular? Should we try working with their authors?
Yes, I'll intend to compile a list of problems, and go through then.
>> + (equal last-input-event 'tab))))
>
> Not sure I understand what's going on here.
I've reintroduced a very old workaround in Tramp, which is there since
2002 or so. Recently, I've removed it (commit
611088642fa60f4e29ccaac0236d2bac3c10e98f from Feb 15), because I thought
Tramp doesn't need it any longer. But that was too early; there are
still problems then, and I don't want to disappoint users of Emacs
master. So I've taken this back.
The plan is still to get rid of it for Emacs 26.
Best regards, Michael.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Emacs-diffs] master 618310c: Work on `tramp-completion-mode-p'
2017-02-28 9:05 ` Michael Albinus
@ 2017-02-28 10:32 ` Dmitry Gutov
2017-02-28 12:14 ` Michael Albinus
0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Gutov @ 2017-02-28 10:32 UTC (permalink / raw)
To: Michael Albinus; +Cc: emacs-devel
On 28.02.2017 11:05, Michael Albinus wrote:
> I've reintroduced a very old workaround in Tramp, which is there since
> 2002 or so. Recently, I've removed it (commit
> 611088642fa60f4e29ccaac0236d2bac3c10e98f from Feb 15),
I think you mean adfb6f1dc26a927cf4bab24bdfae54b51e3ae0ec.
> because I thought
> Tramp doesn't need it any longer. But that was too early; there are
> still problems then, and I don't want to disappoint users of Emacs
> master. So I've taken this back.
>
> The plan is still to get rid of it for Emacs 26.
I was commenting on the details of that workaround. But if you prefer to
consider all that later, that's fine.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Emacs-diffs] master 618310c: Work on `tramp-completion-mode-p'
2017-02-28 10:32 ` Dmitry Gutov
@ 2017-02-28 12:14 ` Michael Albinus
0 siblings, 0 replies; 4+ messages in thread
From: Michael Albinus @ 2017-02-28 12:14 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: emacs-devel
Dmitry Gutov <dgutov@yandex.ru> writes:
> On 28.02.2017 11:05, Michael Albinus wrote:
>
>> I've reintroduced a very old workaround in Tramp, which is there since
>> 2002 or so. Recently, I've removed it (commit
>> 611088642fa60f4e29ccaac0236d2bac3c10e98f from Feb 15),
>
> I think you mean adfb6f1dc26a927cf4bab24bdfae54b51e3ae0ec.
Indeed, sorry. I've mentioned the related commit in the Tramp repo.
> I was commenting on the details of that workaround. But if you prefer
> to consider all that later, that's fine.
I want to get rid of this workaround. That's why it's wasted time to
discuss its pros and cons, I believe.
But thanks that you have taken the time to chime in! I'm pretty sure
there will be lot of opportunities next time to speak about Tramp file
name completion ...
Best regards, Michael.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-02-28 12:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20170226114525.28549.46289@vcs0.savannah.gnu.org>
[not found] ` <20170226114526.6EC2026044@vcs0.savannah.gnu.org>
2017-02-28 0:06 ` [Emacs-diffs] master 618310c: Work on `tramp-completion-mode-p' Dmitry Gutov
2017-02-28 9:05 ` Michael Albinus
2017-02-28 10:32 ` Dmitry Gutov
2017-02-28 12:14 ` Michael Albinus
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.