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

Sean Charles (emacstheviking) objitsu at gmail.com
Wed Dec 14 06:58:17 AEDT 2022


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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/users/attachments/20221213/a45eadd6/attachment.html>


More information about the users mailing list