| Anonymous | Login | Signup for a new account | 2013-05-23 04:24 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||
| 0005136 | OCaml | OCaml general | public | 2010-08-28 21:22 | 2010-08-30 17:16 | |||
| Reporter | Christophe Troestler | |||||||
| Assigned To | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | |||
| Status | closed | Resolution | fixed | |||||
| Platform | OS | OS Version | ||||||
| Product Version | 3.13.0+dev | |||||||
| Target Version | Fixed in Version | 3.12.1+dev | ||||||
| Summary | 0005136: caml-mode: string-to-int is obsolete since emacs 22.1 | |||||||
| Description | When compiling caml-types, I have the message ... `string-to-int' is an obsolete function (as of Emacs 22.1); use `string-to-number' instead. The attached patch fixes that. | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Notes |
|
|
(0005644) doligez (manager) 2010-08-30 12:18 |
This is more-or-less fixed in 3.12.1+dev. The question is how to remain compatible with older versions of emacs. Currently we define caml-string-to-int to be string-to-number (if available) or string-to-int, but I don't know how to do that without triggering a warning. |
|
(0005645) Christophe Troestler (reporter) 2010-08-30 14:17 |
How about this (if (fboundp 'string-to-number) (defalias 'caml-string-to-int 'string-to-number) (defalias 'caml-string-to-int 'string-to-int)) (I am not an elisp expert either!) |
|
(0005646) doligez (manager) 2010-08-30 17:16 |
That seems to do the trick, thanks. I've committed it to 3.12.1+dev. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2010-08-28 21:22 | Christophe Troestler | New Issue | |
| 2010-08-28 21:22 | Christophe Troestler | File Added: caml-types.patch | |
| 2010-08-30 12:18 | doligez | Note Added: 0005644 | |
| 2010-08-30 12:18 | doligez | Status | new => feedback |
| 2010-08-30 12:18 | doligez | Resolution | open => fixed |
| 2010-08-30 12:18 | doligez | Fixed in Version | => 3.12.1+dev |
| 2010-08-30 14:17 | Christophe Troestler | Note Added: 0005645 | |
| 2010-08-30 17:16 | doligez | Note Added: 0005646 | |
| 2010-08-30 17:16 | doligez | Status | feedback => closed |
| Copyright © 2000 - 2011 MantisBT Group |