From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Martin Rubey Newsgroups: gmane.emacs.help Subject: Re: tab completion for mode derived from comint-mode Date: 29 Sep 2007 18:38:50 +0200 Message-ID: <9q3awxzasl.fsf@aquin.mat.univie.ac.at> References: <9qhclfqbnt.fsf@aquin.mat.univie.ac.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1191084042 11044 80.91.229.12 (29 Sep 2007 16:40:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Sep 2007 16:40:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 29 18:40:37 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IbfMm-0001Hw-Jv for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Sep 2007 18:40:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbfMi-000741-U8 for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Sep 2007 12:40:28 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newsfeed.freenet.de!news.n-ix.net!noris.net!storethat.news.telefonica.de!telefonica.de!news-fra1.dfn.de!newscore.univie.ac.at!aconews-feed.univie.ac.at!aconews.univie.ac.at!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 Original-Lines: 37 Original-NNTP-Posting-Host: aquin.mat.univie.ac.at Original-X-Trace: 1191083930 usenet.univie.ac.at 11610 131.130.16.163 Original-X-Complaints-To: abuse@univie.ac.at Original-Xref: shelby.stanford.edu gnu.emacs.help:152470 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47979 Archived-At: Martin Rubey 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