GAP in emacs and xemacs

This html describes how to run GAP in emacs or xemacs. It first assumes that the user is running GAP on a linux/unix machine. The second part considers the windows case.

The gap mode file was written by Goetz Pfeiffer and Michael Smith. This webpage was written with help from Gary Zablackis, Nikos Apostolakis, Ric Crabbe, and Steve Linton.

Note that under emacs/xemacs you may lose the tab-completion (but see below for Nikos' fix for this) and the nice history features of GAP's built-in shell. However, as a small consolation, you can edit out any syntax mistakes in your session as you go and emacs has it's own search function, which serves as a replacement for GAP's history feature.

Gary Zablackis points out that the gap-help-filter code, given in the windows part below, is probably relevant to all users of Emacs with GAP 4.4.x (and possibly earlier), as the GAP output changed from "[space] more" to "[space] page, ..." at some point, and the *Help* buffer seems to be read-only without the addition I made.


wdj@usna.edu

Last updated 2009-6-19.

This page is at the url: http://www.usna.edu/Users/math/wdj/gap/gap_emacs.html