Commit graph

20 commits

Author SHA1 Message Date
Sean Whitton
69c50dcb47 ; package-activate-all: Drop requiring package now not preloaded. 2026-05-08 12:27:24 +01:00
Sean Whitton
0c51be894f Unpreload package-activate-all
See <https://debbugs.gnu.org/80079#49> for my reasoning.

* lisp/emacs-lisp/package-activate.el (package-activate-all):
Unpreload.
2026-05-07 14:12:25 +01:00
Philip Kaludercic
7c22a7d312
Do not initialize Info during package activation
* lisp/emacs-lisp/package-activate.el (package--add-info-node):
Use 'Info-default-directory-list' if Info has not been
initialized, otherwise fall back to 'Info-directory-list'
without calling 'info-initialize' beforehand, since the function
initializes 'Info-directory-list'.  (Bug#80495)
2026-03-11 22:12:55 +01:00
Philip Kaludercic
49c8dd44af
; Remove unnecessary 'inline' require from package.el
* lisp/emacs-lisp/package-activate.el (package-vc-p): Define
using a regular 'defun'.
2026-02-14 16:29:33 +01:00
Eli Zaretskii
187867f0a9 ; 'package--autosuggest-after-change-mode': Improve help-echo. 2026-02-14 08:52:00 +02:00
Philip Kaludercic
d092c8f63a
Fix 'help-echo' for package suggestions in mode line
* lisp/emacs-lisp/package-activate.el (package--autosugest-line-format):
Remove variable and function.
(package--autosuggest-after-change-mode): Inject upgrade prompt
using ':propertize'.  We can drop the condition testing if there
are any suggestions, as installing the package changes the major
mode and thus also 'mode-name'.
2026-02-13 22:01:35 +01:00
Eli Zaretskii
48525f500e ; Improve documentation of 'package-autosuggest-mode'
* lisp/emacs-lisp/package.el (package--autosuggest-install-and-enable)
(package--autosugest-prompt, package-autosuggest): Doc fixes.
* lisp/emacs-lisp/package-activate.el (package-autosuggest-style)
(package-autosuggest-once, package-autosuggest-mode)
(package--suggestion-applies-p)
(package--autosuggest-find-candidates)
(package--autosugest-line-format)
(package--autosuggest-after-change-mode): Fix doc strings and add
:version tags.

* etc/NEWS (bindings):
* doc/emacs/package.texi (Package Installation): Improve wording,
markup and indexing.
2026-02-13 09:39:02 +02:00
Philip Kaludercic
02af0e93a0
; Reset :initialize for 'package-autosuggest-mode'
* lisp/emacs-lisp/package-activate.el (package-autosuggest-mode):
We don't need a special initializer for the minor mode, if we
are not enabling the option OOTB.
2026-02-12 18:20:15 +01:00
Philip Kaludercic
92f1d0b5d5
Simplify mode-line prompt for package suggestions
* lisp/emacs-lisp/package-activate.el (package--autosugest-line-format):
Just indicate that packages can be installed, don't mention which.
2026-02-12 18:19:32 +01:00
Philip Kaludercic
5bc7185afa
Disable 'package-autosuggest-mode' by default
* lisp/emacs-lisp/package-activate.el (package-autosuggest-mode):
Do not set the :init-value when declaring the minor mode.
2026-02-11 20:44:20 +01:00
Philip Kaludercic
c31e7ef4d5
Revert "Enable 'package-autosuggest-mode' at startup"
This reverts commit ae67318362.
2026-02-07 10:39:18 +01:00
Philip Kaludercic
bc413b3507
Use 'buffer-file-name' when matching 'auto-mode-alist'
* lisp/emacs-lisp/package-activate.el (package--suggestion-applies-p):
The file name associated with a buffer is a better match for
entries in 'auto-mode-alist', so we use that instead of the
buffer name that can have additional noise to make the name unique.
2026-02-06 22:50:49 +01:00
Philip Kaludercic
f561eed4d6
Add separate user option to prevent repetitive package suggestions
* lisp/emacs-lisp/package-activate.el
(package-autosuggest-style): Remove option 'once' and defer to
new user option.
(package-autosuggest-once): Add new option.
(package--suggestion-applies-p)
(package--autosuggest-after-change-mode): Respect new user option.
2026-02-06 22:31:30 +01:00
Philip Kaludercic
5808909d1e
; Properly initialize 'package-autosuggest-mode'
* lisp/emacs-lisp/package-activate.el (package-autosuggest-mode):
Add :initialize property to minor mode definition as recommended
in (elisp) Variable Definitions.
2026-02-06 22:24:09 +01:00
Philip Kaludercic
f64430fbad
; Fix typo
* lisp/emacs-lisp/package-activate.el (package--autosugest-line-format):
Use actually existing face symbol.
2026-02-06 22:15:49 +01:00
Philip Kaludercic
4a1e4a6edc
; * lisp/emacs-lisp/package-activate.el: Add note on preloading 2026-02-06 22:15:06 +01:00
Philip Kaludercic
ae67318362
Enable 'package-autosuggest-mode' at startup
* lisp/emacs-lisp/package.el (package-autosuggest-style)
(package-autosuggest-mode, package--autosuggest-suggested)
(package--suggestion-applies-p, package--autosuggest-database)
(package--autosuggest-find-candidates)
(package--autosugest-line-format, package-autosuggest-face)
(package--autosuggest-after-change-mode, package-autosuggest):
Remove definitions needed to recognise suggestions from here.

* lisp/emacs-lisp/package-activate.el (package-autosuggest-style)
(package--autosuggest-database, package--autosuggest-suggested)
(package--suggestion-applies-p)
(package--autosuggest-find-candidates)
(package--autosugest-line-format, package-autosuggest)
(package--autosuggest-after-change-mode)
(package-autosuggest-mode): Move definitions from package.el.

(package--activated, package-installed-p, package-get-version)
(package-activate-all, package-activate-all): Remove unnecessary
autoloads.

* lisp/loadup.el: Load "package-activate.el".
2026-02-06 21:15:29 +01:00
Stefan Monnier
a9bf57155b package.el: Fix bug#80172
* lisp/emacs-lisp/package-activate.el: Move defvar of
`Info-directory-list` to when we know it should exist.

* lisp/emacs-lisp/package.el (Info-directory-list): Defvar before we
`let-bind it.
2026-01-13 15:23:31 -05:00
Philip Kaludercic
8575c31517
Remove definitions not relevant to startup from package-activate
(Bug#80079)
2026-01-09 20:07:11 +01:00
Philip Kaludercic
7eabec8c5d
; Prepare extraction of package.el's activation core
This change just renames package.el to package-core.el to
preserve the file history.  The original package.el will be
preserved in a seperate branch and merged back together.

(Bug#80079)
2026-01-09 19:46:49 +01:00
Renamed from lisp/emacs-lisp/package.el (Browse further)