按年被提到
20082021 · 5 次2026
开源书›软件工程·No.59

The Craft of Text Editing: Emacs for the Modern World

文本编辑的技艺:现代世界的 Emacs
Craig A. Finseth

讲解如何实现类 Emacs 文本编辑器,覆盖文本存储与编辑器架构

免费阅读 ↗
被推荐 · 26 人首次 2008-12-20 · 最近 2024-10-15官方免费在线(版权保留,作者或出版社免费放出)
26不同的人
25活跃月份
14有推荐的月份
31讨论串

作者 Craig A. Finseth 以自己关于 Emacs 类编辑器的论文为基础,系统讲解文本编辑器的内部设计,包括文本如何表示与管理、多缓冲区的编辑器结构等。内容以 Emacs 为中心,但基本思想对其他编辑器同样适用。这类专门讲编辑器实现的书很少,因此常被当作这个主题的经典参考。

HN 为什么推荐它

每当 HN 上出现文本编辑器内部实现的讨论,就有人推荐它,称它是讲怎么实现 Emacs 的权威之作,也是少有的专讲编辑器的书;有人说即使不看代码也值得读,还有人说想写编辑器的人必读。

难度 3 / 5约 20 小时
适合谁

想写编辑器或了解编辑器内部的程序员

读之前最好知道
1C 语言基础
2数据结构(data structures)
3Emacs 使用经验

怎么读

由 Claude 根据这本书和 HN 上的说法整理,可能有错
  1. 1先读文本表示和缓冲区管理的部分
  2. 2对照自己用过的编辑器,理解各设计取舍
  3. 3想动手时,边读边实现一个小型编辑器
  4. 4书中以 Emacs 为例,其他编辑器的人只取思想

HN 书评

推荐在前,同类按时间 · 每本最多保留 20 条,统计用全部提及 · 作者本人贴的不算
强烈推荐hga · 2014-12

“The definitive book on implementing an EMACS, as of a long time ago, is Craig A. Finseth's The Craft of Text Editing -or- Emacs for the Modern World The Craft of Text Editing”

称它是讲如何实现 EMACS 的权威书籍
Show HN: Iota – a text editor written in Rust原评论 ↗
强烈推荐jeofken · 2021-11

“For learning a lot of cool stuff about implementing my best book is The Craft Of Text Editing”

强烈推荐,称它是学习实现类知识的最佳书籍
Batteries included with Emacs (2020)原评论 ↗
强烈推荐teddyh · 2024-09

“The Craft of Text Editing¹ should be required reading for everybody who wants to write a new text editor.”

强烈推荐,认为想写新文本编辑器的人都该读
Show HN: A retro terminal text editor for GNU/Linux coded in C (C-edit)原评论 ↗
推荐gcv · 2008-12

“If you are interested in text editors, you should read The Craft of Text Editing (available at The Craft of Text Editing).”

推荐对文本编辑器感兴趣的人读它
Ask HN: IDE versus Text Editor?原评论 ↗
推荐ChuckMcM · 2014-09

“If you like this you should also read Craig Finseth's thesis in which he describes an emacs like editor.”

推荐 Finseth 的论文,其中描述了一个类 emacs 编辑器
On the Design of Editors for Small Computers (1972)原评论 ↗
推荐tatterdemalion · 2014-12

“Have you read The Craft of Text Editing[1]? It's very informative.”

问对方是否读过,称它信息量很大
Show HN: Iota – a text editor written in Rust原评论 ↗
看全部 20 条 →
推荐Erwin · 2015-06

“If you thought this was an interesting article, here 's the obligatory link to just about the only book on crafting a text editor, "Craft of Text Editing":”

推荐它,称几乎是唯一讲如何做文本编辑器的书
Optimizing an Important Atom Primitive原评论 ↗
推荐StreakyCobra · 2016-03

“"The Craft of Text Editing" could also interest people who like reading about text editor internals.”

推荐给喜欢读文本编辑器内部原理的人
A Brief Glance at How Various Text Editors Manage Their Textual Data (2015)原评论 ↗
推荐bonquesha99 · 2016-10

“So far I've found and enjoyed reading/watching the resources below and would love to learn more.”

把它列进自己读过并喜欢的资料,想学更多
Buttery Smooth Emacs原评论 ↗
推荐tbirdz · 2016-11

“If you are interested in this kind of stuff, Craig Finseth's The Craft of Text Editing is a great read:”

推荐给对此感兴趣的人,称是很棒的读物
A glance into web tech-based text editors’ text management原评论 ↗
推荐mistermumble · 2017-04

“The book is worth reading even if you never touch the code:”

称哪怕不碰代码,这本书也值得读
Build Your Own Text Editor原评论 ↗
推荐ChuckMcM · 2017-08

“I've always enjoyed Finseth's Thesis on text editing, "A cookbook for an EMACS", which he turned into a book:”

说一直喜欢 Finseth 那篇 EMACS 食谱论文,后来 Finseth 把它写成了书
Ask HN: What is your favorite CS paper?原评论 ↗
推荐sanxiyn · 2021-05

“The Craft of Text Editing book has a lot of accumulated wisdom. It is Emacs-centric, but basics are same.”

称它积累了大量经验,以 Emacs 为中心但基础通用
Google Docs will now use canvas based rendering原评论 ↗
推荐jeofken · 2022-01

“for the text editor part, this book “The craft of text editing” was very good The Craft of Text Editing”

称就文本编辑器部分而言这本书很好
GNU Emacs Telegram Client原评论 ↗
推荐kragen · 2023-12

“finseth's book is worth reading The Craft of Text Editing”

称 Finseth 的书值得读
Text Editor: Data Structures原评论 ↗
引用swah · 2015-02

“Its like they didn't even read it? The Craft of Text Editing”

质疑对方像是没读过它
Sublime Text 3 builds picking up steam again原评论 ↗
引用DonHopkins · 2017-10

“ITS Emacs has "glass tty" support that responded to keystrokes exactly as normal”

谈 ITS Emacs 对 glass tty 的支持
Ken Thompson quotes原评论 ↗
引用bmitc · 2022-01

“I know of The Craft of Text Editing.”

表示知道这本书
Ask HN: How to learn about text editor architectures and implementations?原评论 ↗
引用jwstarr · 2023-10

“The book The Craft of Text Editing claims the gap buffer technique was first used by TECO, although this claim is given no support.”

引用它称 gap buffer 最早用于 TECO,并指出该说法没有依据
Text Showdown: Gap Buffers vs. Ropes原评论 ↗
引用lispm · 2024-05

“The question is what makes this species.”

引它讨论什么才算 Emacs 类编辑器
Štar: an iteration construct for Common Lisp原评论 ↗