[m-users.] Outdated elisp function "string-to-int" in lib/mercury/elisp/gud.el in the ROTD distribution

Volker Wysk post at volker-wysk.de
Fri Oct 16 02:52:39 AEDT 2026


Hi.

I'm wondering why I don't get any reply. It works for me, I don't need help.
I work around the problem by adding this to my ~/.emacs.d/init.el:

(unless (fboundp 'string-to-int)
  (defalias 'string-to-int 'string-to-number))

"string-to-int" isn't mentioned any longer in the Elisp documentation for
Emacs 30.2 (the version in Ubuntu 26.04). "string-to-number" is.

Cheers,
Volker


Am Samstag, dem 10.10.2026 um 15:57 +0200 schrieb Volker Wysk:
> Hi
> 
> My MMC version is rotd-2026-08-06.
> 
> I'm setting up the Emacs support for the Mercury debugger. The file gud.el
> makes use of the outdated elisp function "string-to-int". This used to be
> a
> synonym for "string-to-number", but in my emacs distribution it is no
> longer
> included.
> 
> Please replace "string-to-int" with "string-to-number" in gud.el.
> 
> Cheers, 
> Volker
> _______________________________________________
> users mailing list
> users at lists.mercurylang.org
> https://lists.mercurylang.org/listinfo/users


More information about the users mailing list