Slashdot Mirror


GNU Coughs Up Emacs 22 After Six Year Wait

lisah writes "After keeping users waiting for nearly six years, Emacs 22 has been released and includes a bunch of updates and some new modes as well. In addition to support for GTK+ and a graphical interface to the GNU Debugger, 'this release includes build support for Linux on AMD64, S/390, and Tensilica Xtensa machines, FreeBSD/Alpha, Cygwin, Mac OS X, and Mac OS 9 with Carbon support. The Leim package is now part of GNU Emacs, so users will be able to get input support for Chinese, Tibetan, Vietnamese, Thai, Korean, and other languages without downloading a separate package. New translations of the Emacs tutorial are also available in Brasilian Portuguese, Bulgarian, simplified and traditional Chinese, Italian, French, and Russian.'"

93 of 500 comments (clear)

  1. Nobody Cares. by Anonymous Coward · · Score: 5, Funny

    Nobody cares. We're all using VI now.

    1. Re:Nobody Cares. by __aaclcg7560 · · Score: 5, Insightful

      My programming instructor said he had an evil boss at a government job who made him use Emacs. Horrors! I think Emacs exist to scare the new generation into using VI.

    2. Re:Nobody Cares. by buswolley · · Score: 2, Insightful

      Perhaps this should be tagged: flamewar!

      --

      A Good Troll is better than a Bad Human.

    3. Re:Nobody Cares. by bckrispi · · Score: 4, Insightful

      Emacs vs. vi?? They both suck!!

      --
      Xenon, where's my money? -Borno
    4. Re:Nobody Cares. by joe_bruin · · Score: 3, Funny

      Great, where can I download a boot disk?

    5. Re:Nobody Cares. by smittyoneeach · · Score: 5, Insightful

      My son, the Esteemed Mother Among Computer Software smiles at you.
      May the icon factories currently stuffing lesser programming tools with meaningless little objects of idolatry never pollute your conscious with bric-a-brac.
      May you never touch an editor that is less than extensible, customizable, self-documenting, and resplendent, whether dressed in an X session or a humble terminal.
      And may e vi l never your doorway darken, though emacs has a mode to help your recovery therefrom.

      --
      Get thee glass eyes, and, like a scurvy politician, seem to see things thou dost not.--King Lear
    6. Re:Nobody Cares. by dkf · · Score: 2, Interesting

      Emacs vs. vi?? They both suck!!
      And what would you suggest instead? NEdit seems to be distinctly sub-emacs in features (though with different bindings) and Eclipse is massive (though good for a few things: notably Java and XSD/WSDL, all of which are impossibly officious without a fancy editor to help you out). Everyone knows that notepad is a terrible editor for real use, and ed is only for the real hard-core. (OK, I admit I like ed. But I wouldn't want to write code in it if at all possible, not these days.) If I've not mentioned what you think we should be using instead of vi or emacs, be prepared to say.
      --
      "Little does he know, but there is no 'I' in 'Idiot'!"
    7. Re:Nobody Cares. by ebh · · Score: 2, Insightful
      Ed? Ed??

      Wimp.

      $ export EDITOR=cat

    8. Re:Nobody Cares. by Em+Adespoton · · Score: 2, Insightful

      I'd suggest using vi/vim instead of pico/nano for sysadmin editing... pico and nano hard-wrap your text, which can really mess up config files. Of course, you COULD use EMACS, but then hey... you could use ed too....

  2. Anti-aliased / subpixel rendered fonts on linux by Anonymous Coward · · Score: 3, Informative

    Use the unicode2 branch from emacs CVS, not this release. Hopefully emacs 23 won't take as long as emacs 22. 8-(

    1. Re:Anti-aliased / subpixel rendered fonts on linux by HeroreV · · Score: 2, Interesting

      The release builds of GNU Emacs don't support anti-aliased text?

      I've never understood why Emacs (or Vi/Vim) got so much praise. Sometimes I think maybe I'm crazy and all the zealots are the ones who have it right, but this makes me feel pretty certain that I'm the one who hasn't lost it.

      A text editor has got to be extremely shitty to not support anti-aliased text. That is absolutely completely insane. The more I learn about Emacs/Vi(m), the worse they sound.

    2. Re:Anti-aliased / subpixel rendered fonts on linux by be-fan · · Score: 3, Insightful

      Emacs is a programmers editor. Most programmers don't like to stare at anti-aliased code. That said, I'm firmly in the anti-aliased camp, which is fine for me because the various Mac builds support anti-aliasing (I believe the Windows ports do as well).

      Emacs is a really powerful tool once you get the hang of it. It has absolutely unparalleled support for chopping/dicing/splicing and otherwise throwing text around really fast without ever taking your hands of the keyboard. And Emacs has language-aware modes for a whole bunch of different languages.

      I used to use vi when I was on linux, and it was an excellent tool. When I first got my Macs, I used TextMate, which was all the rage among Mac users. Somebody turned me on to Emacs not too long ago, and I haven't looked back. It's just very well-designed for working on large amounts of code, and scales way better than TextMate ever did (tabs become useless when you're working on dozens of files!).

      That said, the learning curve for Emacs is *steep*. It's definitely a "hands off the mouse" kind of system. It took me a month and 2000 lines of code before I was really comfortable with it, and I still haven't tapped a fraction of its full power!

      --
      A deep unwavering belief is a sure sign you're missing something...
    3. Re:Anti-aliased / subpixel rendered fonts on linux by GNUALMAFUERTE · · Score: 2, Insightful

      Actually, REAL coders don't use Emacs under X. You run the console version, which is the real Emacs. Maybe Emacs inside an x-term, but not the shitty X version. alias emacs='emacs -nw'. There. Fixed.

      --
      WTF am I doing replying to an AC at 5 A.M on a Friday night?
    4. Re:Anti-aliased / subpixel rendered fonts on linux by Abcd1234 · · Score: 2, Informative

      IMHO, emacs + GNU screen (well, these days, emacs + vim... alas, all the chording with emacs gave me mild RSI) is *the* way to go. Hack away at some code, detach session, reattach when you're on the road or at home, etc, etc. It's especially fantastic if you find yourself dev'ing on remote machines frequently (in my case, Solaris boxes, primarily)... makes it easy to spawn new shells and switch between without having to fire up an additional xterm+ssh.

  3. Don't forget by SnowZero · · Score: 4, Insightful

    Release early, release often. Don't end up like Emacs.

    1. Re:Don't forget by marcosdumay · · Score: 4, Funny

      Yep... And Debian has just released another stable, just a bit more than a year after the last one... And the new emacs is released... What is up with all those things?!?!?! Will we have perl6 and hurd released now?!?!?!

      The world is a crazy place.

    2. Re:Don't forget by Svartormr · · Score: 2, Funny

      ...can Duke Nukem Forever be far behind...?

  4. Coughs up? by Anonymous Coward · · Score: 2, Funny

    Well, that certainly explains things...

  5. Feature Rich by king-manic · · Score: 4, Funny

    Did they finally add the "write my code for me" command? It seems to be one of the few things emacs hasn't implemented. I suppose a "materialize a 5'4 asian Girl Friend" command would be useful too. I think we should push for that in the next revision.

    --
    "There are more things in heaven and earth, Horatio, than are dreamt of in your philosophy."
    1. Re:Feature Rich by Mattintosh · · Score: 4, Funny

      I suppose a "materialize a 5'4 asian Girl Friend" command would be useful too. I think we should push for that in the next revision.

      Once that's implemented, the whole vi vs. Emacs thing is over.

      Hot asian girlfriend FTW!

    2. Re:Feature Rich by larry+bagina · · Score: 5, Funny

      the hot asian girlfriend writes your code, silly.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    3. Re:Feature Rich by chris_mahan · · Score: 2, Insightful

      Be careful, my 5'4 Asian Girlfriend became my 5'4 asian wife (japanese) and now I have the half-asian 2year old kid that, maybe, someday, after much training, will write code for me.

      3. Profit!

      --

      "Piter, too, is dead."

    4. Re:Feature Rich by BobNET · · Score: 2, Funny

      I believe the intent is that the Hot Asian Girlfriend will write the code for the EMACS user. Unfortunately for said EMACS user, she uses Vi...

    5. Re:Feature Rich by Pharmboy · · Score: 3, Funny

      So we could be talking about a chunky girl with mosquito bites, and a mouth full of crooked teeth, a strict no-sex-before-marriage policy, and a really foul attitude...

      But she would be open source, so you could change those features.

      --
      Tequila: It's not just for breakfast anymore!
    6. Re:Feature Rich by king-manic · · Score: 4, Funny

      Wait a minute, the specs didn't call for her to be hot... It just said 5'4" and Asian...

      So we could be talking about a chunky girl with mosquito bites, and a mouth full of crooked teeth, a strict no-sex-before-marriage policy, and a really foul attitude... Like the kind that would be all screaming at you in Cantonese every night, unless you cater to her every whim, as uttered in broken, thickly-accented English - and then if you give her the boot she sneaks back into your place and steals or destroys all your stuff...

      See? SEE? Now do you understand why it's important to clearly and thoroughly define the requirements of your software before coding begins?


      I prefer my personal impelmentation of "5'4 Asian Girl Friend v10.0". It's a great improvement over "5'3 blonde German Girl friend v9.5" who was actually an upgrade on "5'5 filipina stripper Girl Friend v6.9". I still fondly remember the one I started with "5'1 half filipina half chinese Girl friend v.5.0" however that implementation was not as asthetically pleaseing as the other three and came with "waiting for marriage" DRM but was more stable then two of the other three.

      The current one ("5'4 Asian Girl Friend v10.0") is both stable, DRM free, include the "hot" feature and "sane" feature which some of the previous versions lacked. I was thinking of trying make the "threesome" feature but I might be pushing my luck :D

      --
      "There are more things in heaven and earth, Horatio, than are dreamt of in your philosophy."
  6. But does it run on linux? by Tumbarumba · · Score: 2, Funny

    Or even better, does it run linux?

    --
    My business: Farstrider Studios.
  7. Re:NEW - DNF mode! by __aaclcg7560 · · Score: 3, Funny

    Yeah. You enter /DNF and your code gets converted into spaghetti code that will take years to untangle. That's why you need good backups. Alas, the Emacs team didn't maintain good backups and the code got hosed when this command was tested. That's why it took six years. ;)

  8. Y'know... by Colin+Smith · · Score: 5, Funny

    Some day it's going to achieve sentience... Don't say I didn't warn you.

    --
    Deleted
    1. Re:Y'know... by cybereal · · Score: 2, Funny

      Based on the way it is blindly worshipped, I would have to guess it long ago passed sentience and arose to the level of Deity.

      --
      I read the script, and I think it would help my character's motivation if he was on fire. -Bender
  9. So EMACS really is like an operating system... by Junior+J.+Junior+III · · Score: 3, Funny

    And it takes about as long for GNU to release a new version as it takes Microsoft to release Vista.

    But who shed more features before going gold?

    --
    You see? You see? Your stupid minds! Stupid! Stupid!
  10. Obligatory flamebait by Alioth · · Score: 4, Funny

    Does it still (E)ventually (M)alloc (A)ll (C)ore (S)torage?

    Or is it just now Eight Hundred Megs And Constantly Swapping? :-)

    1. Re:Obligatory flamebait by Baki · · Score: 3, Informative

      Many years ago they used to accuse emacs (not entirely unjustified) of using lots of memory, "Eight Megabyte And Constantly Swapping". However, emacs still uses 8MB (in fact when I start it in text mode there is only 6.2MB resident) whereas other editors, even simple ones, have overtaken emacs in this respect and use many times more.

      So it is quite ironical that emacs used to be a pig, but nowadays is lean and mean compared to most other editors. Still it is more powerful than most.

    2. Re:Obligatory flamebait by Rakshasa+Taisab · · Score: 3, Funny

      So we can now call emacs for "Eight Megabyes And Ceased Swapping"?

      --
      - These characters were randomly selected.
  11. We were always using VI by SuperKendall · · Score: 5, Insightful

    But then once in a while, some among us elevated to a higher plane - the Emacs User. :-)

    Emacs 22 took six years, just to find anything Emacs 21 didn't already offer...

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
    1. Re:We were always using VI by PopeRatzo · · Score: 3, Interesting

      I've learned enough vi to get some work done, but I've never tried emacs. Is this new version any easier to figure out? The first time I had a Linux box, a knowledgeable friend set up emacs for me, but I just couldn't get it before my frustration-limit kicked in.

      I got stuck in a thunderstorm riding home from work on my bike and I'm too beat to read TFA. Is there any new reason for a Linux noob to take a second look at emacs?

      I just got my music/video Linux production machine (Ubuntu) set up and I'm high off my success getting my pro audio interface to work, so I'm willing to take on a mild Linux challenge.

      --
      You are welcome on my lawn.
    2. Re:We were always using VI by SuperKendall · · Score: 4, Informative

      It would be similar...

      Really, there's nothing in Emacs to figure out - since it has a menu, you can save and so faroth using that, if you don't feel like learning the keyboard commands (whch have a huge amount of depth and are logically organized).

      You load files and the appropriate mode should be applied. You get more out of it if you learn some modal specific commands (like autoflow comments in C mode) but you can always go without them.

      The feature I still find most powerful is macro recording, if you ever decide to go in for a second look - C-x ( starts a key board macro, C-x ) ends recording, and C-x e runs the macro you last recorded.

      --
      "There is more worth loving than we have strength to love." - Brian Jay Stanley
    3. Re:We were always using VI by 0123456789 · · Score: 3, Informative

      One of the improvements for v22 is in the macro handling. F3 now starts recording, F4 ends recording, and F4 again runs the last recorded macro. Easier to remember than the old shortcuts (which still work), and perhaps more useful for an Emacs novice. There's other changes to the macro handling as well; it's even sweeter than it was before.

    4. Re:We were always using VI by Mr.+Underbridge · · Score: 5, Funny

      Emacs 22 took six years, just to find anything Emacs 21 didn't already offer...

      Sure. Now maybe that they're done with that, they'll finish Hurd.

    5. Re:We were always using VI by jbolden · · Score: 2, Insightful

      Is there any new reason for a Linux noob to take a second look at emacs?

      Not as a noob. Give it a few years. There is no one who has learned emacs that regrets it.

    6. Re:We were always using VI by Javagator · · Score: 5, Funny
      Now maybe that they're done with that, they'll finish Hurd.

      If you have Emacs, you don't need Hurd.

    7. Re:We were always using VI by GNUALMAFUERTE · · Score: 4, Insightful

      Agreed. I Think it actually is a change you do out of necessity. When you find the need to edit at the same time +5 php files, php.ini, httpd.conf, a few very complex SQL sentences, and at the same time test those SQLs, those PHPs, restart services, and tail a few logfiles, all while checking e-mail, Emacs comes as a natural solution.

      --
      WTF am I doing replying to an AC at 5 A.M on a Friday night?
    8. Re:We were always using VI by 666999 · · Score: 4, Informative

      You most likely meant http://www.emacswiki.org/.

    9. Re:We were always using VI by joss · · Score: 2, Interesting

      Hey, do you know how to save a recorded macro and then run
      it again later - eg, if I have 3 macros I want to be able to use,
      how to I run them each at will rather than just the most recently recorded ?

      I've wanted an answer to this question for about, oh, maybe 15 years
      now, but never badly enough to wade through enough documentation to find an answer.

      --
      http://rareformnewmedia.com/
    10. Re:We were always using VI by mwpeters · · Score: 3, Insightful

      When you find the need to edit at the same time +5 php files, php.ini, httpd.conf, a few very complex SQL sentences, and at the same time test those SQLs, those PHPs, restart services, and tail a few logfiles, all while checking e-mail, Emacs comes as a natural solution.
      You misspelt "screen". HTH!
    11. Re:We were always using VI by drew · · Score: 2, Funny

      Emacs- a solution only PHP could drive you to!

      --
      If I don't put anything here, will anyone recognize me anymore?
  12. I love the headline by nizo · · Score: 3, Funny
    As a long time vi user I can say this is the best thing that has been coughed up since the hairball my cat expelled last week.


    On the upside, matching our carpet to the color of the catfood has turned out to be a brilliant strategy so far.

    1. Re:I love the headline by nizo · · Score: 3, Funny
      ...this is the best thing that has been coughed up since the hairball my cat expelled last week....


      So I take it whoever modded me as flamebait thinks this isn't the best thing that has been coughed up since the hairball incident? Will the persecution of emacs never end?????

  13. Re:Cue the vi versus emacs flamewars by plams · · Score: 4, Funny

    Don't compare apples to.. operating systems.

  14. Re:Cue the vi versus emacs flamewars by Bongo+Bill · · Score: 4, Informative
    --
    ...but is it art?
  15. Number One by MulluskO · · Score: 3, Funny

    So easy to use, no wonder it's number one!

    --

    Too busy staying alive... ~ R.A.
  16. Ok, but does it include... by frinkillo · · Score: 3, Funny

    ...a good editor?

    /me ducks

  17. For those of you...., by Chineseyes · · Score: 3, Funny

    For those of you who have been holding your breath you may now exhale.

    --
    I think the invisible hand of the market has its middle finger extended

    --A wise old fart named SC0RN
  18. ln -s vi emacs by rossz · · Score: 2, Funny

    'nuff said

    --
    -- Will program for bandwidth
  19. Um, mirrors don't have it by Estanislao+Mart�nez · · Score: 2, Interesting

    And it's really just the sources that are out; there's precious few binaries out there.

    Can we post binary torrents in this thread? I want OS X, preferably Universal, but Intel-only will do.

  20. Re:Needing by drinkypoo · · Score: 2, Funny

    The only thing more abusive than throwing someone into vi without explaining modality first would be to throw them into vi that had a message to tell you to press (whatever) for help, and popped up eliza when you did so. "How do I quit?" "How does it make you feel that how do I quit?"

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
  21. UNIX Philosophy by nbritton · · Score: 2, Interesting

    Is it just me or does emacs go completely against the grains of *nix philosophy? i.e. simple, modular, parsimony, etc. The emacs base distribution is 126 megabytes, larger then the FreeBSD operating system... How did emacs get to be like this?

    1. Re:UNIX Philosophy by TheRaven64 · · Score: 4, Informative
      EMACS was never based on the UNIX philosophy. EMACS comes from the Lisp Machines philosophy. In many ways, it is an attempt to re-create the old Lisp Machines.

      If you want an editor like EMACS that follows the UNIX philosophy, take a look at mg, from the OpenBSD team (now runs pretty much anywhere). Most people who use EMACS, however, would feel horribly lost on something like mg, since it's the non-UNIX-like nature of it that is its strength.

      --
      I am TheRaven on Soylent News
    2. Re:UNIX Philosophy by reynaert · · Score: 2, Informative

      A few historical notes:

      1. Emacs predates the Lisp machines, it was originally developed for the MIT mainframes (in TECO, with TECO as an extension language). GNU Emacs has its origins mostly in Multics Emacs, a port to a different mainframe/OS, both the first Emacs implemented in Lisp and the first Emacs extended using Lisp (also the only standard Multics program using Lisp :). The influence of actual Lisp Machine Emacsen on GNU Emacs is rather limited (remember that Stallman wasn't a big fan of the commercial Lisp companies!).

      Of course, none of these systems were even remotely Unix-like, so you're entirely correct that Emacs doesn't care about the Unix philosophy :)

      2. mg predates OpenBSD (it dates from the eighties, based on MicroEMACS), though the version in OpenBSD is probably the only maintained one. It isn't very Unixy: no regular expression search/replace, no filtering text through pipes (both of these are pretty much defining for the Unix philosophy). It's just as much Emacs as you could get in a 16-bit micro :) (And I don't think most Emacs users would have too much trouble with it: it only implements a tiny subset of the GNU Emacs commands, but it gets them right.)

  22. Re:Why wait for Emacs... by Riverman5 · · Score: 2, Insightful

    Cause vi is for buttholes!

  23. Using Emacs to edit a text file is like... by toadlife · · Score: 4, Funny

    ...using a front-end loader to put out the cat.

    --
    I don't always use unix-like operating systems; but when I do, I prefer FreeBSD.
  24. OMG, what next?? by mobby_6kl · · Score: 4, Funny

    This must be the third horseman. Let's just hope the unimaginable doesn't happen, and GNU doesn't puke out Hurd. That would mean the end of us all.

  25. I don't know who's a fault... by rthille · · Score: 3, Funny


    But I _still_ can't get GRUB to load it...I _still_ have to use this useless 'linux thingy' to invoke it!

    Won't someone please help me with replacing my Symbolics machine?

    --
    Awesome furniture, accessories and cabinetry in Santa Rosa, CA: http://humanity-home.com/
  26. Re:Cue the vi versus emacs flamewars by BobNET · · Score: 5, Funny

    Hell, even The Beatles use Vi...

  27. He didn't say "hot" by SanityInAnarchy · · Score: 4, Funny

    Emacs asian girlfriend will cook, clean, balance your checkbook, do your taxes, and never, ever complain... but she weighs 300 lbs.

    Vi asian girlfriend just stands there looking pretty, but if you thought you were going to get anything done, you're sadly mistaken. It'll take you a week to figure out how to get that dress off...

    Vim asian girlfriend will do anything you ask, as soon as you learn the language. Fortunately, most of us know words like "Bukakke" already, and it doesn't take much.

    --
    Don't thank God, thank a doctor!
    1. Re:He didn't say "hot" by dstar · · Score: 5, Funny

      MS Word asian girlfriend is actually nouveau riche white trash with tens of thousands of dollars worth of cosmetic surgery, but she's already done the entire city and she's got a collection of diseases that would make the CDC jealous.

    2. Re:He didn't say "hot" by revengebomber · · Score: 3, Funny

      MS Word asian girlfriend is actually nouveau riche white trash with tens of thousands of dollars worth of cosmetic surgery, but she's already done the entire city and she's got a collection of diseases that would make the CDC jealous. Brittany Spears?
      --
      09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
      45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B2
  28. Re:Nobody Cares. - my experience by NovaSupreme · · Score: 5, Interesting

    I've been a regular visitor to the church of Emacs and paying my weekly tribute to RMS on Sundays.

    In the beginning emacs more than delighted with built-in debugger/mail/sokoban/all-language-modes and then I learned the power of lisp. Google for 5 minutes and then you can have your own scripts built in the editor to rotate the selection, crop 20% of the text from left, tranlsate the remaining junk into Russian and then to Polish or whatever you want, power is immense! Over time my .emacs has grown to have more than 1k lines.

    But, lately I've been thinking about converting to vim family. Vim is what I like in real life - quick (way faster than emacs), not-bloated (still in MBs) and above all cool features. In retrospect, emacs seem to be developed as really bloated thing, include all, nasty to use keyboard shortcuts (although I have replaced all of them with my custom settings).. things that you expect to get on your 10GB windows vista (RMS, pls pardon me for this insane comparison).

    OTOH, vim has a taste of elegance, at least in default keyboard shortcuts.. that are rarely longer than 3-4 char. Looks like the developer really cared for what user really needed rather than stuffing everything down the throat. But, my tipping point was vim7.0's "time undo feature" -- something like you tell ":earlier 5m" and it'll take you (or rather your file) 5 minutes back in time. I'm sure I can do same thing in emacs after spending 2 hours on google and adding 10 more lines to .emacs but the joy is not there.

    So, here I am in middle of my biggest decision of my life - should I continue emacs, where I am a power user or should I join enemy's camp.

    PS: emacs users, pls dont kill me.. I have not YET switched and still visit emacs church. Vim user, you dont kill me either for I am your potential convert. Thanks!

  29. Re:Any OS X builds? by Zaurus · · Score: 5, Informative

    Someone on a slashdot post or blog somewhere posted instructions on how to build and install carbon emacs from CVS. I've used it on my PowerBook, and two MacBook Pro's (Core Duo, then Core 2 Duo) with great success.

    Here's the instructions I saved:

    mkdir ~/tmp
    cd ~/tmp
    cvs -z3 -d:pserver:anonymous@cvs.sv.gnu.org:/sources/emacs co emacs
    cd emacs ./configure --enable-carbon-app
    make bootstrap
    make
    sudo make install

    Then I put the following in my .bashrc so that I can easily launch it from the command-line. The best part is that when you launch it in the background with a file argument, emacs grabs focus when it comes up. The emacs that requires Apple's X11 would never come to the front on launch.

    alias emacs="/Applications/Emacs.app/Contents/MacOS/Emac s -g 110x40 --no-splash"

    (you may want to adjust the columns and width from 110 and 40 to your own preference)

    NOTE: I haven't tried this since 22 was officially released.

  30. Re:Cue the vi versus emacs flamewars by eln · · Score: 2, Funny

    Vimacs is an affront to God...using it may very well bring about the Apocalypse. It's like what would happen if God came down to hang out with you for a while and you stole his wallet or coveted his ass or something: bad things are going to happen.

  31. Re:Nobody Cares. - my experience by alienmole · · Score: 3, Funny

    PS: emacs users, pls dont kill me.. I have not YET switched and still visit emacs church. Vim user, you dont kill me either for I am your potential convert. Thanks!
    Too late - to paraphrase Agent Smith, you're already dead. If you decide to switch, emacs users will kill you. If you don't decide to switch, vi users will kill you. One of your lives had a future, but for some reason, you opened your mouth and picked the one that does not. Goodbye, Mr. NovaSupreme.
  32. Re:brokeback editor by CrimsonScythe · · Score: 3, Funny

    Well, I'm wary of any editor that takes the commands through the colon. Add on a Brokeback reference, and my homometer is going haywire!

    I kid, I kid... I personally use both Emacs and Vim

    .
    --
    The view was horrible and the smell was even worse; Julie severely regretted becoming a proctologist.
  33. The Website, RMSes Passport Portrait, Emacs ... by Qbertino · · Score: 2, Funny

    The Website, RMSes Passport Portrait, Emacs itself, ... just looking at it makes it appear beyond bizar. As if I had taken some extremely mind altering substance. I couldn't describe the experience to someone who hasn't had it himself.
    Emacs may once have been an extremely powerfull tool and the best possible thing for a remote tty command line mainframe uplink some 25 years ago. I nearly started learning it back in 1996. But all this nowadays and with a stance that is way far out even by slashdot standards ... heavens crickey.
    How about calling it quits? Donald Knuth stopped TeX when it was finished. And it actually still is a usable tool today. Then again, Donald Knuth is a normal, respected developer, not some strange fringe-dimension entity :-) .

    --
    We suffer more in our imagination than in reality. - Seneca
    1. Re:The Website, RMSes Passport Portrait, Emacs ... by Oswald · · Score: 2, Interesting
      Er, Donald Knuth is a genius and all, and possibly the most respected man in programming, but normal? I don't think so. How eccentric is it to write all your programs (including your magnum opus) in essay/book form? Very eccentric. How odd to continue into the 21st century writing the definitive text(s) on computer science using your own made up assembly language? Pretty odd.

      Would we all be better off if we learned things his way? Possibly so. But we don't and we're not going to, and I'm afraid that makes him a bit fringe-dimensional.

  34. Re:Nobody Cares. - my experience by poor_boi · · Score: 4, Insightful

    I love vim. vi is ok. vim is great.

    vim is an editor that can be used as an ide. Emacs is an ide that can be used as an editor.

    I can honestly recommend vim for use on every platform it supports, which is pretty much all of them, including amiga.

    The only warning I would give is: bring patience with you. vi and vim do not become powerful until you become proficient at the keyboard commands, the modal system, and the command line commands. vim has a menuing system, but if you are a menu-only type of guy, why subject yourself to a new set of menus?

    If you do not love and believe in vi's modal editing enough to learn it, use another editor.

    pb

  35. Eight Megs Is Nothing Nowadays by russotto · · Score: 2, Funny

    So how many DVDs does this thing take up?

  36. Re:Any OS X builds? by Lachryma · · Score: 3, Informative
    Even easier:

    cd emacs/mac
    ./make-package --self-contained

    Makes a .dmg which includes an installer. Self-contained means all the support files end up in the Emacs.app directory, so nothing is installed in /usr.

  37. Ah, Emacs ..... by OneSmartFellow · · Score: 2, Funny

    ...the operating system disguised as an editor.

    I love Emacs, it makes my code look clean !

    Emacs, because life isn't complicated enough

    Emacs is the only user application that I know of where I have to consult the documentation for the ability to shut it down.

  38. You're so lucky by ericferris · · Score: 5, Funny

    My programming instructor said he had an evil boss at a government job who made him use Emacs.

    You're lucky. *My* evil boss makes me edit Java and XML with Excel.

    --
    Fantasy: http://ferrisfantasy.blogspot.com/
  39. You shouldn't boot emacs right away by ericferris · · Score: 4, Funny

    I'd wait a bit before booting emacs. It is said that emacs is a very nice operating system, but it lacks a good editor.

    --
    Fantasy: http://ferrisfantasy.blogspot.com/
  40. Re:Nobody Cares. - my experience by massysett · · Score: 4, Interesting

    In retrospect, emacs seem to be developed as really bloated thing, include all, nasty to use keyboard shortcuts (although I have replaced all of them with my custom settings).. things that you expect to get on your 10GB windows vista (RMS, pls pardon me for this insane comparison).

    OTOH, vim has a taste of elegance, at least in default keyboard shortcuts


    That is interesting because I see things in the opposite way.

    I have been using vim pretty much since I started using Linux a few years ago. My use is limited to some elementary programming (see sig) some long XML documents, config file editing and, more recently, email in Mutt. I'd say my Vim knowledge is pretty elementary, and I am learning new things all the time.

    When I first used Linux, I wanted to learn Emacs. Vi has a reputation of being mean and unfriendly. But something about Emacs just wasn't clicking with me, while the Vim tutorial was easy to follow. The commands were cryptic at first, but I soon realized how quickly I could get around a file with them, even with just rudimentary knowledge.

    Every so often I take another look at Emacs. Most recently it was because shells seem to work better with Emacs key bindings (they usually have vi bindings, but I don't find they work as well at the command line.) I figured that if I was going to learn Emacs bindings, I might as well take another look at Emacs.

    My most recent impression of Emacs is that the basics of the editor are much more well-designed and integrated than Vim. Vim is descended from Vi, which is descended from Ex, which comes from Ed...so there is a lot of editor history and cruft and weirdness in there. Recently I've been digging through the Ex and Ed manpages, which helps me understand Vim better. But yikes, that old line-editor history is still deeply in Vim, and it is very apt to say that the the visual part of Vim is "bolted on" to Ex.

    Emacs on the other hand does not seem to have this crazy history. It seems to do many things smoothly that were later added to Vim, such as editing multiple buffers. Basic functionality like searching is easier to understand--Vim's distinction between "magic" and "nomagic", for example, took awhile for me to understand (of course, it exists in part due to compatibility with the ancient regular expressions found in Ed.)

    In short, the core of Emacs seems to me to be designed, while the core of Vim seems haphazard and bolted together like a historical crazy quilt.

    However, where this changes is with more advanced functionality. Features such as folding and (more recently) spell checking are built in to Vim. Emacs can do these things, sure. But you have to rely on modes. Good luck finding modes and then, if you find them, good luck documenting them. Furthermore, it often seems that doing something more advanced with Emacs requires learning Emacs Lisp, where the functionality will be built-in to Vim. I don't want to have to learn to program my editor just so I can smoothly edit a file.

    So, the core of Emacs seems to me to be better designed, while when it comes to more advanced functionality, Vim wins. So Vim is harder to learn, but easier to use and grow with once you get the hang of it.

    A couple of final notes. Vim's documentation is much better than Emacs. Bram has done a fantastic job by writing two manuals--the user guide, to get you started, and the reference manual to exhaustively explain everything. Emacs has only one manual. Further, Bram has documented all of Vim, including the advanced functionality. Since the advanced stuff is not built in to Emacs--it uses modes instead--good luck getting good documentation to go along with advanced Emacs usage.

    Also, some people compare Emacs and vi. That is an easy contest--Emacs wins hands down. I installed nvi just to see what it would be like, and the lack of documentation alone makes it very hard to use. Thus emacs versus vi is a bogus comparison. Vim is the standard bearer now.

    Just my $.02; I hope an Emacs user offers a refutation.

  41. Is it worth learning for the next generation? by ChaosDiscord · · Score: 2, Insightful

    Are Emacs and Vi even worth learning for the next generation? I say this as a fan of Vim who uses it for all his text editing; and many of my coworkers are Vim or Emacs fans. Both are exceptionally powerful tools. But neither program is especially user friendly, and other editors and IDE seem to be catching up in terms of power. It's perfectly possible to achieve mastery and speed in more user friendly tools as well. (I know a guy who uses Visual Studio's editor with the fluidity I normally only see in Vim or Emacs users, almost never removing his fingers from the keyboard. He works almost entirely on muscle memory so his editor is almost a direct extension of his thoughts.)

    Much though I love Vim and look forward to new releases, as I expect the Emacs fans do, I suspect our favorite editors are going to be increasingly marginalized. I can't in good faith suggest that younger programmers spend the time to learn either one. (Excepting of course people working on Unix, where you should know enough pure-Vi to muddle along in a worst case scenario.)

    1. Re:Is it worth learning for the next generation? by Amit+J.+Patel · · Score: 3, Informative

      I think it depends a lot on how many systems you use, both now and in the future, and also your rate of learning.

      If I'm a new Java programmer I'll probably get more out of Eclipse than vi or Emacs; if I'm using Windows I might get more out of Visual Studio than vi or Emacs. But that's just in the short term. In the long term, the language and operating system might change, but the need to work on text files is likely to still be there. If I'm using multiple languages or OSes now, or if I expect that I'll be using different languages or OSes in the future, it means I'm likely to change IDEs. Each time I change, I'm learning from scratch. This means I don't get more than a decade of becoming an expert with one editor; instead I learn the most common tasks but not the advanced features.

      With vi(m) or Emacs, I get something that's not optimized (specialized) for one environment, but instead something that's general-purpose and adapts to many different systems, and I can carry what I learn from one system to the next. I've been using vi and Emacs on Solaris, OS/2, Linux, Windows, Mac, with C, Scheme, C++, Java, Ruby, Python, Perl, SML, and many other languages. I could've used Visual Age on OS/2, but most of what I learned would not have been that useful when I switched to Eclipse on Linux, and most of that would not be useful when I switched to Visual Studio on Windows, and most of that would not be useful when I switched to XCode on Mac. Instead, I'm using a tool that's less optimal for my current needs, but it's something that I can keep using for other needs.

      It extends beyond programming to my editing of text files, email, messages for newsgroups, HTML, my diary, my calendar, blogs, XML, config files, etc. Do you use Visual Studio for editing your blog, or do you use a different editor? Do you use yet a different editor for HTML? For email? I think it's a reasonable way to go but I find that I only use the simplest editing functions when I use lots of editors, because I can't count on features being available as I switch from one context to another.

      It's a tradeoff, and I don't know for sure whether it's better to be a novice with specialized tools or an expert with a single general-purpose tool. I'd consider vi(m) and/or Emacs if you're editing a whole lot and expect to be editing on many different systems, languages, etc. I'd stick to IDEs if you're using one system a lot and don't expect to switch often, or if you don't edit enough that there's any benefit to learning vi(m) or Emacs.

    2. Re:Is it worth learning for the next generation? by greengearbox · · Score: 2, Interesting
      I used emacs "professionally" as my main development editor for, mmmmm, about 15 years. It's funny: perhaps my first encounter with an "integrated" development environment was an emacs mode which prettified gdb. ISTR a Sun tool as well whicih used emacs as its editor widget. I wrote C, C++, perl, and finally Java, and although I'd try IDEs as they came out they never quite fit the bill for me. This included earlier versions of Eclipse.

      But I've finally made the switch to eclipse, and while I miss (or have yet to discover equivalents for) many of the shortcuts, I don't think I'd recommend emacs for Java development any longer. And in the Windows world, I don't think emacs can be seriously considered as an alternative to something like VS.

      For text munging, on the other hand, I continue to use emacs. There are, off the top of my head, three features that I've never seen anywhere else. The first is "kill-rectangle". I sometimes am given a lage log file with say 50k lines like

      [THE DATE IS HERE] [CODE DESCRIPTOR] [LOG LEVEL] [OTHER CRAP] --- interesting bits.
      [THE DATE IS HERE] [CODE DESCRIPTOR] [LOG LEVEL] [OTHER CRAP] --- more interesting bits.
      I want to do some automated munging on the interesting bits, but it's inconvenient having all the other crap. picture the entire contents of the file: the other crap forms a "rectangle" in the buffer. I can easily select and kill that rectangle, leaving a buffer with only the interesting bits.

      of course, I could also write a regexp to filter out the crap, but why bother? I can kill-rectangle in about 5 keystrokes.

      Another cool feature is "adaptive fill" mode. This was very handy back when I composed my mail in emacs. It's a line splitting algorithm which is sensitive to "list" indentation. Slashdot wil eat my formatting, but the idea is that after a line break in what emacs thinks is a list element (or any other block of text that it thinks should be intended differently) it'll indent the line "correctly". It's a minor thing, but it's strange how I miss it.

      Finally, macros. Again, I have a 50k line file, and I want to apply some operation to each line. But I may not know at first exactly what operation I want to perform. So I start recording a macro, take a whack at the first line. Repeat, until I get the operation down right. Then I can apply the macro say 10 times, just to be sure. Then I run it through the rest of the buffer. I'm sure vim (etc.) have a similar feature, but at this point the emacs keystrokes are so embedded in my fingers that I do this w/o having to think about it.

  42. Emacs has excellent documentation by yankpop · · Score: 2, Interesting

    Emacs comes with fine tutorial, available from the help menu, or via C-h t. It comes with a complete online reference manual. A tutorial introduction to elisp, aimed at getting non-programmers up to speed wrt customizing their Emacs. And there's a two-volume set for anyone interested in serious programming in elisp. And O'Reilly has a good manual as well, if you want to pay for it.

    And you definitely don't have to learn elisp to use the advanced features of Emacs. You have access to a very rich suite of editing functions with standard emacs. If you want the same (comparable, if not identical) features available with Vim? you will be just fine without knowing anything about lisp.

    However, with a little time invested you can increase your productivity by customizing functions. I suppose all editors worth their salt provide regexp search and replace. But if you want to automate complicated stuff having a full extension language on hand is a huge plus. For example, I'm writing a latex document, and I want to be able to pull out all the figures/tables/footnotes to a separate file. This requires a fairly sophisticated regexp, as it has to handle nested parentheses and various options for the different environment types. I don't think it can be done with a one-line regexp. It can be done in a dozen lines of elisp, and nothing too difficult to sort out since the real heavy lifting of the regexps is already done with standard functions. Of course, I'm a rank beginner at this stuff, but I'm hooked after seeing how easy it was to make a fairly complex and useful function.

    I guess that dedicated TeX editors probably already have such features built-in. But another benefit of doing this with emacs is that I don't need to learn a different interface to do similar manipulations to code, mail, html...

    yp.

  43. But vim has clippy by Billly+Gates · · Score: 2, Funny

    Who can live without that!.

  44. Re:Nobody Cares. - my experience by swilly · · Score: 2, Interesting

    I too started as an Emacs user, then found myself wanting to learn vi. vi is quick and easy to bring up in a terminal, and is present on nearly all Unix variant machines in existence. Learning vi was not all that difficult, like Emacs there is a lot of consistency in how the various key commands combine with each other, and once you understand how it works, you find yourself just using it. And once you know the vi basics, it is really easy to pick up on the cool features in vim.

    Nowadays I use both pretty regularly. I use Emacs for programming and editing large documents. I also love that its shell buffer offers improvements to other terminal programs, and not just the shell (Oracle's sqlplus within an Emacs shell buffer is much better than from a regular terminal). I use vi for quick edits or when there isn't a good mode for Emacs.

    One day I caught myself alt-tabbing between an Emacs window editing C and two vim windows for lex and yacc, using all the fancy keyboard shortcuts available within each editor. It is amazing how you get so used to something that you don't even think about how to use it.

    Overall, I compare the two editors by their macro capabilities. Emacs can remember long sequences of keystrokes for later recall, and if that isn't enough, you can also write LISP code to modify a buffer however you want. vim doesn't have that level of capability (and vi somewhat less), but does offer the very inconvenient "." command to repeat the last edit. This parallels how I view the two editors - I use Emacs for most serious work, and vim when I want something quick and easy.

    Learn them both, you will be better off for it.

  45. obligatory by DeepHurtn! · · Score: 5, Funny

    ...but I hear it's still missing a text editor. :(

  46. Naming and saving Emacs keyboard macros by Per+Abrahamsen · · Score: 2, Informative

    This is from Emacs 21:

    M-x name-last-kbd-macro

    to give the macro a name

    M-x insert-kbd-macro

    to insert it as Lisp code in the current buffer.

  47. Re:Nobody Cares. - my experience by sunny256 · · Score: 2, Informative

    If only somebody could let me in on how they remember all these damn commands and keystrokes...

    The VIM Quick Reference Card is nice. Hang it on your wall.

  48. vi-mode for Emacs, the code by Per+Abrahamsen · · Score: 3, Funny

    > Well... it's got a vi mode.

    Here is vi-mode for emacs (with apologies to Erik Naggum):


    (defun vi-mode ()
        (interactive)
        (use-global-map (make-keymap))


    Whatever you do, it will just beep annoyingly at you.

  49. Re:Ah yes, the vi editor ... by massysett · · Score: 3, Informative

    In "vi" under older SunOS, even arrow keys didn't work! Who decided that h-j-k-l should be used instead of arrows !?!?

    As with many bizarre bits of vi, the answer seems to be historical. Early terminals of course did not have arrow keys. The hjkl keys actually had arrows on them, so it made sense then.

    Same goes for the escape key; it was where Tab is now, so it was easier to hit. (Now I find ctrl-[ easier to hit than escape.)

  50. Re:Another keyboard shortcut by ic4x0r · · Score: 4, Funny

    especially if you're a rectangle.

  51. Addition to sibling's comment by Peaker · · Score: 2, Informative

    You can also use the functions the sibling comment suggests to create your own macro saver (I had one that saved my macros into my emacs folder in saved-macros.el).

    Also, there's an emacs extension called "better-registers". Better registers allow assignment of keyboard macros into "registers". Registers are basically variables that are assigned to keyboard keys. So you can assign a macro, string, number, or whatever into a variable associated with a key, and then perform operations on that variable (increase number, run macro) via shortcut keys. Its also pretty useful for keyboard macros (as you can have an increasing number, etc inside a macro).