Ivan Andrus avatar Ivan Andrus committed cec00ae

Fixed problem with exiting help parsing prematurely

Comments (0)

Files changed (1)

   :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))
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.