
www.Usenet.com
| <-- __Chronological__ --> | <-- __Thread__ --> |
[EMAIL PROTECTED] (Karl Pflästerer) writes: > On 27 Nov 2003, Thomas Heller <- [EMAIL PROTECTED] wrote: > >> Looks very useful, and nearly works if I insert (require 'font) >> above. But thing-word needs an argument, and I'm not able to figure out >> which one. > > If you change Stephen's code a bit it will work: > > (defun h2datpt () > "C syntax like `0xDEADBEEF' works magically." > (interactive) > (ffap-string-at-point) > (delete-region (car ffap-string-at-point-region) > (cadr ffap-string-at-point-region)) > (insert (number-to-string > (font-hex-string-to-number ffap-string-at-point)))) > This comes pretty close - the only problem seems to be that xemacs' integers are limited to less than 32 bits ;-(. Thanks, Thomas
| <-- __Chronological__ --> | <-- __Thread__ --> |