EFS 1.12 bug: Re: .netrc and filename completion
Joerg-Martin Schwarz (schwarz@hal1.physik.uni-dortmund.de)
Mon, 3 Oct 1994 19:32:35 +0100
Salut bug team,
One thing that bugs me is that efs does not read a .netrc
with login userid, but without password etc properly.
More precisely, the line
machine anubis.ethz.ch login anonymous
does not produce an entry in the host-user-hashtable, and therefore
it is not possible to do completions like
/ano TAB => /anonymous@
in the minibuffer.
As a quick fix, I am using a function:
(defun efs-set-user (host user)
"For a given HOST, set or change the default USER."
(interactive "sHost: \nsUser: ")
(let* ((key (concat (downcase host) "/" user))
(sym (and (memq (efs-host-type host) efs-case-insensitive-host-types)
(efs-case-fold-intern-soft key efs-host-user-hashtable))))
(or sym (setq sym (intern key efs-host-user-hashtable))))
(efs-set-host-property host 'user user))
now, but I wonder if there is a better place to intern it.
--
Mit besten Gruessen,
Joerg-Martin Schwarz
/------------------------------+---------------------------------------------\
|Addresse: | e-mail: |
| Abteilung Physik (T III) | uph508@unidozr.hrz.uni-dortmund.de |
| Universitaet Dortmund | schwarz@{hal1,het}.physik.uni-dortmund.de |
| Otto Hahn-Strasse 4 |---------------------------------------------|
| D44221 Dortmund | |
|Telefon: | |
| +49/231/755-3581 | ___ |
|Fax: -3569 | (o o) |
\------------------------------+--ooO-(_)-Ooo--------------------------------/