Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!sri-unix!rutgers!labrea!aurora!ames!sdcsvax!ucbvax!jade!violet.berkeley.edu!jkh From: jkh@violet.berkeley.edu (Jordan K. Hubbard) Newsgroups: comp.emacs Subject: Some weird emacs questions. Message-ID: <4867@jade.BERKELEY.EDU> Date: Mon, 24-Aug-87 04:37:25 EDT Article-I.D.: jade.4867 Posted: Mon Aug 24 04:37:25 1987 Date-Received: Tue, 25-Aug-87 01:41:28 EDT Sender: usenet@jade.BERKELEY.EDU Reply-To: jkh@violet.berkeley.edu (Jordan K. Hubbard) Organization: University of California, Berkeley Lines: 27 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