Commits

Ivan Andrus  committed cec00ae

Fixed problem with exiting help parsing prematurely

  • Participants
  • Parent commits 4819718

Comments (0)

Files changed (1)

File gap-process.el

   :group 'gap
   :type '(repeat string))
 
-(defcustom gap-prompt-regexp "\\(.*\\(gap\\|brk[_0-9]*\\)>\\|^>\\) *"
+(defcustom gap-prompt-regexp "\\(\\(gap\\|brk[_0-9]*\\)>\\|^>\\) *"
   "Regexp used by Newline command in GAP mode to match prompt."
   :group 'gap
   :type 'regexp)
           (insert (string-strip-chars string " \C-h\C-g\C-m"))))))
     (set-buffer cbuf)))
 
-;; TODO: problem with Combinations
 (defun gap-help-filter (proc string)
   "Filter the output a help command into a *Help* buffer.
 It must handle the continuation prompts by stripping them and
       (comint-send-string proc " "))                           ;;NOTE: tell GAP to continue with next page
 
                                         ;(if (looking-at gap-prompt-regexp)                             ;;GEZ: original
-    (when (looking-at (concat gap-prompt-regexp "$"))                ;;GEZ: make sure get the end of it all
+    (when (looking-at (concat "^" gap-prompt-regexp "$"))                ;;GEZ: make sure get the end of it all
       (delete-region (point) (point-max))
       (gap-cleanup-help-buffer)
       (goto-char (point-min))