From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) Newsgroups: gmane.emacs.help Subject: Re: How can i enable webmode? Date: Mon, 11 May 2020 13:55:22 +0200 Message-ID: <864ksm4rf9.fsf@duenenhof-wilhelm.de> References: <008d9cd4-8d24-f19b-82ad-d5c1bf7a435f@posteo.net> <86d07b6a4w.fsf@duenenhof-wilhelm.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="123743"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: aprekates , help-gnu-emacs@gnu.org To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 11 13:56:02 2020 Return-path: Envelope-to: geh-help-gnu-emacs@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 1jY72Q-000W2f-14 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 11 May 2020 13:56:02 +0200 Original-Received: from localhost ([::1]:53296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jY72P-0006JW-0F for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 11 May 2020 07:56:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33178) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jY71v-0006I2-Ca for help-gnu-emacs@gnu.org; Mon, 11 May 2020 07:55:31 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.24]:45745) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jY71u-0004gj-7k for help-gnu-emacs@gnu.org; Mon, 11 May 2020 07:55:31 -0400 Original-Received: from ping ([92.116.141.135]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mv2tK-1jGijb04Vk-00qw6A; Mon, 11 May 2020 13:55:23 +0200 In-Reply-To: (Drew Adams's message of "Sun, 10 May 2020 09:42:14 -0700 (PDT)") X-Provags-ID: V03:K1:+flDlkF9vwSo+clOiaPKiaN0mTBlmoUy82o9GLChfQZrpP8lQMn z4tT3HCOFCG2Hq9Vrw0bvdv/yZTjKy8Mp9f5JofaVtWPlLIjbmX7x1hICwBKKQuq9TlzIhY 9ipuqXzp6yFvqDvAqZqkb0Md6EXWj5gR5PJUhjrjCuACS3acr1fteqIFbZjfeLu3rnuIgLQ bF0AlpktyzY8cB6YTexhA== X-UI-Out-Filterresults: notjunk:1;V03:K0:TjCjWP/N3XA=:OYJCCoADCuZAEo3lnXduUt N9n6iui9EJDHYGyuMYRXtAA6PFEYxXSnLmcqZJT6/Ey8OIEALX7pooRSyQulAfAdg1OoXF2Z5 wQcIRSr5HKB4Z+LnO5jD7zK0FA6BFnH61Z9wMcbxwKJlFDbdjjI2Drizr4Pyf7Y10nDbsw+qQ VJcf4LrGPhzKdhkeEaMttneQWT1YLXu5EcdW9cVq7M0ny5IzM0KXOE7+pytTQpIYIJqk5B5GB eUx2k/a0ua99x7fNBeYZbGT+VCGyGyU2xYfLZs84K6BV934ojN8IN/p3n1X66UfuLXUik+gfU NlTt4jtKD6RurxXbbDsOoRe42szyfjSIYBp0MFumDUQH5zLMqd8OhELvgbQ8sAG9XmgdolZ5I VgNqXmPocEYeRzIk10Bmkt/vLlXQt+P1rIonbP8ZQkgclJ6By8AetzOSmauCcWo/0ariW0h1P fAnAth29BIwl8RbfYTk0KBuMLz279U93OX7qCerTP+SgHqdI7dD5MBtkGdzCQETZsGRE2xvwI Hw+vQUrdCK08wUSpoBm09ikHRusQorajsFIZA6V1rJ84cClq/imzitT2T9BF2CV5w7uQ141LL 5qaqDWwrjbqik9n+TL4Dpjejr411DNeycOKhxdN/CK9Pib2lPIu6fCVn9yrTYrgjt+cS/A2ng qxd/rqeVFiTEwUaGCHDnbSOyNxJG+FRp2SB3zVc8jxo45DXj1l56HkC01AJhG7FpDWeQCOnpZ qp1HQEGqRJBCOan+BNbI/VsoLGLWzMw+ElnmYhm5bF0Uoq0OA8Mynkn+yfRMOGXW1b5ncyyN Received-SPF: none client-ip=212.227.17.24; envelope-from=dieter@duenenhof-wilhelm.de; helo=mout.kundenserver.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/11 07:55:28 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123065 Archived-At: Drew Adams writes: >> For example the Melpa package `inform' is activating itsel during >> installation (and maybe by restarting Emacs in some situations). The >> motivation is: If you are interested you'll have it without much ado >> and >> if you don't like it any more just uninstall the small package. >>=20 >> Does it make sense or do you regard this behaviour as impolite? > > It's generally considered impolite, and is > contrary to convention. Thank you for showing the Lisp coding convention. And I accept these reasonable rules. But I think there are also borderline cases where (small?) packages don't change editing behaviour and do not change existing code in any way. And the its feature(s) can be completely removed by uninstalling the package. Why would I download a package if I do not want to activate an advertised feature? So this uncommon way can save unnecessary hassle, I hope. Dieter > Loading a library should in general not change > most user-observable behavior. It shouldn't > change faces, key bindings, actions of existing > commands, etc. > > "Installing a package" does a little bit more > than loading a typical library (Lisp file). > The main thing package-installing does, which > might or might not be done by just loading a > library (e.g. `require'), is to establish > autoloading for some commands etc. > ___ > > This is, in fact, the very first rule of the > Emacs Lisp Coding Conventions: > > D.1 Emacs Lisp Coding Conventions > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Here are conventions that you should follow when > writing Emacs Lisp code intended for widespread use: > > =E2=80=A2 Simply loading a package should not change Emacs=E2=80=99s > editing behavior. Include a command or commands > to enable and disable the feature, or to invoke it. > > This convention is mandatory for any file that > includes custom definitions. If fixing such a file > to follow this convention requires an incompatible > change, go ahead and make the incompatible change; > don=E2=80=99t postpone it. > > https://www.gnu.org/software/emacs/manual/html_node/elisp/Coding-Conventi= ons.html > > These conventions apply pretty strictly to code > to be included in Emacs. And they are offered > as guidance for 3rd-party (i.e., user) code. > > --=20 Best wishes H. Dieter Wilhelm Zwingenberg, Germany