all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* gnu-elpa package need customization not to nag all time
@ 2020-12-06 19:46 Jean Louis
  2020-12-06 22:32 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Jean Louis @ 2020-12-06 19:46 UTC (permalink / raw)
  To: Help GNU Emacs; +Cc: Stefan Monnier

Hello Stefan,

I think that gnu-elpa package that asks users to install some
complimentary packages should not do that by default. Let users decide
to activate such nagging or warn them.

I said already no, then even in Org file it asks me to install
sql-indent. I do not need SQL indent and never needed it. This gives
you user experience for your further design of the package. I just
found it is this package asking me.

(defun gnu-elpa--perform-autoload ()
  "Prompt to install the package that provides the currently autoloaded function.
The relevant function is found by walking the stack until we find a function.
Presumes we're in the process of calling an autoloaded function that's not
yet loaded."
  (let* ((f (gnu-elpa--autoloaded-function))
         (pkg (gnu-elpa--package f)))
    (unless (yes-or-no-p (format "Install package %s? " pkg))
      (error "Abort!"))



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-12-06 22:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-06 19:46 gnu-elpa package need customization not to nag all time Jean Louis
2020-12-06 22:32 ` Stefan Monnier
2020-12-06 22:39   ` Jean Louis

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.