Slashdot Mirror


Emacs Hits Version 23

djcb writes "After only 2 years since the previous version, now emacs 23 (.1) is available. It brings many new features, of which the support for anti-aliased fonts on X may be the most visible. Also, there is support for starting emacs in the background, so you can pop up new emacs windows in the blink of an eye. There are many other bigger and smaller improvements, including support for D-Bus, Xembed, and viewing PDFs inside emacs. And not to forget, M-x butterfly. You can get emacs 23 from ftp.gnu.org/gnu/emacs/ or one of its mirrors; alternatively, there are binary packages available, for example from Ubuntu PPA."

36 of 367 comments (clear)

  1. But... by Brian+Gordon · · Score: 4, Funny

    Does it run Linux?

    1. Re:But... by Anonymous Coward · · Score: 4, Funny

      Emacs would be the perfect operating system, if only it included a decent text editor.

    2. Re:But... by C0vardeAn0nim0 · · Score: 3, Funny

      it does. you can run Vim inside EMACS, you know ?

      --
      What ? Me, worry ?
    3. Re:But... by Anonymous Coward · · Score: 3, Funny

      I don't think they make blenders that Emacs could fit in.

  2. Congrats! by just_another_sean · · Score: 5, Insightful

    Thanks RMS for Emacs, the GPL and the spirit of GNU that I found in 1995 and has not left me since!

    Happy Hacking!

    --
    Creationist Textbook Stickers Declared Unconstitutional by CowboyNeal
    1. Re:Congrats! by Hammer · · Score: 3, Informative

      This is good news indeed

      Thanx RMS for more than 20 years w the only editor

  3. Missed the best feature! by Just+Some+Guy · · Score: 5, Informative

    The summary misses the absolute best new feature: the separation of the client and server. I have a GUI Emacs running on my workstation, always. I sshed in a few days ago, wishing I could access one of its buffers. Voila! emacsclient -nw connected to the underlying server and gave me full access, in console mode, to the running Emacs. Thank you! Thank you! Thank you!

    --
    Dewey, what part of this looks like authorities should be involved?
    1. Re:Missed the best feature! by Brian+Gordon · · Score: 3, Funny

      The system goes on-line August 4th, 1997. Human decisions are removed from strategic defense. Skynet begins to learn at a geometric rate. It becomes self-aware at 2:14 a.m. Eastern time, August 29th. In a panic, they try to pull the plug.

      I never thought I'd see the day that a text editor needed a network-aware client-server architecture.

    2. Re:Missed the best feature! by Brett+Buck · · Score: 4, Funny

      I don't know why someone modded this "Funny"! Well, actually, I do - because there's no tag for "Scary"

            Brett

    3. Re:Missed the best feature! by oGMo · · Score: 4, Insightful

      "Haw haw a text editor that duz stuff, we here around these parts just use NOTEPAD.EXE"

      Yawn. Tired jokes that aren't funny anymore.

      Text editing, text processing, and generally manipulating anything involving language---especially natural language---is the most complicated thing that's ever done on a computer. Yet people---even supposedly knowledgeable people---demand stupidly broken tools that lack sophisticated tools for doing a sophisticated thing. When you understand this, jokes about "ha ha your text-editor-operating-system does X" aren't funny. It makes you wonder why other text editors don't do things.

      --

      Don't think of it as a flame---it's more like an argument that does 3d6 fire damage

    4. Re:Missed the best feature! by zeromorph · · Score: 5, Informative

      They also missed to mention the full unicode support, which is quite nice.

      Anyway they could have linked to NEWS.23.1, which has a concise list of new feature.

      --
      "Hannibal's plans never work right. They just work." Amy/A-Team
    5. Re:Missed the best feature! by elasticlogic · · Score: 4, Funny

      Awesome. The post above parent says

      now all it needs is a feature that allows me to surf _pr0n_ from within emacs, and then i'd consider using it

      and then I read

      This is also called 'multitty'.

      I was 10 Mb into the Ubuntu iso download before I read the whole post and realized what he was talking about.

    6. Re:Missed the best feature! by Haeleth · · Score: 3, Interesting

      Emacs is not an IDE. That term is limited to one type of work (development), while Emacs is good for pretty much anything that involves working with text. "IDE" also conjures up images of endless busy toolbars and wizards and snapins and docked windows and proprietary file formats and non-standard tools everywhere you look, while Emacs provides a single interface (the buffer) and builds on standard tools and file formats.

      I'd call Emacs an "operating environment". That covers its ability to provide a unified interface to most tasks, while acknowledging that it doesn't replace the operating system (Emacs is crippled without some flavour of GNU or UNIX behind it.)

    7. Re:Missed the best feature! by Anonymous Coward · · Score: 5, Funny

      Text editing, text processing, and generally manipulating anything involving language---especially natural language---is the most complicated thing that's ever done on a computer.

      Yup, you're an Emacs user alright.

    8. Re:Missed the best feature! by RAMMS+EIN · · Score: 5, Funny

      No kidding. When I started using Linux, I used emacs because it was the more user-friendly editor that was mentioned in the manual (the other being vi). Then, for years, I used vi because it is ubiquitous and usually fast.

      But now I'm back to emacs. What convinced me was M-x tetris. I figured if it could do _that_, it was powerful enough for my current and future editing needs. And it is. The secret is that the people who say that Emacs is more an operating system than a text editor are right. It's a Lisp environment where anything and everything can me modified while the system is running. It has a file manager, a client for your version control system, a web browser, a tetris game, a psychoanalyst, and countless other things.

      Oh, yes, I almost forgot. There is a text editor, too.

      --
      Please correct me if I got my facts wrong.
  4. Terrorist post. by girlintraining · · Score: 4, Funny

    A lone geek runs into the middle of the forum, screaming "vi forever! Praise the hex codes!" *boom* :)

    --
    #fuckbeta #iamslashdot #dicemustdie
  5. Re:Decent text editor still not included right? by erroneus · · Score: 4, Insightful

    emacs is what happens when a project goes too far beyond its intended purpose.

    It's a frikken text editor for God's sake. If it's not a text editor any longer, and is now the beginning of its own OS, then let it be identified as such. I mean my god, the extensions this thing can have? Calendar/Planners? I like advanced text editing functions as much as the next guy... maybe some useful macros here and there... but this is just ridiculous. How long will it be before Microsoft starts seeing emacs as a threat to Windows + Office?

  6. Remember this one? by AdmiralXyz · · Score: 5, Funny

    Slightly shortened to accommodate the special event:

    I asked my email-pal: "UNIX or Windoze?". He replied "UNIX". I said "Ah...me too!".

    I asked my email-pal: "Linux or AIX?". He said "Linux, of course". I said "Me too".

    I asked him: "Emacs or vi". He replied "Emacs". I said "Me too. Small world."

    I asked him: "GNU Emacs or XEmacs?", and he said "GNU Emacs". I said "oh, me too."

    I asked him, "GNU Emacs 22 or GNU Emacs 23?", and he replied "GNU Emacs 22". I said "DIE YOU OBSOLETE NO-GOOD SOCIALLY MALADJUSTED CELIBATE COMMIE FASCIST DORK!", and never emailed him again.

    --
    Dislike the Electoral College? Lobby your state to join the National Popular Vote Interstate Compact.
  7. Re:Decent text editor still not included right? by itsdapead · · Score: 5, Funny

    emacs is what happens when a project goes too far beyond its intended purpose.

    Why do you feel that emacs is what happens when a project goes too far beyond its intended purpose?

    --
    In a survey of 100 programmers, 111111 thought that duck-typing was a good idea.
  8. Still useful after all these years... by SuperKendall · · Score: 3, Interesting

    I don't use Emacs as my primary editor anymore, but I do turn to it pretty often still.

    For short repetitive tasks, there's simply nothing more useful than the macro recording mode that lets you execute a combination of searches, multiple buffer stores, and cursor position storage states to easily repeat very complex tasks over a block of code.

    For reading in obscure file formats, Emacs usually has an answer - with good syntax highlighting.

    I look forward to this next iteration of emacs and what else it can do...

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
    1. Re:Still useful after all these years... by Anonymous Coward · · Score: 4, Funny

      Oh I totally agree. For example, just today I was writing a program that needs to load in around 1000 sequentially-numbered images. Like any decent coder, I had typed all of the filenames into my main program loop. But then my manager called me up to let me know that the base filename of the images had changed! You can just imagine the sinking feeling I had in my stomach, knowing that I would need to retype every single filename! It would have taken me hours, if not for the macro recording functionality in Emacs. Thanks, Emacs.

      It doesn't stop there, of course. I needed a function to count how many images had been loaded in, and save that number as a string. Then my boss phones me to say that they don't want image #0003 any more. Think of all the 'if/then' statements I'd have been forced to rewrite by hand, if it wasn't for Emacs!

  9. Re:Decent text editor still not included right? by the+Atomic+Rabbit · · Score: 5, Insightful

    Correct: Emacs is a text editor. And guess what: a calendar consists of text. Plans consist of text. So are emails and newsgroup contents. Source code, XML data files, patches, changelogs, directory listings, version control messages, compilation messages, are all text.

  10. For some reason I am reminded ... by neonprimetime · · Score: 3, Interesting

    of a recent /. article entitled the amazing world of software version numbers

  11. I seriously doubt Alan Cox is going to upgrade by Anonymous Coward · · Score: 5, Funny

    I seriously doubt Alan Cox is going to upgrade

  12. I've been running emacs 23 for 2 years ... sorta by Lemming+Mark · · Score: 3, Interesting

    M-x version gives me "GNU Emacs 23.0.0.2 (i686-pc-linux-gnu, GTK+ Version 2.10.6) of 2007-01-18". This is a version I checked out from emacs CVS on that date, compiled with GTK support and antialiasing (at least one, possibly both of which were experimental at the time) and have been using this version ever since. I've been sticking to it because of the antialiasing, basically. Whenever I start it up it displays a warning about how it might be horribly unstable, eat my data, etc.

    But I have found it to be remarkably stable - much more so than many / most final releases of software. I can probably count the crashes I've had from it on my fingers - in unary, not binary, for the benefit of any pedants out there. If the final release is at least as good as the random CVS checkout I have then it ought to be pretty good! To be fair it sounds like lots of features have been added since my checkout ...

    On the basis of my experience I will consider testing CVS versions of emacs in future if they have useful features that I need. Obviously still gotta take care with that vital data when doing so, my good experiences notwithstanding!

    On a side note, the emacs versioning system is amusing in itself ... IIRC they were numbering the releases 0.x and working up to 1.0 as normal. But it took so many releases that they ended up just dropping the "0." designation and calling it "x" instead. Which is why emacs is at version 23 where vim (on my machine) is only at 7.2 and nano at 2.0.9 ;-)

  13. One question by feldicus · · Score: 3, Funny

    Does the feature list include "Shortcuts that make sense to humans who never used the 30-year old keyboards that were around when RMS was hacking on TEX"?

    Until I stop seeing Emacs primers that start with advice to start remapping my keyboard, I'll pass.

  14. Re:Word wrapping by the+Atomic+Rabbit · · Score: 4, Informative

    1. M-x visual-line-mode RET (or Options->Line Wrapping->Word Wrap)
    2. Live happily ever after.

  15. Re:Now finish HURD please by CannonballHead · · Score: 3, Funny

    Apple should take over dev of it. We could all be using iHurd

  16. Re:Decent text editor still not included right? by the+Atomic+Rabbit · · Score: 3, Insightful

    Actually, it might. For instance, Emacs 23 includes support for SVG, and SVG code consists of human-readable text. So if you need to change some parameters in an SVG image, such as its width or height, you can open it in Emacs, type C-c C-c to switch to text representation, perform your edits, and type C-c C-c again to instantly view the result.

  17. Emacs? Bah! by bmo · · Score: 3, Funny

    Emacs is merely a TECO macro.

    Given enough random characters and memory space, TECO can simulate the human brain.

    --
    BMO

  18. Re:Eight megs and constantly swapping by Lord+Bitman · · Score: 4, Funny

    at least in VIM, random typing can accidentally put you in a useful mode.
    Emacs starts in some sort of.... okay, I typed "useless scratchpad thing" here, then went to see if anything had changed since last I tried it. What fun! Here goes "Attempt #4 at actually using emacs"

    $ sudo apt-get install emacs22
    $ emacs

    Oh look, I'm in a GUI this time. Hm, I expected to get a useless scratchpad thing, but it looks like instead I'm in some sort of crudely-made slapped together temporary menu that they'll replace with something more sensible in the final version.

    Oh well, there's a standard "new file" button in the corner, I'll click that.

    Alright, now the bottom of the window says "Find file: ~/"... okay, I guess that wasn't it, I'll try through the menu instead.
    File... "Visit new file"? Are you serious? Okay, fine, they're hippies, whatever.. I'll just click it.
    oh, "find file" again.. I don't want to find a file, I want a new file.

    Yeah, I get it, I'll stop playing dumb now. It's using 1970s technology or something so it needs a filename before it can edit anything. "emacs foo" opens as expected, lets me type normally and clicking the save button saves.

    Now how do I use the console?
    man emacs /console
    nope.. /terminal
    nope..

    I'll force it:
    DISPLAY= emacs

    press C-h for help.. and C-h actually works this time! Though only once.. better than last time though. May actually be usable, I'll give it credit.

    Emacs works better than it did last time I tried it. Still looks like crap, but it seems to be working, for the most part.

    --
    -- 'The' Lord and Master Bitman On High, Master Of All
  19. Re:Decent text editor still not included right? by CronoCloud · · Score: 3, Funny

    Because it includes an "Eliza style bot" that acts like a Rogerian therapist, that's why.

  20. But that's exactly the strength of Emacs by SuperKendall · · Score: 5, Insightful

    An application should do one thing and do it well, not do a gazillion things in a mediocre way

    That is exactly what Emacs is.

    It's not one giant monolithic thing, at all.

    Just like UNIX it's a core in which you can write very specific modules to address some aspect of editing. Perhaps it's formatting C style code. Perhaps it's a variant built around C++ or objective-C in particular. Perhaps it's a bit of logic to sort some parts of a file based on criteria in the file - or by running a shell command.

    Each of these pieces can be tied to any particular file type, or called on at will. You can easily write your own, in elisp (basically a LISP variant). All of the standard behavior is also written in elisp, so you can modify or extend it as desired (most things have many points in which you can insert behavior hooks)

    Never has a program more dearly held to the concepts you espouse, and it's actually the core of why I think people who prefer emacs over VI do so.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
    1. Re:But that's exactly the strength of Emacs by the+Atomic+Rabbit · · Score: 4, Interesting

      There's also the point by Debian's vim maintainer, who switched to Emacs earlier this year: that Emacs makes it very easy to interact with more specialized tools, such as ispell. Contrast with vim, which implemented its own spell checker. Now, let's see... which approach is more consistent with the Unix philosophy?

  21. Re:Eight megs and constantly swapping by __1200333 · · Score: 3, Informative

    I hope you're joking. About everything. Maybe you're even making some convoluted commentary about vim being impossible to use without knowing its secrets (but I think emacs is also guilty).

    1) you can save directly from the scratch buffer
    2) emacs --help clearly says use -nw for text mode (it's obviously also in the man page, but a little harder to find)

    Maybe attempt #5 will work out better for you. I'm on attempt #3 myself. Perhaps try growing a giant unkempt beard or something. Good luck to both of us!

  22. Re:What do you use it for? by dhTardis · · Score: 3, Insightful

    Totally serious question: do you guys really use emacs (or even vi, etc) to write code rather than a modern Studio/IDE?

    Yes. The typical reasons (aside from Luddite tendencies and comfort) include

    1. that our text editors are extensible, so that you don't have to switch to a completely different program (with a different interface) to edit SQL instead of, say, JavaScript (granted: Eclipse does both of these; I don't think any "Studio" program does)
    2. that they (Emacs especially) are extensively customizable, so that things that bother you can be changed
    3. that they are extremely cross-platform (more so even than Eclipse because more so even than Java)
    4. that they were designed with the keyboard in mind, so they're easier on the hands (if you get over the "holy crap I have to type Escape (vi) or Ctrl-Alt (Emacs) all the time!" thing)
    5. that they've been around for a long time, so that most of the bugs are gone and many many add-ons are available (quick, does Eclipse do Icon? Maybe it does, but it's been supported out-of-the-box by Emacs since at least 2001.)
    6. that they integrate well with other tools in ways that sometimes surpass even an IDE's integration: I'm sure you can sort text in any IDE, but can you pass it to sort(1), use all the options and speed thereof, and replace the text you sent with what you got back? It's C-u M-| in Emacs.
    7. that they've always been free (and Free).

    Some people have been using such editors for longer than the modern IDEs have existed, and so are so good with them that it would take a very long time to recoup the investment of switching (if we even take as given that there will be a lasting net benefit).