Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Can your editor do this?

by AgentM (Curate)
on Apr 11, 2001 at 20:37 UTC ( #71733=note: print w/replies, xml ) Need Help??

in reply to Can your editor do this?

Emacs comes with elisp scripts to do just that as well as similar things. You can arbitrarily collapse function bodies using a simple command sequence. Additionally, if you know elisp (I won't pretend that I do), you can really do anything. For example, if you decided that you wanted to collapse every third recursion of braces, it's a very short elisp script. In your case, I would throw some boundary separators around the block you want to hide. In fact, braces would be fine for this. Additionally, if you find yourself using common code among several programs that you decide that you are not interested in, separate it into a separate library. Even within your program, you should separate your operations into functions for clarity. Except for me, most programmers I know like to have main functions no longer than twenty lines. That should help you clean up.
AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://71733]
[LanX]: ;-P
[LanX]: What I learned now is to hide my friends list at FB (not that I have many ...)
[Your Mother]: Careful. They're listening!
[LanX]: I mean hiding my friends FROM my friends
[Your Mother]: Yeah. I don't know what they expect. If a stranger can see the post or list or whatever, so can a harvesting program.
[Your Mother]: HA.
[NodeReaper]: he's already hiding from me :(
[Corion]: Your Mother: Even I don't remember what "related and neat" I could have that would fit to 1211240 :) Maybe "pjax", which turns a static site into a Javascript-partial -reloading site? That's purely Javascript though
[LanX]: true I might get visa problems when they hear about my love for massacres ...
[Your Mother]: Corion, it was something similar to Cometd/Websockets.

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2018-03-19 13:31 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (240 votes). Check out past polls.