There is some support for gud in matlab-mode too, but
`C-x SPC' which runs `gud-break' caused following error
Signaling: (wrong-type-argument sequencep 83)
gud-format-command("dbstop at %l in %f" 1)
gud-call("dbstop at %l in %f" 1)
gud-break(1)
call-interactively(gud-break)
Following patch fixes this, but I just wonder why no one else has
noticed this? concat accepts integer arguments in Emacs but not in
XEmacs. I don't remember when this was changed in XEmacs, but
apparently after that change, no one has used gud.el in XEmacs
(until now).
Btw. gud.el in XEmacs is dated 1993 and gud.el in emacs-20.3 is
dated 1998. Unfortunately gud.el in emacs-20.3 does not work in
XEmacs and I don't know much work it would need to make it work and
I haven't yet asked maintainer of gud.el (Eric S. Raymond) if he
would be interested to help making gud.el XEmacs compatible.
--- lisp/debug/gud.el.orig Mon Jan 26 06:40:48 1998
+++ lisp/debug/gud.el Wed Dec 9 14:11:16 1998
@@ -2953,7 +2953,8 @@
(save-excursion
(beginning-of-line)
(save-restriction (widen)
- (1+ (count-lines 1 (point)))))
+ (int-to-string
+ (1+ (count-lines 1 (point))))))
(cdr gud-last-frame))
(substring str (match-beginning 2) (match-end 2)))))
(if (string-match "\\(.*\\)%e\\(.*\\)" str)