[m-users.] Emacs gud.el has old emacs string-to-int reference

"Sean Charles (emacstheviking)" <[email protected]>
Newsgroups gmane.comp.lang.mercury.general
Message-ID <[email protected]>
Hi,

Having managed to build a debuggable version of my code, I then had to change all uses of the function `string-to-int` in gud.el to 'string-to-number' as string-to-int has been an obsolete function since Emacs 22.1, and it was removed in 26.1.

Ii then restarted emacs, executed the M-x mdb command and then issued 'continue' and I am delighted to say that the breakpoint hit, emacs split into two frames and my source code was presented as expected. It's the same format as the geben debugger I used to use for xdebug with PHP. I guess it's a common interface that emacs presents, I've no idea, despite being a 25+ years and counting emacs user!

curtok(Caller, Line,  C) = Token :-
    ( if list.index0(tokens(C), ind(C), T) then
=>      Token = yes(T),

        trace[io(!Dbg), runtime(env("FELT_AST"))]
        (atrace(2, "curtok: %s(%i) %s",
            [s(between(Caller,15,999)), i(Line), s(string(T))],
            !Dbg))
    else
        Token = no,


You live and learn, thanks again for the corrective nudge Zoltan.
Excellent!

Sean.

_______________________________________________
users mailing list
[email protected]
https://lists.mercurylang.org/listinfo/users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.