[comp.emacs] set-syntax problem

eliot@phoenix.Princeton.EDU (Eliot Handelman) (03/14/89)

Ok, I give up. This is the problem (in GNU 18.52):

a-long-lisp-name-with-lots-of-hyphens another-hyphenated-name

So how do I transpose these two variables? If I use M-x transpose-word,
or M-x transpose-sexp, I wind up with:

a-long-lisp-name-with-lots-of-another hyphens-hyphenated-name

My theory is that the syntax table doesn't think of "-" as a word, so
I tried M-x modify-syntax-entry RET - RET "w" and I also tried "w ", but
it has no effect. I do this while in the lisp buffer, so it should work.
It doesn't. How to do it? That's the question.

-Eliot
-- 
>`Take that, Eliot!' -- 20th century composer on a waltz in D major
                                               -- Noam Elkies