Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion tab completion in shell-mode (Re: M-x shell command line location + buffer clear)

From: nob...@REPLAY.COM (Anonymous)
Subject: Re: tab completion in shell-mode (Re: M-x shell command line location + buffer clear)
Date: 1998/04/28
Message-ID: <6i370f$ge2@basement.replay.com>#1/1
X-Deja-AN: 348251189
Content-Transfer-Encoding: 7bit
X-001: Replay may or may not approve of the content of this posting
X-002: Report misuse of this automated service to <ab...@replay.com>
X-URL: http://www.replay.com/remailer/
X-XS4ALL-Date: Tue, 28 Apr 1998 02:14:08 CEST
Content-Type: text/plain; charset=us-ascii
Organization: Replay Associates, L.L.P.
Newsgroups: comp.emacs



Navindra Umanee <navin...@cs.mcgill.ca> writes:

> Kai Grossjohann <grossjoh...@ls6.cs.uni-dortmund.de> wrote:
> > 
> > Well, Si's shellc.el (custom shell) implements a extensions to a
> > subset of the tcsh completion, I think, so this may be something
> > worth looking at, as well.
> > 
> 
> Sounds very interesting indeed.  I tried to get it working in XEmacs
> by commenting out (require 'mailalias) and adding:


shell{db,c}.el works fine in XEmacs, aside from some implicit
limitations (see dejanews).  The easiest thing to do is to excise the
define-key-after's or fset them to ignore.



> (defmacro define-key-after (keymap key definition after)
>   (list 'define-key keymap key definition))
> 
> {Does anyone know why XEmacs doesn't have define-key-after?  I tried
>  adding the Emacs definition of define-key-after but that didn't seem
>  to work either.}


Did you notice Simon Marshall's comment before you started hacking?
Your macro adds mouse/menu items to an XEmacs keymap directly, but
XEmacs uses a different input model.

Port it to easymenu or an equivalent if you want those menus.

From shellc.el:

 ;;; Add to the menu-bar.
 (let ((completion-map (lookup-key shell-mode-map [menu-bar completion])))
   (define-key-after completion-map [complete-shell-variable]
     '("Complete Shell Variable Name" . shellc-dynamic-complete-shell-variable)
     'complete-env-variable)