tab completion and word killing in the shell
Ulf Wiger
ulf.wiger@REDACTED
Thu Dec 17 12:24:18 CET 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
As a substitute for sleeping one night, I thought I'd
tackle an old nuisance - that tab completion in the shell
doesn't work for quoted module and function names.*
I have something that works for functions now, and almost
for modules (trying to change the existing code as little
as possible), but the function edlin:over_word is also
used for other purposes...
As a consequence of my fix, when I place the cursor on a
quoted atom and hit <META>-D (kill word), the quotes are
killed as well. I am willing to think of this as an
improvement, but thought I'd ask the rest of you first.
In other words,
1> hello:'world'
If you place the cursor on the first ' and hit kill word,
you end up with
1> hello:'
in the unpatched version, and
1> hello:
in mine.
If you place the cursor on the w, and hit kill word,
1> hello:''
in the unpatched version, and
1> hello:'
in mine.
I assume that very few people use these features of the shell,
and I have never heard any complaints, but still, does anyone
have very strong feelings about how this should work?
BR,
Ulf W
* Yeah, I know, you're not supposed to use quoted function names,
but sometimes, it is done. ORBER has both quoted module names and
function names. Xmerl and Yecc both use quoted function names, as
does exprecs. It was for exprecs in particular that I think it's
painful not to have working tab completion, since the functions
are useful, but a bit awkward to write.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAksqFOIACgkQtqqFieqzed2qygCg4GusadjiBZon6nToY72jqq6i
EO4AoKaOHBOhAjrFDAgL5oH/fwB9u4dv
=Oiht
-----END PGP SIGNATURE-----
More information about the erlang-questions
mailing list