[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Command recall in Emacs

From: Nick Gasson
Subject: [Help-smalltalk] Command recall in Emacs
Date: Sat, 7 Jul 2007 16:54:54 +0100

Whenever I use the M-P command recall inside a GST buffer in GNU Emacs 22 (on OS X) the previous command is pasted in front of the prompt. Also, comint-bol doesn't move the cursor over the prompt either. Hunting around a bit it seems that comint-use-prompt-regexp needs to be non-nil for comint-prompt-regexp to take effect.

I don't think this problem affects earlier versions of GNU Emacs (it may even just be OS X specific).

A tiny patch to gst-mode.el to fix things:

*** gst-mode.el Sat Jul  7 15:41:57 2007
--- gst-mode.el.mine    Sat Jul  7 15:44:47 2007
*** 191,196 ****
--- 191,197 ----
    (require 'comint)
    (setq comint-prompt-regexp smalltalk-prompt-pattern)
+   (setq comint-use-prompt-regexp t)
    (use-local-map gst-mode-map)
    (make-local-variable 'mode-status)
    (make-local-variable 'smalltalk-command-string)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]