From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: "Why is emacs so square?" Date: Sun, 19 Apr 2020 08:42:07 +0800 Message-ID: <87d0845msg.fsf@yahoo.com> References: <863691n4xl.wl-me@enzu.ru> <86blno9yle.wl-me@enzu.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="44163"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Stefan Kangas , Joseph Garvin , Richard Stallman , Emacs developers , Eli Zaretskii , Drew Adams , ndame To: Ahmed Khanzada Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 19 02:43:20 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPy3M-000BNy-Ov for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Apr 2020 02:43:20 +0200 Original-Received: from localhost ([::1]:34942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPy3L-0000Ud-Ql for ged-emacs-devel@m.gmane-mx.org; Sat, 18 Apr 2020 20:43:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44096) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPy2L-00082i-6b for emacs-devel@gnu.org; Sat, 18 Apr 2020 20:42:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jPy2K-0005rT-GQ for emacs-devel@gnu.org; Sat, 18 Apr 2020 20:42:16 -0400 Original-Received: from sonic302-22.consmr.mail.ne1.yahoo.com ([66.163.186.148]:40404) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jPy2J-0005px-Vb for emacs-devel@gnu.org; Sat, 18 Apr 2020 20:42:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1587256934; bh=sECqN5RInomguLTQUTrCRirs/G/nqYvjzDtp4687rb4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject; b=sXh927TJlhj36MlrFdJOJbBzBkVq9OvG7AA5D1830lxdqKRIsaHRmH5PG/cWRMHTyV1sH6QJVne+f9KvuOIORU1On6JDSyzgEQ5oNJSPaxbAcnTdMBeAGSchn1dkNcGORJNil3N+MMnRVV/lbSRG7DfBQvgrT/faAGy40PA+Ra2pHqkIBddaosZiGm2gEN6Fw7trMI7bORL0sPv7YjU3F0ZJvSdMWQQYdl/hNfqQUSH+oUF1TEhnHmUP4Pp5h31Zq7+moovn5Bj0uHumjFpzYmZGkFIDgiUxqGdz6Tzp66KFhT8SGo8YPKPLgrEY4sEs5ZbaMbmcYqbb4X+RIZHFsg== X-YMail-OSG: 19.LdWYVM1l4JGPZlHzlHQNdJd7ZRSS8qW5ITiwzX29Os0l4QRo7l3N9_ODhp7K Xzi0JkOm9OjMEhIXPfFMY50DdR0.u973Ia5fFB0YKO8HmOLHXgDHdf4lYtB9aAZc.wmlpNRx8OyM Q.DefVF_4Z6b_nDvyu0Ihv7yajalBnTznDLx5anL7LzUiMpQpHE3RWpJ4T4M8W099BVdnSOVLFKZ pBC8omTnJwoyVBo0ZBYDUViu4Q5aMowcFjsWvBT_v3ASzoSP06JlFfjHu8PMcCdZq6I.mxv4qNbN EPXzDM8B3M4.PX4PtEITlzeOtLOPzondw4L0MP3HyYwrqUqxrBoIBq_lJ1TUEs8V4hz0DmC1t8NF G3GNSx4UV5wbA0OgOLfLHfAr2FHz8593aLuuBfZDir8J6FggIaHQc1c0ShAQuYs8lyXPpLTNgyLw XSQLdshWtmuyj4K_eXV33wrmox6AvUQDGI15SRXcBDO_qPPhcjtLnRPFYdOMLtzglw1EILSmETbm vcGFN44xnPeZx_ObPilGbjFCv3X3uuF3_h7MQjBRo2izHmCBDXqDMdNtUxrIDrN0p.NGSG7dWRAF z4MC9_JFyJH86aavdasLjAbO1HG2U3MIdNwjyV1MQbRRutP20MfxfhEDq7Vl2AV7BwORMRb35WkC oxtjAL7m9vRy8ef9_O2XQbiTRvfMGZaMW7WNH4t2tf48EDPdg1VezHyOucbHe8bMF3Mq5WPXCfe8 oZg9obhWS90lh9lnLezCFSvBTIFpHu5KCHVlvRssWsFs7VezWOVdW3So6ptzbPlMsJFAiS3onsn4 bjd472GWVKgC0_IgV93mzmkEctJJ2LNuqEZ690qaO8 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ne1.yahoo.com with HTTP; Sun, 19 Apr 2020 00:42:14 +0000 Original-Received: by smtp426.mail.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID e88acfac359e1ddd9e767efcc1c23b72; Sun, 19 Apr 2020 00:42:10 +0000 (UTC) In-Reply-To: <86blno9yle.wl-me@enzu.ru> (Ahmed Khanzada's message of "Sat, 18 Apr 2020 16:13:33 -0700") X-Mailer: WebService/1.1.15651 hermes Apache-HttpAsyncClient/4.1.4 (Java/11.0.6) Received-SPF: pass client-ip=66.163.186.148; envelope-from=luangruo@yahoo.com; helo=sonic302-22.consmr.mail.ne1.yahoo.com X-detected-operating-system: by eggs.gnu.org: Linux 3.1-3.10 X-Received-From: 66.163.186.148 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:247256 Archived-At: Ahmed Khanzada 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.