* tab completion for mode derived from comint-mode
@ 2007-09-28 11:20 Martin Rubey
2007-09-29 16:38 ` Martin Rubey
0 siblings, 1 reply; 2+ messages in thread
From: Martin Rubey @ 2007-09-28 11:20 UTC (permalink / raw)
To: help-gnu-emacs
Dear Gurus,
I wanted to add simple filename completion to my axiom-mode today (axiom is a
free computer algebra system, in case you care).
So I said
(define-key axiom-mode-map [tab] 'comint-dynamic-complete-filename)
After that, hitting tab after an initial letter produced a list of possible
completions in another buffer. Great!
BUT: hitting tab again advanced the cursor, inserting a tab, which I really do
not want.
I'd like to have behaviour as in shell mode, where hitting tab again does
nothing or, which I would like better actually, pages through the list of
completions.
While we are at it, I'd really want to have emacs list files with suffix
.input, .spad, .as
only, but I hope that should be easily customisable. (I want to have this
behaviour only in axiom-mode, of course.)
Many thanks,
Martin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: tab completion for mode derived from comint-mode
2007-09-28 11:20 tab completion for mode derived from comint-mode Martin Rubey
@ 2007-09-29 16:38 ` Martin Rubey
0 siblings, 0 replies; 2+ messages in thread
From: Martin Rubey @ 2007-09-29 16:38 UTC (permalink / raw)
To: help-gnu-emacs
Martin Rubey <axiomize@yahoo.de> writes:
> Dear Gurus,
>
> I wanted to add simple filename completion to my axiom-mode today (axiom is a
> free computer algebra system, in case you care).
>
> So I said
>
> (define-key axiom-mode-map [tab] 'comint-dynamic-complete-filename)
>
> After that, hitting tab after an initial letter produced a list of possible
> completions in another buffer. Great!
>
> BUT: hitting tab again advanced the cursor, inserting a tab, which I really do
> not want.
OK, found out about that one. I should have said
(define-key axiom-mode-map "\t" 'comint-dynamic-complete-filename)
instead. I have no idea why, though.
> While we are at it, I'd really want to have emacs list files with suffix
>
> .input, .spad, .as
>
> only, but I hope that should be easily customisable. (I want to have this
> behaviour only in axiom-mode, of course.)
Seems to be more difficult than I thought. comint-completion-fignore promises
sort of the opposite from what I need. In fact, I'd be even happier if the
unwanted completions wouldn't even appear in the list.
Again, many thanks,
Martin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-09-29 16:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-28 11:20 tab completion for mode derived from comint-mode Martin Rubey
2007-09-29 16:38 ` Martin Rubey
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.