all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Martin Rubey <axiomize@yahoo.de>
To: help-gnu-emacs@gnu.org
Subject: tab completion for mode derived from comint-mode
Date: 28 Sep 2007 13:20:22 +0200	[thread overview]
Message-ID: <9qhclfqbnt.fsf@aquin.mat.univie.ac.at> (raw)

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

             reply	other threads:[~2007-09-28 11:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-28 11:20 Martin Rubey [this message]
2007-09-29 16:38 ` tab completion for mode derived from comint-mode Martin Rubey

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9qhclfqbnt.fsf@aquin.mat.univie.ac.at \
    --to=axiomize@yahoo.de \
    --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.
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.