[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "Why is emacs so square?"
From: |
Po Lu |
Subject: |
Re: "Why is emacs so square?" |
Date: |
Sun, 19 Apr 2020 08:42:07 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Ahmed Khanzada <address@hidden> writes:
> That is fair enough. But for extensible editors, features are built by a
> small group of folks interested in that sort of thing. A more
> "mainstream" language usually means more extensions which means more features.
I disagree. The amount of extensions to an editor reflect the popularity
of the editor, not whether or not the editor's extension language is
"mainstream" or not.
Plus, Emacs Lisp has a bunch of nice goodies for Emacs, since the
language itself is seamlessly integrated with the editor it extends
(such as text properties in strings, buffer-local variables, et cetera).
I would also go as far as to say that writing Emacs programs is far
easier, and involves far less boilerplate, than writing extensions for,
say, VS Code:
-------------------------------------------------------------------------------
var setting: vscode.Uri = vscode.Uri.parse("untitled:" + "C:\summary.txt");
vscode.workspace.openTextDocument(setting).then((a: vscode.TextDocument) => {
vscode.window.showTextDocument(a, 1, false).then(e => {
e.edit(edit => {
edit.insert(new vscode.Position(0, 0), "Your advertisement here");
});
});
}, (error: any) => {
console.error(error);
debugger;
});
------------------------------------versus------------------------------------
(with-current-buffer (find-file "~/summary.txt")
(set-window-point (selected-window) (point-min))
(insert "Your advertisement here"))
------------------------------------------------------------------------------
A better language wins extensions, not a "popular" language, and Emacs
Lisp is definitely more suited to extending editors than TypeScript.
- Re: "Why is emacs so square?", (continued)
- Re: "Why is emacs so square?", Eli Zaretskii, 2020/04/16
- RE: "Why is emacs so square?", Drew Adams, 2020/04/16
- Re: "Why is emacs so square?", Joseph Garvin, 2020/04/16
- Re: "Why is emacs so square?", Eli Zaretskii, 2020/04/16
- Re: "Why is emacs so square?", Marcin Borkowski, 2020/04/16
- Re: "Why is emacs so square?", Ahmed Khanzada, 2020/04/17
- Re: "Why is emacs so square?", martin rudalics, 2020/04/18
- Re: "Why is emacs so square?", ndame, 2020/04/18
- Re: "Why is emacs so square?", Stefan Kangas, 2020/04/18
- Re: "Why is emacs so square?", Ahmed Khanzada, 2020/04/18
- Re: "Why is emacs so square?",
Po Lu <=
- Re: "Why is emacs so square?", Ahmed Khanzada, 2020/04/18
- Re: "Why is emacs so square?", Po Lu, 2020/04/18
- Re: "Why is emacs so square?", ndame, 2020/04/19
- Re: "Why is emacs so square?", Po Lu, 2020/04/19
- Re: "Why is emacs so square?", Po Lu, 2020/04/19
- Re: "Why is emacs so square?", Dmitry Gutov, 2020/04/19
- Re: "Why is emacs so square?", Po Lu, 2020/04/19
- Re: "Why is emacs so square?", Bob Newell, 2020/04/19
- Re: "Why is emacs so square?", Po Lu, 2020/04/20
- Re: "Why is emacs so square?", Jean-Christophe Helary, 2020/04/20