Re: string-to-syntax for XEmacs 21.4? (fwd)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: string-to-syntax for XEmacs 21.4? (fwd)

Skip Montanaro-3

Passing this along from Stephen Turnbull on the XEmacs list...

Skip


[hidden email] writes:

 >     string-to-syntax is a built-in function in `C source code'.
 >     (string-to-syntax STRING)
 >
 >     Convert a syntax specification STRING into syntax cell form.

I have no idea what a "syntax cell" is, but based on your examples it
would seem

(defun string-to-syntax (s)
  (list (syntax-string-to-code s)))

will do.

_______________________________________________
Python-mode mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/python-mode