all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Ihor Radchenko <yantar92@posteo.net>,
	"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Cc: Max Nikulin <manikulin@gmail.com>
Subject: RE: [External] : [FR] Provide a way to activate packages automatically for side effect
Date: Wed, 1 May 2024 14:41:39 +0000	[thread overview]
Message-ID: <SJ0PR10MB5488E4DAD8936B58A4FD64CEF3192@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <87zft9esva.fsf@localhost>

> For example, when a package defines a new major mode, it is common to
> modify `auto-mode-alist' by merely having such package installed.

That's common?  It shouldn't be.  Loading/installing
code shouldn't do that, even for a "new major mode".

> This is technically a change in Emacs's editing behavior.

Not just technically - really, practically.

> Another example is when a package adds new features to an existing
> functionality, like ert.el where mere (require 'ert) changes
> fontification in emacs-lisp-mode buffers:
> (add-hook 'emacs-lisp-mode-hook #'ert--activate-font-lock-keywords)

Ditto.

> If one follows "Lisp Coding Conventions" explicitly, the above examples
> can be seen as breaking the conventions.

Not just "can be seen as".  They break the conventions.

> On the other hand, it is very clear that autoloading a major mode is
> justified because otherwise why would user install the relevant package?

Not for the package to guess why.  Up to the user.

> Similar argument 

What's the argument?  Is it just "otherwise why would
a user install..."?  That's not an argument.

> can be made for changing the fontification rules in
> ert.el - if ert library is loaded _by the user_, it is very clear that
> the erc.el features, including fontification, are going to be useful.

It's not clear that that's clear to the user, or that
(more importantly) the user wants those changes made.
___

Just one opinion.  No opinion about whether some more
lax new kind of load function might be useful.

  reply	other threads:[~2024-05-01 14:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-01 10:20 [FR] Provide a way to activate packages automatically for side effect Ihor Radchenko
2024-05-01 14:41 ` Drew Adams [this message]
2024-05-01 16:11   ` [External] : " Ihor Radchenko
2024-05-01 19:07     ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SJ0PR10MB5488E4DAD8936B58A4FD64CEF3192@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=manikulin@gmail.com \
    --cc=yantar92@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.