[comp.emacs] Some weird emacs questions.

jkh@violet.berkeley.edu (Jordan K. Hubbard) (08/24/87)

Ok, I'm gonna get a lot of comments from people saying: "Why do it
*that* way? You could just..."

I'd like to hear from those people too, but not on hackers_guild. Send
the replies to me.. Hackers_guild has a fair SNR these days, let's not
screw it up..

Question: I have some evil looking code (it's some of MIT's X code, if you
must know) that is almost unreadable by my standards. I don't like CB's
standards either.. However, with a few custom variable settings, GNU
emacs's Electric-C mode formats things reasonably well. If I traipse
through the code hitting tabs and otherwise making emacs look at the
lines, it does a good job. BUT I DON'T WANNA HAVE TO DO THIS FOR THE
ENTIRE FILE!! Is there some way I can say:

"Hey! Emacs! Start up! Zzzzzzzzz.. (ok, we'll skip that part and pretend
it's executing). Ok, I want you to read this file in.. zzz.. good. 
Now use your C-Mode rules and REFORMAT THAT BABY! Yeah! Party!"

Eh? Is there any way? I sure wish there was a manual describing all the
nandy-dandy lisp functions and hooks written to do buffer/window/etc
manipulation. I could write a lisp loop that just "dirtied"
each line somehow...  Anyway, what do I do? Can this code be saved?


					Jordan Hubbard
					jkh@violet.berkeley.edu