News for hackers. Stuff that matters.
Re:A Brief Glance at How Various Text Editors Manage Their T... by cyphar on Tuesday March 08, 2016 @05:03AM (#11244405)
One of the more interesting editors I've seen being worked on is edlib (https://github.com/neilbrown/edlib). The theory is that rather doing a buffer-based approach as in Emacs, the text is actually just a representation of a file. The consequence being that you can have a presentation open as one representation and also be modifying the presentation as a different representation. It's very young (and is a toy project as well), but it's definitely a cool idea IMO.
Re:A Brief Glance at How Various Text Editors Manage Their T... by amelius on Tuesday March 08, 2016 @05:16AM (#11244444)
Isn't this just MVC (model-view-controller), with multiple views?
Re:A Brief Glance at How Various Text Editors Manage Their T... by hittaruki on Tuesday March 08, 2016 @08:41AM (#11245113)
Isn't an emacs buffer exactly that? Depending on what modes are turned on the way the file data is presented will also change.

For ex, how you can open a svg file, if you use the image mode you see the image representation otherwise you get the code.

Re:A Brief Glance at How Various Text Editors Manage Their T... by cyphar on Wednesday March 09, 2016 @05:19PM (#11256115)
Emacs buffers are copies of the representation, not actual representations. The author had a talk at a recent linux.conf.au (can't find the link right now), which explains it much better than I could.