Philip Kaludercic
1b02bf1214
Ensure package contents for package suggestions
...
* lisp/emacs-lisp/package.el (package--autosugest-prompt): Query
archives if the package being described is not listed in
package-archive-contents'.
2026-02-12 18:24:47 +01: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
0afb026a99
Generalize 'scrape-elpa--safe-evil'
...
* admin/scrape-elpa.el (scrape-elpa--safe-eval): Extend support
from just 'cons' and 'concat' to any side-effect-free function.
2026-02-11 20:47:26 +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
ae5ee77f48
Enable fewer minor modes in package suggestion buffers
...
* lisp/emacs-lisp/package.el (package--autosugest-prompt): Do
not enable 'enriched-mode' and 'variable-pitch-mode'.
2026-02-09 21:22:37 +01:00
Philip Kaludercic
6dea509613
; Remove test code from previous commit
2026-02-09 21:17:19 +01:00
Philip Kaludercic
4a3640c3f8
Detect more package suggestions
...
* admin/scrape-elpa.el (scrape-elpa--safe-eval): Add new
function.
(scrape-elpa): Evaluate part of the matched expression to catch
more entries.
* etc/package-autosuggest.eld: Update database.
2026-02-09 21:12:21 +01:00
Philip Kaludercic
1aabe135e6
; Fix partial revert from c31e7ef4d5
...
* 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 that were kept in package-activate.el.
2026-02-07 11:02:19 +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
6314c08c6b
Link to "Major Mode" node in manual when suggesting packges
...
* lisp/emacs-lisp/package.el (package--autosugest-prompt): Add
another button.
2026-02-06 22:37:06 +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
Philip Kaludercic
ebe3838011
Merge remote-tracking branch 'origin/master' into feature/package-autosuggest
2026-02-04 17:36:37 +01:00
Philip Kaludercic
0277fd791b
Rephrase package suggestion message
...
* lisp/emacs-lisp/package.el (package--autosugest-prompt):
Follow Richard's suggestion from
https://mail.gnu.org/archive/html/emacs-devel/2026-02/msg00040.html .
2026-02-04 17:36:32 +01:00
Stefan Monnier
3ea1010a6b
* lisp/comint.el (comint-redirect-hook): Defvar (bug#80313)
2026-02-04 11:14:10 -05:00
Stefan Monnier
f38b0872f0
(yaml-ts-mode-yamllint-options): Use a list of strings
...
It is both simpler to code and marginally more general (allows
spaces in arguments).
* lisp/textmodes/yaml-ts-mode.el (yaml-ts-mode-yamllint-options): Use
a list.
(yaml-ts-mode-flymake): Adjust accordingly.
2026-02-04 11:03:57 -05:00
Stefan Monnier
f73cb8fba2
shortdoc: Don't burp on missing docstrings
...
* lisp/emacs-lisp/shortdoc.el (shortdoc--display-function): Report
missing docstrings more cleanly than "Wrong type argument: stringp, nil".
2026-02-04 10:59:23 -05:00
Mattias Engdegård
1396b373ff
ediff-mult-tests.el: remove temporary directory after test
...
* test/lisp/vc/ediff-mult-tests.el (ediff-test-bug3348): Clean up.
2026-02-04 14:33:36 +01:00
Mattias Engdegård
6dc2336a4f
Make vc-git-tests work with git < 2.46
...
* test/lisp/vc/vc-git-tests.el (vc-git-test-branch-remotes):
The 'unset' subcommand to 'git config' was introduced in git 2.46; use
the '--unset' option instead.
2026-02-04 13:26:08 +01:00
Philip Kaludercic
4ab81f82bf
Do not compile database into package.el
...
* lisp/emacs-lisp/package.el (package--autosuggest-database):
Add new variable.
(package--autosuggest-find-candidates): Load the contents of the
database from 'data-directory' if necessary, and store them in
the new variable.
2026-02-03 17:25:57 +01:00
Dmitry Gutov
083f89f858
Fix [More] buttons in tutorial and other buttons in Semantic
...
* lisp/help-mode.el (help-setup-xref): Update docstring (bug#80276).
* etc/NEWS: Add description for the earlier change in help-setup-xref.
* lisp/tutorial.el (tutorial--describe-nonstandard-key)
(tutorial--detailed-help): Use 'with-help-window', call it after.
* lisp/cedet/semantic/util.el (semantic-describe-buffer): Same.
* lisp/cedet/semantic/decorate/include.el
(semantic-decoration-include-describe)
(semantic-decoration-unknown-include-describe)
(semantic-decoration-fileless-include-describe)
(semantic-decoration-unparsed-include-describe)
(semantic-decoration-all-include-summary): Same.
2026-02-03 05:14:59 +02:00
Stefan Monnier
53bc4a2cb6
isearch.el: Remove autoloads hacks
...
* lisp/isearch.el (char-fold-to-regexp): Remove redundant autoload.
(emoji--read-emoji): Use `declare-function` rather than autoload.
2026-02-02 17:42:40 -05:00
Eli Zaretskii
16b10d7617
; Improve indexing in the ELisp manual
...
* doc/lispref/functions.texi (Function Names):
* doc/lispref/variables.texi (Tips for Defining): Improve
indexing.
2026-02-02 15:24:21 +02:00
Sean Whitton
a269bcb86b
diff-mode-shared-map: Bind '@' to diff-revert-and-kill-hunk
...
* lisp/vc/diff-mode.el (diff-mode-shared-map): Bind '@' to
diff-revert-and-kill-hunk.
2026-02-02 12:57:12 +00:00
Stephen Berman
89bc088a8d
; Fix last change to iroquoian.el
...
* lisp/leim/quail/iroquoian.el
(iroquoian-haudenosaunee-exception-alist): Delete mistaken
apostrophe in doc string.
2026-02-02 00:27:03 +01:00
Philip Kaludercic
2cde30aa1b
Merge remote-tracking branch 'origin/master' into feature/package-autosuggest
2026-02-01 21:01:40 +01:00
Philip Kaludercic
850382c7d6
Adjust formatting of package suggestion buffer
...
* lisp/emacs-lisp/package.el (package--autosugest-prompt): Move
'describe-package' link into the parentheses after the "Install
..." button.
2026-02-01 20:58:17 +01:00
Philip Kaludercic
1b8eaed723
; Use right variable name in 'pcase'
...
* lisp/emacs-lisp/package.el (package--suggestion-applies-p): Do
not refer to the interpreter regexp as "magic".
2026-02-01 19:44:06 +01:00
Philip Kaludercic
0054a5ff0c
Clarify that package suggestions have to be confirmed
...
* lisp/emacs-lisp/package.el (package--autosugest-prompt):
Adjust message to indicate that no changes have yet occurred.
Co-Developed-By: Jens Schmidt <jschmidt4gnu@vodafonemail.de>
2026-02-01 19:43:26 +01:00
Philip Kaludercic
9b1935dc2e
Explain why package suggestions match
...
* lisp/emacs-lisp/package.el (package--autosugest-prompt): Go
through all suggestions for the same package and mention why a
package suggestion was relevant.
2026-02-01 19:41:04 +01:00
Mattias Engdegård
8f5badc26b
* etc/symbol-releases.eld: 'any' and 'all' added in Emacs 31
2026-02-01 18:20:56 +01:00
Eli Zaretskii
2652e11930
Minor improvements in vertical cusror motion
...
* src/xdisp.c (move_it_vertically_backward): Zero out cached value
of line height, to avoid using stale and incorrect values.
(try_window_reusing_current_matrix): Fix conditions for changes in
tab-line height.
Reported by Michael Heerdegen <michael_heerdegen@mailbox.org> in
https://lists.gnu.org/archive/html/help-gnu-emacs/2026-01/msg00163.html
This improves the scrolling a little bit, but doesn't solve the
problem entirely.
2026-02-01 17:26:56 +02:00
Philip Kaludercic
24f45c85ea
Enable 'package-autosuggest-mode' by default
...
* lisp/emacs-lisp/package.el (package-autosuggest-mode): Set
:init-value.
2026-02-01 16:14:24 +01:00
Philip Kaludercic
a234b90048
; Close package suggestion window after installing package
...
* lisp/emacs-lisp/package.el (package--autosuggest-after-change-mode):
Call 'quit-window' after installing package.
2026-02-01 16:13:31 +01:00
Philip Kaludercic
b6b599aa83
Add more elaborate prompt when suggesting packages
...
* lisp/emacs-lisp/package.el (package--autosugest-prompt): Add
new function.
(package--autosuggest-after-change-mode, package-autosuggest):
Call new function.
2026-02-01 15:14:10 +01:00
Philip Kaludercic
ad89a3e8d6
Display hint for package suggestions after mode name
...
* lisp/emacs-lisp/package.el (package--autosugest-line-format):
Insert a space before the mode-line hint.
(package--autosuggest-after-change-mode): Add hint to 'mode-name'.
2026-02-01 14:20:01 +01:00
Philip Kaludercic
d13769955e
Inline database of package suggestions
...
* lisp/emacs-lisp/package.el (package--autosuggest-database):
Remove unnecessary variable.
(package--autosuggest-find-candidates): Load the database at
compile time.
(package--autosuggest-suggested, package--suggestion-applies-p)
(package--autosuggest-install-and-enable): Update documentation.
2026-02-01 14:14:17 +01:00
Mattias Engdegård
ac07913bd8
; * lisp/progmodes/elisp-mode.el: slightly better rescanning point
...
Suggested by Stefan Monnier.
2026-02-01 13:25:28 +01:00
Eli Zaretskii
967294d2cb
Fix desktop saving and restoring in daemon sessions
...
* lisp/desktop.el (desktop--check-dont-save): Don't save daemon's
initial frame.
* lisp/frameset.el (frameset-restore): Don't try deleting the
daemon's initial frame. (Bug#80294)
2026-02-01 08:49:57 +02:00
Mattias Engdegård
87dfb040b0
Don't produce zero-length lazy strings
...
* lisp/emacs-lisp/bytecomp.el (byte-compile--docstring):
There is no gain from making an empty string lazy.
(It also contributed to bug#80292.)
2026-01-31 18:58:29 +01:00
Mattias Engdegård
385bcc6117
Fix lazy doc string fontify bug in elisp-byte-code-mode (bug#80292)
...
* lisp/progmodes/elisp-mode.el (elisp-byte-code-syntax-propertize):
Reset point to just after the start of the previous match so that we
don't skip past the end of the lazy string, which can happen if it's
zero-length; that could lead to an infinite loop.
2026-01-31 18:58:29 +01:00
Jens Schmidt
e08efecd96
Improve documentation of 'seq-difference'
...
* doc/lispref/sequences.texi (Sequence Functions):
* lisp/emacs-lisp/seq.el (seq-difference): Clarify the documentation of
'seq-difference'. (Bug#80257)
2026-01-31 16:08:52 +02:00
Michael Albinus
346f1bda6b
Improve connection-local variables documentation.
...
* doc/emacs/custom.texi (Connection Variables):
* doc/lispref/variables.texi (Applying Connection Local Variables):
Improve documentation.
2026-01-31 13:37:56 +01:00
Eli Zaretskii
b75bfa219e
; * admin/authors.el (authors-aliases): Add Boris Buliga.
2026-01-31 13:13:57 +02:00
Eli Zaretskii
f7edfdcfd4
; Fix documentation of 'help-fns-describe-function-functions'
...
* lisp/help-fns.el (help-fns-describe-function-functions): Doc fix
(bug#80291).
2026-01-31 12:59:17 +02:00