[Python-mode] confusion about py-string-to-syntax def

Andreas Röhler andreas.roehler at online.de
Thu Jan 13 22:09:52 CET 2011


Am 13.01.2011 21:05, schrieb skip at pobox.com:
> I'm trying to get the latest python-mode.el to compile cleanly.  I have this
> definition:
>
>      ;; Skip's XE workaround
>      (if (fboundp 'string-to-syntax)
>          (defalias 'py-string-to-syntax string-to-syntax)
>        (defun py-string-to-syntax (s)
>          (cond
>           ((equal s "|") '(15))
>           ((equal s "_") '(3))
>           (t (error "Unhandled string: %s" s))))
>        )
>

Thanks,

though my taste is still the other way around:

as soon as XEmacs merges up to GNU code, would should drop our stuff, 
considered a possible a bug-source than.

With the use of a aliased function I'm afraid, we have the complexity 
and bug source just now.

I'll be patient and look, should someone want to write that in.
Just rather not me :-)

Let's go on

Andreas



More information about the Python-mode mailing list