From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: shell-mode command completion with slashes
Date: Thu, 30 Oct 2008 12:57:22 -0400 [thread overview]
Message-ID: <barmar-4158BE.12572230102008@mara100-84.onlink.net> (raw)
I'm running Emacs 22.2.50 on OS X 10.5.5, and I use shell mode
extensively. I don't have "." in my $PATH, so if I want to run a
program in the current directory I need to type "./program-name". I'd
like to be able to type "./prog<TAB>" and have it complete it, but it
doesn't. I looked at the source code of shell-dynamic-complete-command,
and it explicitly checks for "~" or "/" in the word being completed, and
gives up. And shell-dynamic-complete-filename gives up if it's being
used for the first word of a command, it only works for arguments.
This used to work, probably before I upgraded from 22.1 to 22.2. Anyone
know how to get the old behavior back? Did it use
comint-dynamic-complete-filename instead of
shell-dynamic-complete-filename? The former doesn't check for the
location in the command, but it also doesn't care whether the file it
completes to is an executable.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
next reply other threads:[~2008-10-30 16:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-30 16:57 Barry Margolin [this message]
2008-10-30 19:48 ` shell-mode command completion with slashes Stephen Berman
[not found] ` <mailman.2518.1225396148.25473.help-gnu-emacs@gnu.org>
2008-10-31 1:56 ` Barry Margolin
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=barmar-4158BE.12572230102008@mara100-84.onlink.net \
--to=barmar@alum.mit.edu \
--cc=help-gnu-emacs@gnu.org \
/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.
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).