From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuchen Pei Newsgroups: gmane.emacs.devel Subject: Re: Adding major or popular language modes to Emacs distribution Date: Sat, 28 Aug 2021 09:31:21 +1000 Message-ID: <87zgt28nxy.fsf@ypei.me> References: <875yvqa3qv.fsf@ypei.me> <87czpy1nyu.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38229"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.13; emacs 27.2 Cc: Emacs Devel mailing list To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 28 01:32:37 2021 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 1mJlKu-0009j1-8P for ged-emacs-devel@m.gmane-mx.org; Sat, 28 Aug 2021 01:32:37 +0200 Original-Received: from localhost ([::1]:40918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJlKs-0002yo-LT for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Aug 2021 19:32:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48068) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJlJv-0002EU-6i for emacs-devel@gnu.org; Fri, 27 Aug 2021 19:31:35 -0400 Original-Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:35351) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJlJo-0005iA-Os for emacs-devel@gnu.org; Fri, 27 Aug 2021 19:31:34 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id DEB2B32008C3; Fri, 27 Aug 2021 19:31:26 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 27 Aug 2021 19:31:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ypei.me; h= references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm2; bh=+xI2rM9IEUFqpLuRpR2KvysZcw AQpKeiUA83xQWnbz0=; b=bmdQOUpEUQoq7ZdOOD2BihNFiRgmRQ141kq5341XKP vlzywRdSgJwIVxe0ZB4UTNZB3kP8jHymSi+1Uvq8YZp82obryweX9mhjPUiyLlit GMN+3ferOfRHnQtM/rIbjIduyEVPPcPEbNQK8wrHsUKC4eTe9LjHGeTwAoPEfoFu nXVONCkSG2wNeg/oAzp4NBs5P4eetMSBCEnReBZ1PRaaFg1IquyizW7o2+4EHygf 3TClSQIei0i7S/jHVEGTVJQvRobtaAHH+ax10P9FTTTJPfVe7ySffrQmIFGCJS0K tcYJSWZQc+ppTUulvGIF0K80Nv2OZ7znaOFuGWc+Blbg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=+xI2rM 9IEUFqpLuRpR2KvysZcwAQpKeiUA83xQWnbz0=; b=bjClGkqICJPVf0LZvUicud WzX++CQqb3Ovx1NPzE4Ltb96OC8tq45NMUxxpp4qQEz7cNVB0mRKcLAUT/fJtZCA 8z32mY/n4mSc782W2aWbZhyKQoIMPwEOhw8NErOyVb6/i0H0mjP5rzmnkjwf10ju L8w5e+RShuzrBKJ2w87B47f7MDnBX5FV0bb5YJf8domm6xhNzIN+2+rTVLU/JW7V ufgCA2dqX2zBsHlOX9sl0vkvVBWAndnx3hEOOq2R+bgPb5uIRPK4X2k/jOF9LXRa o6M3GZbMoz5PFT4QAZZxhiizEEt7FAGvZwp80+C71MRzHgi8PMZgps3+4r/6zS7Q == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddugedgvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufgjfffkgggtsehgtderredtredtnecuhfhrohhmpegjuhgthhgv nhcurfgvihcuoehhiheshihpvghirdhmvgeqnecuggftrfgrthhtvghrnhepkedtfffhle eigfehueevieeuueekvdfgveegheeiudeuffdvgfejleeijeevheetnecuffhomhgrihhn peihphgvihdrmhgvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhephhhiseihphgvihdrmhgv X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 27 Aug 2021 19:31:24 -0400 (EDT) In-reply-to: <87czpy1nyu.fsf@posteo.net> Received-SPF: pass client-ip=64.147.123.20; envelope-from=hi@ypei.me; helo=wout4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:273201 Archived-At: --=-=-= Content-Type: text/plain; format=flowed Philip Kaludercic writes: > Yuchen Pei writes: > >> Hello, >> >> I notice some glaring omissions of modes supporting major / >> popular >> languages like php, haskell and wikitext in Emacs, though there >> are >> widely used versions available externally as packages. > > See the thread "Re: NonGNU ELPA work" from today: I submitted > patches > for NonGNU ELPA, the repository that has been enabled for Emacs > 28+, > adding new major modes, so that they can be installed without > any > further configuration. I'm aware of NonGNU ELPA and use it, thanks for adding packages there. But I'm not sure it can substitute Emacs itself. > >> I feel it is important that Emacs support these languages >> natively. > > Why natively? With packages like gnu-elpa, the user can be > notified when > a major mode exists for a file they have opened. The advantage > is that > bug-fixes and improvements are not tied to Emacs releases but > can happen > concurrently. The disadvantage is that it requires an internet > connection. This makes sense. But does this mean if I want to add new language modes it should go to GNU ELPA rather than Emacs itself? > >> What is the process of adding these modes? My understanding >> is: >> >> 1. Ask the maintainer of a mode to contribute the mode to >> Emacs. > > And any significant contributor have to sign the FSF copyright > agreement. I acknowledge this could be a reason why some packages don't make their way to GNU ELPA or Emacs, but it shouldn't be a reason why new modes satisfying the criteria shouldn't be added to GNU ELPA or Emacs. > >> 2. If for some reason the maintainer is unable or unwilling to >> add the >> mode, someone writes the mode and contribute to Emacs. >> >> In step 2, is it conventional to add the mode to GNU ELPA >> first, >> before moving it into Emacs itself? >> >> I am asking because I am interested in working on some of these >> modes. -- Best, Yuchen PGP Key: 47F9 D050 1E11 8879 9040 4941 2126 7E93 EF86 DFD0 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIEEARYIACkWIQRH+dBQHhGIeZBASUEhJn6T74bf0AUCYSl1yQscaGlAeXBlaS5t ZQAKCRAhJn6T74bf0BwLAP4whdcYtWCTd9+Tn+daCXJNAkLSQfesfNrEeJnhHtVL mAD/e7gFSRek7fdBcGMG+llgHLxPSNYjQmxkJI9n8+FamA4= =MRht -----END PGP SIGNATURE----- --=-=-=--