all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Can shell-mode be a little more smart ? (About completion)
@ 2008-10-19 11:25 Lave
  2008-10-19 17:14 ` Nikolaj Schumacher
  2008-10-20  8:07 ` Paul R
  0 siblings, 2 replies; 6+ messages in thread
From: Lave @ 2008-10-19 11:25 UTC (permalink / raw)
  To: help-gnu-emacs

Hi, all.

In a terminal, like urxvt. A cd command can differantiate dictionary and file.

For example, a dictionary ~/kernel lists like this:

[~/kernel] ls
linux-2.6/
linux-image-2.6.27-rc9_2.6.27-rc9-10.00.Custom_amd64.deb
linux-image-2.6.27_2.6.27-10.00.Custom_amd64.deb
linux-image-2.6.27-rc7_2.6.27-rc7-10.00.Custom_amd64.deb

When I input cd and [tab] in urxvt, the linux-2.6 was completed. But
in shell-mode it's not, and stop at "linux-", waiting for input.

Another instance:

In shell-mode, the commands, like install, in "apt-get <command>", are
not completed too.

Shall we make shell-mode more smart, and abandon the terminal away?

Lave




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can shell-mode be a little more smart ? (About completion)
  2008-10-19 11:25 Can shell-mode be a little more smart ? (About completion) Lave
@ 2008-10-19 17:14 ` Nikolaj Schumacher
  2008-10-20 11:49   ` Lave
  2008-10-20  8:07 ` Paul R
  1 sibling, 1 reply; 6+ messages in thread
From: Nikolaj Schumacher @ 2008-10-19 17:14 UTC (permalink / raw)
  To: Lave; +Cc: help-gnu-emacs

Lave <lave.wang.w@gmail.com> wrote:

> In a terminal, like urxvt. A cd command can differantiate dictionary
> and file.

That's not a feature of the terminal, it's a feature of the shell.

I use bash and bash_completion, and it fine works in shell-mode.  What
are you using?


regards,
Nikolaj Schumacher




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can shell-mode be a little more smart ? (About completion)
  2008-10-19 11:25 Can shell-mode be a little more smart ? (About completion) Lave
  2008-10-19 17:14 ` Nikolaj Schumacher
@ 2008-10-20  8:07 ` Paul R
  2008-10-20 11:45   ` Lave
       [not found]   ` <mailman.1574.1224503144.25473.help-gnu-emacs@gnu.org>
  1 sibling, 2 replies; 6+ messages in thread
From: Paul R @ 2008-10-20  8:07 UTC (permalink / raw)
  To: Lave; +Cc: help-gnu-emacs

On Sun, 19 Oct 2008 19:25:18 +0800, Lave <lave.wang.w@gmail.com> said:

Lave> Hi, all. In a terminal, like urxvt. A cd command can
Lave> differantiate dictionary and file.

This has nothing to do with the terminal emulator you use.

Lave> Shall we make shell-mode more smart, and abandon the terminal
Lave> away?

Make shell-mode use your usuall bash (or whatever shell you use)
settings and that's it.

-- 
  Paul




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can shell-mode be a little more smart ? (About completion)
  2008-10-20  8:07 ` Paul R
@ 2008-10-20 11:45   ` Lave
       [not found]   ` <mailman.1574.1224503144.25473.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 6+ messages in thread
From: Lave @ 2008-10-20 11:45 UTC (permalink / raw)
  To: Paul R; +Cc: help-gnu-emacs

Yes. Shell-mode really uses my usual bash /bin/bash.

Now I know completion has nothing to do with terminal.

But I found something with google. It's said because shell-mode handle
completion itself, and it's not so smart as bash completion. Is that
real? Then why the creator didn't just use bash completion?

Does your 'apt-get install's completion work well?

-- 

Lave




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can shell-mode be a little more smart ? (About completion)
  2008-10-19 17:14 ` Nikolaj Schumacher
@ 2008-10-20 11:49   ` Lave
  0 siblings, 0 replies; 6+ messages in thread
From: Lave @ 2008-10-20 11:49 UTC (permalink / raw)
  To: Nikolaj Schumacher; +Cc: help-gnu-emacs

On 10/20/08, Nikolaj Schumacher <me@nschum.de> wrote:
> Lave <lave.wang.w@gmail.com> wrote:
>
>> In a terminal, like urxvt. A cd command can differantiate dictionary
>> and file.
>
> That's not a feature of the terminal, it's a feature of the shell.
>
> I use bash and bash_completion, and it fine works in shell-mode.  What
> are you using?

Can you give me a copy of you config, then ? Thanks a lot.

>
>
> regards,
> Nikolaj Schumacher
>


-- 

Lave




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Can shell-mode be a little more smart ? (About completion)
       [not found]   ` <mailman.1574.1224503144.25473.help-gnu-emacs@gnu.org>
@ 2008-10-21  6:07     ` Miles Bader
  0 siblings, 0 replies; 6+ messages in thread
From: Miles Bader @ 2008-10-21  6:07 UTC (permalink / raw)
  To: help-gnu-emacs

Lave <lave.wang.w@gmail.com> writes:
> Then why the creator didn't just use bash completion?

It's quite difficult to do that, mainly because there is no high-level
communication channel emacs can use to talk to the shell.

It's easy to leave _all_ of the editing/completion to the shell (e.g.
term-mode), or _none_ of it (e.g., shell-mode), but it would be very
hard to do it half-way.

-Miles

-- 
Alliance, n. In international politics, the union of two thieves who have
their hands so deeply inserted in each other's pockets that they cannot
separately plunder a third.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-10-21  6:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-19 11:25 Can shell-mode be a little more smart ? (About completion) Lave
2008-10-19 17:14 ` Nikolaj Schumacher
2008-10-20 11:49   ` Lave
2008-10-20  8:07 ` Paul R
2008-10-20 11:45   ` Lave
     [not found]   ` <mailman.1574.1224503144.25473.help-gnu-emacs@gnu.org>
2008-10-21  6:07     ` Miles Bader

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.