]> git.eshelyaron.com Git - emacs.git/log
emacs.git
21 months agoImprove some behavior when the X server does not trust Emacs
Po Lu [Fri, 9 Dec 2022 10:28:42 +0000 (18:28 +0800)]
Improve some behavior when the X server does not trust Emacs

* src/xterm.c (x_dnd_begin_drag_and_drop): Display error when
Emacs is untrusted instead of hanging indefinitely.
(x_focus_frame): Simply return instead of wasting time when
Emacs is untrusted.

21 months ago; * src/xterm.h: Fix minor copyedits
Po Lu [Fri, 9 Dec 2022 10:22:41 +0000 (18:22 +0800)]
; * src/xterm.h: Fix minor copyedits

21 months agoMake eshell-read-aliases-list an interactive command
Sean Whitton [Fri, 9 Dec 2022 05:54:58 +0000 (22:54 -0700)]
Make eshell-read-aliases-list an interactive command

* lisp/eshell/em-alias.el (eshell-read-aliases-list): Add interactive
specification.  Note in docstring that the command is useful after
manually editing eshell-aliases-file.
* etc/NEWS:
* doc/misc/eshell.texi (Aliases): Document the change.

21 months agoMerge from origin/emacs-29
Stefan Kangas [Fri, 9 Dec 2022 05:30:26 +0000 (06:30 +0100)]
Merge from origin/emacs-29

5b640f0abd3 Improve :delight keyword example in use-package manual
c417fe4df3b ; Refer to the manual in use-package docstring
0b3116971af Clarify :after keyword in use-package docstring
a17a6036dd4 Add conditional loading examples to use-package manual

21 months agoImprove :delight keyword example in use-package manual
Stefan Kangas [Fri, 9 Dec 2022 05:27:33 +0000 (06:27 +0100)]
Improve :delight keyword example in use-package manual

* use-package.texi (Diminish, Delight): Clarify what happens if the
pre-requisite packages are not installed.  Change an example with
performance issues to one without any.

Resolves https://github.com/jwiegley/use-package/issues/835

21 months ago; Refer to the manual in use-package docstring
Stefan Kangas [Fri, 9 Dec 2022 04:12:51 +0000 (05:12 +0100)]
; Refer to the manual in use-package docstring

* lisp/use-package/use-package-core.el (use-package): Refer to manual.

21 months agoClarify :after keyword in use-package docstring
Stefan Kangas [Fri, 9 Dec 2022 04:12:03 +0000 (05:12 +0100)]
Clarify :after keyword in use-package docstring

* lisp/use-package/use-package-core.el (use-package): Clarify the
effect of :after in docstring.

Resolves https://github.com/jwiegley/use-package/issues/825

21 months agoAdd conditional loading examples to use-package manual
Stefan Kangas [Fri, 9 Dec 2022 03:15:32 +0000 (04:15 +0100)]
Add conditional loading examples to use-package manual

* doc/misc/use-package.texi (Conditional loading): Expand section with
examples.

Resolves https://github.com/jwiegley/use-package/issues/693

21 months agoMerge from origin/emacs-29
Po Lu [Fri, 9 Dec 2022 01:31:37 +0000 (09:31 +0800)]
Merge from origin/emacs-29

67ef92fb0e9 Revert "; * src/emacs.c (main): Improvements to last chan...
6ccdda3df2e server-eval-at: Don't call server--file-name
90895773293 ; Improve use-package Commentary sections
15dda8cd5b3 ; Don't say to require bind-key in use-package manual
26267040549 ; Normalize GPLv3 license statements in new files

21 months agoRevert "; * src/emacs.c (main): Improvements to last change."
Po Lu [Fri, 9 Dec 2022 01:25:42 +0000 (09:25 +0800)]
Revert "; * src/emacs.c (main): Improvements to last change."

This reverts commit c774e83e36784ab96539c5c083b3bcb6d0158a8c.  It
causes crashes on GNU/Linux systems using libgmp, as there a shared
library initializer is used to set the malloc functions on startup, so
they are not dumped.

21 months ago; Reorganize the conditionals in 'eshell-parse-backslash' to reduce repetition
Jim Porter [Wed, 7 Dec 2022 04:06:42 +0000 (20:06 -0800)]
; Reorganize the conditionals in 'eshell-parse-backslash' to reduce repetition

* lisp/eshell/esh-arg.el (eshell-parse-backslash): Reorganize.

21 months agoserver-eval-at: Don't call server--file-name
Sean Whitton [Thu, 8 Dec 2022 23:29:44 +0000 (16:29 -0700)]
server-eval-at: Don't call server--file-name

* lisp/server.el (server-eval-at): Revert to old code for determining
the server file.  The recent change to call server--file-name meant
that the SERVER argument to server-eval-at was ignored.

21 months ago; Improve use-package Commentary sections
Stefan Kangas [Thu, 8 Dec 2022 23:24:15 +0000 (00:24 +0100)]
; Improve use-package Commentary sections

* lisp/use-package/bind-key.el:
* lisp/use-package/use-package-bind-key.el:
* lisp/use-package/use-package-core.el:
* lisp/use-package/use-package-ensure-system-package.el:
* lisp/use-package/use-package-ensure.el:
* lisp/use-package/use-package.el: Improve Commentary sections.

21 months ago; Don't say to require bind-key in use-package manual
Stefan Kangas [Thu, 8 Dec 2022 23:18:49 +0000 (00:18 +0100)]
; Don't say to require bind-key in use-package manual

* doc/misc/use-package.texi (Getting Started): Remove instruction to
require 'bind-key'; it is already required by 'use-package' and the
entry points are autoloaded.

21 months ago; Normalize GPLv3 license statements in new files
Stefan Kangas [Thu, 8 Dec 2022 22:56:24 +0000 (23:56 +0100)]
; Normalize GPLv3 license statements in new files

21 months agoFix namespacing issues in bind-key.el
Stefan Kangas [Thu, 8 Dec 2022 22:47:44 +0000 (23:47 +0100)]
Fix namespacing issues in bind-key.el

* lisp/use-package/bind-key.el (get-binding-description)
(compare-keybindings): Rename from this...
(bind-key--get-binding-description)
(bind-key--compare-keybindings): ...to this.

21 months ago; * etc/NEWS.29: Add missing entry for 'external-completion-table'.
Eli Zaretskii [Thu, 8 Dec 2022 18:02:07 +0000 (20:02 +0200)]
; * etc/NEWS.29: Add missing entry for 'external-completion-table'.

21 months agoMerge from origin/emacs-29
Eli Zaretskii [Thu, 8 Dec 2022 17:52:37 +0000 (12:52 -0500)]
Merge from origin/emacs-29

e950f5a663 Merge branch 'feature/use-package' into emacs-29
5bcd0cee0f * etc/USE-PACKAGE-NEWS: Delete file.
6bb4267a54 * admin/git-bisect-start: Prune use-package merge commits.
b9fa81514f ; Minor doc fixes in bind-key.el
15fb115551 Update use-package defgroups
4be96c9dcb Drop key-chord.el support from use-package
9c21eae60c ; lisp/progmodes/java-ts-mode.el: Fix more typos.
2659311e06 ; * lisp/progmodes/java-ts-mode.el (java-ts-mode--keywords...
b4a3724d3b Remove unneeded (require 'edebug) from which-func.el
5899cac111 Change use-package custom :group to `initialization`
8fb2afe051 ; Fix typos
a37df90276 Treat escaped newlines in Eshell as the empty string
d3e9bd3b57 ; Document use-package-reset-statistics
c65e087068 ; use-package: Improve :ensure-system-package docstrings
141fe8b827 use-package: Improve :mode keyword documentation
888558ec42 Improve bind-keys* and override-global-mode docstrings
c774e83e36 ; * src/emacs.c (main): Improvements to last change.
537f11f8cd ; * doc/misc/use-package.texi: Improve indexing.
98e54f597e Add new use-package manual
01bfbd186a Fix use-package tests
97c8a58787 * doc/misc/Makefile.in (INFO_COMMON): Add use-package.
500c459eff ; * etc/NEWS: Mention use-package.
4a1e9d61b5 ; Merge from https://github.com/jwiegley/use-package
58cc931e92 Merge pull request from skangas/revert-for-copyright
c74b5c16f8 Merge pull request from skangas/revert-for-copyright2
ebbd98edb3 Revert "Add: 'local' keyword"
8296164eab Remove tests lacking a copyright assignment for now
a6cbfdd8f1 Merge pull request from skangas/package-requires
efae6048dd Add package keyword from finder-known-keywords
06f92d1cc0 Fix Package-Requires for bind-{chord,key}.el
e42c8479ec Merge pull request from skangas/dir-locals
7b689942f0 Merge pull request from skangas/fix-headers
30fa366737 Add .dir-locals.el
79c2c3a3ad Delete redundant headers
2399d0d5ce Normalize GPLv3 license statements
7087a97a24 Merge pull request from jwiegley/revert-1019-johnw/multi-k...
3e81af80a2 Revert "Allow multiple keymaps in :map argument"
f4ee1c3839 Merge pull request from jwiegley/johnw/multi-keymap
49fffe7cf4 Merge remote-tracking branch 'origin/master' into pr-830
cf8ab8b52e Merge pull request from skangas/texinfo-wip
2efc869866 Merge branch 'master' into texinfo-wip
9b476ae71c Merge pull request from skangas/gnu-elpa
8cf8631c69 Fix makeinfo warnings
a6b1b62763 Use two spaces to end sentences
6a26c55d70 Recommend GNU ELPA over MELPA
4e8b72efc8 manual: Regenerate texi file
ae301ad36d Merge pull request from skangas/checkdoc
5dad5ff0fe Merge pull request from skangas/ci
ff30d22909 Various checkdoc fixes
971634e3f9 Merge pull request from bhankas/master
43254ae62f Fix building on Emacs 24.3
45e6ee1371 Fix tests on Emacs 26 or older
7122ac5397 Bump version to 2.4.4
6b25a41bc6 Merge pull request from andreyorst/face-spec-set-third-arg...
76a5ce5d86 Allow passing the SPEC-TYPE argument via :custom-face
67d7d1fda0 Merge pull request from bhankas/master
370890e518 Bump version to 2.4.3
2ee9b31ca4 bind-key.el: Bump version for ELPA
407b1bf4f0 Merge pull request from andreyorst/face-spec-set
0be7f5dd53 Merge pull request from bhankas/master
abd655c99e Update version to 2.4.2
9188b3edf1 Merge pull request from bhankas/master
0fafd98513 Update copyright for submission to ELPA
6b344a9197 Use face-spec-set instead of custom-set-faces
c0338e06cd Merge pull request from conao3/add-commands-keyword
ec96b47664 bind-keys supports passing a list of keymaps as :map argument
daa124e1cc Fix bind-chords docs: :map argument may be a list of keymaps
4107bbfbdb Merge pull request from sdwolfz/native-compiler-warning
1494f65f61 Fix emacs native compilation warning for bind-key
c12deb31fe Merge pull request from CeleritasCelery/master
d4aeda77a9 Merge pull request from sdwolfz/native-compiler-warning
3feedce08d Fix emacs native compilation warning
6c2fdaffd9 Revert "Remove use-package-font-lock-keywords"
09e837dfae Merge pull request from belak/remove-extra-font-lock-keywords
89d6e7a5ec Merge pull request from realcomplex/override-global-mode-fix
a05b9e28ed Go back to making `override-global-mode` non-global
85c1287c26 Make sure that bind-key's `override-global-mode` is initia...
3dd5bee4aa Merge pull request from tarsiiformes/quote-quote
53c1889342 Quote single quotes in docstrings or use different quoting
e8626100f3 Merge pull request from tarsiiformes/cleanup-manual
835fdb16be manual: Regenerate texi file
0dc78ef4c8 Merge pull request from conao3/fix-declare-style
2967849846 Merge pull request from waymondo/ensure-system-packages-us...
28e7b96fcf Merge pull request from waymondo/use-package-hook-handler-...
b1fbfe66eb Merge pull request from waymondo/use-package-chords-autolo...
cf3bfecced Merge pull request from matzebond/master
a0ba027ee5 Merge pull request from wcy123/master
ca426a7732 Merge pull request from phst/lex
f270623768 Merge pull request from phst/flet
0503611b71 Merge pull request from conao3/add-custom-face-description
e9b297a9fa Merge pull request from iaeerfung/master
6484e5fdfe Merge pull request from wyuenho/set-default-use-package-en...
a7259411f6 Merge pull request from wyuenho/statistics-sorting
de0c8c36c7 Merge pull request from Hugo-Heagren/bind-keys-repeat-map
015c921a2e Merge pull request from danielpza/add-update-custom-package
b143663f12 Merge pull request from tarsiiformes/silencio
debab131f0 Merge pull request from DamienCassou/update-texi
22de8991c1 Merge pull request from skangas/fix-typo
620fe443c2 Add: 'local' keyword
4004dde6ea Avoid positional arguments to define-minor-mode
cb85f9c274 Fix typo in use-package docstring
30b35d6d62 Update use-package.texi
9be2580f5f optimization: constand folding for read-kbd-macro
1143f14d65 bind-keys-form: error for repeat sub-keywords without :rep...
c4bd2aa3b8 bind-key-form: allow :continue keyword inside repeat map
5ef327ce9f bind-key-form: allow :exit keyword inside repeat map
2203246454 bind-keys-form: new keyword :repeat-map, for defining repe...
ee292b80be Fix tests and documentation for hook
24c50da3b2 Auto detect mode suffix in hook keyword
1343783532 feat: add update custom packages command
f3ff593a84 Properly sort use-package-statistics-report
c09cb1301b Fix void-variable use-package-enable-imenu-support
11b2184c8d Remove uses of deprecated ‘flet’ macro
a35b924054 add testcase
dbfb3484cd add autoload keyword
40d2541331 fix docstring. was: invalid function name
ffa5f0397a Merge pull request from minad/improved-unbind
5ca7bc321d unbind-key: Ensure that keys are removed from the keymap
ec750952f4 bind-key: Use new symbols for kmapvar
a248658910 Merge pull request from tzz/tzz/use-package-use-theme
2b9536f242 Add use-package-use-theme and avoid missing theme errors
c425e67a19 Merge pull request from kljohann/custom-use-single-let
e3938e7b26 Use a single let binding when expanding consecutive :custo...
e4daf0cd42 Merge pull request from tzz/tzz/remove-use-package-from-cu...
6b7ab46e57 Remove use-package theme from global list of custom-enable...
3ffb662dcc Merge pull request from tzz/tzz/set-comment-and-synthetic-...
a3c310c11a Create new "use-package" themse and use it for :custom wit...
5ceb51ae19 set property theme-value to avoid saving variable
3e24a7363b Revert "use-package-core.el: use the Emacs set-default fun...
8ef7978028 set saved-variable-comment from :custom
99643f8873 Update version to 2.4.1
215dd35e49 add multiple and eval :custom-face usage
4938167bff Remove use-package-font-lock-keywords
10c6400d34 Merge pull request from wyuenho/patch-1
5bd7e0ca7d Migrate remaining files to lexical binding
1f54de9210 Merge branch 'master' into patch-1
c358eedcf9 Merge pull request from tzz/custom-set-default
13b1e202bf Update the documentation for :custom as per
d3f847eaee Fix broken test due to
2ca2212f73 better tests
de49954965 add test for
950068809b Support keymap symbol in bind-key
3e96664ffe Merge pull request from tzz/custom-set-default
8c31c57106 use-package-core.el: use the Emacs set-default function to...
4e72885f85 Merge pull request from jjlee/call-hooks-even-if-no-config
203d15e34e Merge branch 'master' into call-hooks-even-if-no-config
218687d897 Merge pull request from nahuel/patch-1
44c837879e typo, should be a vector, not a bytecode object
0ec4660f74 Add special value back again, in case needed for backwards...
f30d5761af Even when there's no :config, run any pre/post config hooks
91e5d275af Merge pull request from jwiegley/johnw/clarify
8b8522650e Clarify the documentation for :after
8e81459dad Merge pull request from DamienCassou/typos
3a58f53b14 Fix typos
0456f878fc Merge pull request from tarsiiformes/typos
8c7fa11a3f Fix typos
165f2dd968 Use `require', not `load', when byte-compiling ()
20415fb9be Update tests
4c8d5f0b21 Switch from `require' to `load' + `featurep'
27fd32c47b Use `require', not `load', when byte-compiling
0d720a0f61 update bind-chords to use of eval-after-load when maps dec...
8f1a345b5b rename function
8ec41be418 extract use-package-hook-handler-flatten-mode-symbols func...
4149ec6cfa use `use-package-as-one` for normalizing `:ensure-system-p...
97f0287e19 Make custom-face evaluate elisp. ()
c297dfdd20 Make custom-face evaluate elisp
8fe0ac2983 * use-package-core.el (use-package): fix declare style
3e36cbfb6d Merge pull request from stribb/master
95f24f9628 Add a line of documentation for (use-pacakage ... :hook)
7e40a9c424 Merge pull request from conao3/fix_default_value
77ad44639f Merge pull request from tarsiiformes/silencio
fc6fef6869 Silence byte-compiler on Emacs 25
3f96971feb Merge pull request from jwiegley/use-package-chords-suppre...
63886cb15f Merge pull request from lrochfort/ensure-system-package_us...
ca39ed155f [] Install system packages using system-packages-install
607879e647 prefix argument with _ to suppress Unused lexical argument...
4a34b41f96 Merge pull request from justbur/autoload-keymap
c169644637 Merge pull request from jwiegley/ensure-system-package-fil...
2a8c2ffea2 allow :ensure-system-package to check the presence of file...
0a4d082054 Merge pull request from killdash9/patch-1
38dcba6872 Place :chords at beginning of use-package-keywords
1fb4198933 Merge pull request from killdash9/patch-1
5fb369c968 Merge branch 'master' into patch-1
87e26db44f Merge pull request from jabranham/enable-lexical-binding
bdd7fd3565 Fix use-package-normalize-function
09b7e8e129 Fix use-package-normalize-function tests
e2e6f9a44b Enable lexical binding
cc9ec36f1a Merge pull request from taingra/master
b1d9ce08a6 Update use-package.texi
b84a77bcdc Added an Introduction taken from the README
c980371f6f Correct prefix keys after use-package-autoload-keymap
36f9a9b9b4 Merge pull request from akhramov/fix/ensure-system-package...
f38a100917 Ensure system package cleanup
db35639457 fix gethash default value for use-package-statistics-time
642417ac05 Merge pull request from andschwa/remap-command
d2fec5e5e3 Document that remapping commands is supported with bind-key
85e580a5e4 Merge pull request from akhramov/fix/ensure-system-package...
9f034a0bcf [] ensure-system-package: honor system-packages customizat...
dc83e2f035 Update use-package-chords.el
c9f6cae603 Update use-package-chords.el
e2a322d870 Merge pull request from waymondo/master
e5d3826b62 :ensure-system-package allow cdr of cons to be a package n...
ad601fb49a Merge pull request from valignatev/master
8a27cd3a8b Encourage installation via https instead of http
742cf27b0e Merge pull request from DamienCassou/fix-report-again
69a561b86b Fix compile-time warnings due to the statistics-reporting ...
2a47998844 Add missing require
dd8ef12112 Merge pull request from jwiegley/revert-645-fix-report
cba5a11368 Revert "Fix report"
b1429951b1 Merge pull request from DamienCassou/fix-report
b28efb4847 Fix compile-time warnings due to the statistics-reporting ...
bce655f616 Add missing require
4cc7f91270 Merge pull request from DamienCassou/tabulated-list
ae22d74a16 Use a tabulated-list to display package configuration stat...
76e6d3e8bc Merge pull request from matthewbauer/patch-1
2250f89ac0 Support ":package" in use-package
10b4dcb53a Merge pull request from justbur/normalize-fix
46503b194c Fix usage of plist argument in use-package-normalize-plist
e379221166 Merge pull request from justbur/ignore-keywords
09266283b9 Add use-package-ignore-unknown-keywords option
ab918196fa Revert "Merge pull request from jabranham/lexical-bindings"
566a2ea3a1 Revert "Move variable bindings to the bottom of each file"
c29193bf07 Move variable bindings to the bottom of each file
d21787f1d6 Merge pull request from jabranham/lexical-bindings
109167e8f5 Don't remove sharp quotes
2274130b40 Test still requires cl
4c3abcf4eb Fix byte compiler warnings
88bcb8b96d Use lexical bindings and remove cl package
fd8a3510fd Merge pull request from jabranham/system-packages-update
b7252f8e63 lexical binding
46ee100327 Prefer non-obsolete var names
567df21f26 Merge pull request from jabranham/fix-byte-compiler
8a6430835f Prefer org-table-align to orgtbl-ctrl-c-ctrl-c
13a9e339f2 Merge pull request from justbur/elisp-cap
44cb99fcc7 Merge pull request from nickmccurdy/render-report-table
1fdfd46fb2 Fix sanity check for correct :custom-face format
9638870f53 Handle automatic macro expansion by elisp-completion-at-point
13fb5f4f2e Guard a call to display-warning with ignore
cb15dffbd7 Render the use-package-report table using Org
2d226310f1 All the second argument in use-package-defaults lists to b...
51eceb4238 Add a test related to
31fa2f24a1 Add more tests related to issue
4aa9b0cd6a Minor simplification of a function
a4d2e77961 bind-keys fixes related to
3850281f88 Add a clarifying test for
ec84ed0dfb Fix a scoping issues with multiple occurrences of :bind
5a02d61ac6 Start building a use-package linter in use-package-lint.el
7e458c640c use-package-normalize/:disabled has the wrong number of ar...
0068501aa0 Remove several unnecessary calls to `ignore'
ae0d243681 Add another :bind test
e6c54b54ab Add further note to NEWS.md
4714380696 Add tests for two more issues
93231ecbab Fix the tests
8cf7b17dae Clarify a note in NEWS.md
8fefa49d39 Changes to the way auto-deferral is indicated
80e8a599b4 Introduce new customization variable `use-package-merge-ke...
96ecfab9e4 Use cl-gentemp in another place
7803571280 Correctly fix the problem of unreferenced symbols after co...
20694696b2 Revert "Pre-expand lexical-let, since otherwise it require...
7cc17cee8f Pre-expand lexical-let, since otherwise it requires cl to ...
71fc224961 Add documentation for `use-package-report'
beee6b8d4d use-package-defaults predicate must also receive the packa...
75428f870d Remove Package-Requires for diminish and delight, as these...
9a6d8a4cf2 Add a comment as to why max-lisp-eval-depth is set in -tes...
b001edf162 Add missing autoload cookie, and make lack of a normalizer...
ce36e68817 Don't compute the verbose debug text unless it's requested
e8a7ae1ea1 Add :bind test for a single cons cell
2a85d81c47 Add support for gathering statistics on use-package declar...
894e95aa4b Respect keyword ordering in use-package-deferring-keywords
0939993935 Clarify :config with setq versus :custom
c272c6b56b Update some GPL version references
2cd3ebd5d5 Allow the expansion of :after (:or foo bar) to be byte-com...
b2b91af2e5 Make the expanded text for :after cleaner
de12a5ae86 Several changes as suggested by flycheck
3343cca33b Don't auto-defer if the package itself was given to :load
2a9904b9e8 Enable all tests on Travis
0c110ebd67 Allow `:load t' to mean the same as :load of the package name
4882df8285 Whitespace change
7b8e94a61a Default running-on-travis to t
5f13924885 Enable 4 tests that work when not run on Travis
cdb250e766 For now, stub out test that breaks Travis
7c3a6cd70b Stub some referenced variables, for Travis
b5a0cd4f30 Add note in NEWS.md about :requires vs. :if
b25a305c58 Lower the priority of :if/:when/:unless in use-package-key...
64ffdb6863 Enhance fix-expansion to take surrounding let bindings int...
65caa3b423 Rewrite normalization of :bind and :bind*
725d749b7c Normalize errors should be errors, that are then caught by...
0a628a2767 Avoid using pcase and many other macros in macro-expanded ...
a090961f10 Fix bad interaction between bind-keys* and the :package ke...
10fd4577d0 Add missing autoload cookies
f037c2daeb Fix function accidentally made interactive
43f1be12b7 Use cl-gensym
ee07e709ea Fix the case where :ensure is given no arguments
afdf1c3638 Some Emacsen don't have gensym
2892c026f4 Add note in NEWS.md about :after and autoloaded keybindings
277384d151 Add a note to `bind-key` on the usage of the KEYMAP argument
2790bfc006 Add a bind-key test
62d33b2143 Support :ensure (pkg :pin archive)
e34fdb580a Add several missing comments
6c836985b1 Swap the order of two definitions
6470eaf3d5 Fix an argument process problem with bind-key
a2ddc18065 Comment out two tests that break on Travis
4b83f9525c Rename up-* files to use-package-* for consistency
f869036115 Merge branch 'split-bind-key'
1e42c867b6 Commit .texi file, as it requires several dependencies to ...
08e5406cc3 Merge branch 'master' into next
5382941ac3 Add a test-in-progress for issue 506
057814ae24 Add new customization variables `use-package-hook-name-suf...
d5feff862a Split key binding functionality out into its own file
d771e8d719 Please the byte-compiler
9245d08ebc Require cl for the use-package tests
e36d208c69 Expand use-package-core as a macro, to avoid load time dep...
01c3d75606 :ensure can be a list; correct handling of multiple :ensur...
101dc9793b Ensure that :commands always declare-function at compile time
fe85f246b0 Add a new :catch keyword, and move :preface before such ha...
8489206db4 Fix duplication in an error message
4042b87c72 Add expand-maximally macro to up-tests.el
026433a8a0 Revert "Reduce some code duplication"
fb9d159632 Move :preface handling within the code
4efd355108 Add two new tests
1e560c5140 Reduce some code duplication
ac906479a7 Normalize some whitespace and ordering in new code
0239ee227a Move :init back to happening after all autoloads have occu...
5d973a0188 Move :init back to happening after all autoloads have occu...
5d9c854a6c Add `use-package-chords` and `use-package-ensure-system-pa...
05dfea96e5 Change order of :defines and :functions within `use-packag...
20ea11b71a Add further notes to NEWS.md, in light of recent breakages
0be575766c Add new customization variable `use-package-deferring-keyw...
6d51e52342 Minor comment change
49752db41b up-ensure's customization variables are now in their own g...
f4f3e01044 Remove code from up-core.el that is now in up-diminish.el
bd2589e4be Add notes to NEWS.md
8bf5de28c3 Correction to a macro expansion
62f866caf7 Delete an unneeded blank line
a1bdd958d3 Reduce some code duplication
28084551ac Normalize the code emitted by :mode, :interpreter, :magic,...
36cf799853 Add 'errors as another option to `use-package-verbose'
f08f8a7ba9 Only emit the debugging context text once
35b975563c Correction to error detection at both :init and :config times
8428dafcfa Report errors during deferred :config as intelligent warni...
8dd0f274d0 Drop some unnecessary detail from a warning message
f356c838c1 Minor simplification
99200a1642 Fix a byte-compiler warning in up-ensure.el
7c95d0a0e0 Move optional jumping functionality to its own module
fff47a1331 Break out ensure/diminish/delight into their own support f...
cdbb2cbe97 Move the use-package-keywords defcustom to the top of the ...
22fb8f8c4b Disable a test that is not working on Travis
0c148eb777 Move functions around for better logical grouping
3625b3f712 More variable renaming needed in the tests
149c4878fc Change most use-package-- prefixes to just use-package-
d5c1fdf4e8 Remove a local variable binding
223c321a1d Always catch errors during configuration
e5aa510d48 Separate out all tests, the better to identify which one f...
4c1b82aed5 Define macroexpand-1 for older Emacsen
9ab797cccd A great deal of internal reorganization and simplification
a9429350d5 Fix `use-package-ensure-function' docstring typo
dee6b36286 If use-package-verbose is t, show loading times when :afte...
af3b34b022 Remove the :defer-install keyword
09be976c18 :demand should not override an explicit use of :after
9e8e9aa4ee Remove some debug code that crept in
cb846d188a Add tests for the last two keywords
cd4790b3df Add many more tests
f5b034154f Always wrap the expanded body from use-package in (progn)
21b9b6551d Comment out :no-require test for now
6954c3f582 Don't factor out a volatile variable
7f2eec9e65 Add many new tests
88f8c1bb8f Generate :defines and :functions correctly
b5b432d0fe Correct the ordering of :preface, :load-path, :defines and...
07ab280741 Whitespace fix
f674a75b61 Move :hook before :defer
2c618e17c6 Don't macroexpand bind-keys, leave that to the evaluator
5f1e8b6b72 Always use `load' when loading for the sake of compilation
669e8527fb Sort keywords at the appropriate time
af8b961716 Change the :config default, if none has been set in vars
1a09f8fef2 :no-require t should never require
0791e3fefe Code reformatting
dfd3194d80 Allow match-expansion to take multiple cases
7a562f10cb Add test for use-package-test-normalize/:ensure
9465b915a8 Add the missing plist-delete
98ee89a752 Remove an unneeded defvar
0be868d39b A final fix to :ensure + :load-path
ca94036dce Add a test case for :ensure, following up from
1fc543a212 Don't check for an :ensure that use-package-always-ensure ...
2ff8af6495 Add a use-package-version variable
c3b9cc2403 Add two new tests
3ea2d34219 Add stubs for future tests of all keywords
3847ec28ca Allow :ensure to take a nil value again
3cb64648fc Only add :ensure nil on :load-path if use-package-always-e...
35f46f7b42 Restructure some code
5e1a656e06 Using :load-path without also using :ensure now implies :e...
fab33fef3a Correction to use-package--recognize-function
5f2b0cbe8f Allow keys to be bound to nil
1167e7d063 Fix a missing `and'
6a62122e9c Use backquote rather than quote
0887e1f9d0 Correct use-package-normalize-mode
d8c1f02bf4 Whitespace fix
8051c9f5cd Update version and copyright
bff472ea80 Allow :bind ("C-c C-c" . (lambda () (ding))) and #'(lambda...
f256943f9b Reorder some items in NEWS.md
7499c8812a Add NEWS.md file
c0a884dfa2 Merge pull request from basil-conto/version
3db39c0573 Require Emacs version >= 24.3
2aea700500 Merge pull request from basil-conto/520
9870843e1c Merge branch 'master' into 520
9ea305beb6 Add a missing (require 'seq)
4303a2faf6 Require cl-lib and do not use seq functions
b7041c0f29 When use-package-inject-hooks is non-nil, always fire init...
2825987619 Print map keys in describe-personal-keybindings
606284e374 Repeating a bind no longer causes duplicates in personal-k...
a392f6da55 When byte-compiling, correctly output declare-function dir...
2c32857d57 Make diminish a soft dependency, as delight already was
7531c374bf Allow :diminish to take no argument, once again
c811637b30 Fix for single :custom (foo bar)
2ebf076733 Allow :custom (foo1 bar1) (foo2 bar2) etc
4ad4a59685 Add support for `:hook`
700c92c5de Append to *use-package* when debugging, don't clear it
6f9d4342ca Make unrecognized keywords a warning
9b523d7c4e Upgrade license to GPL 3
18b9bf18ad Don't allow :commands, :bind, etc., to be given an empty list
4ddf42185a Explicit :defer t should override use-package-always-demand
5ac5f8bc63 Merge pull request from drrlvn/patch-1
c72d8567d2 Corrections to the normalization of :custom
903ff82219 Merge pull request from joewreschnig/implicit-diminish
eda2db4f18 Merge pull request from waymondo/master
57ec21a013 allow customized values to be nil
9bf8264523 Merge pull request from canatella/add-customization-keywords
d8bbc3a95d Add support for face customization
fcf219701b Add support for variable customization
3c763f3169 Merge pull request from carldotac/master
5396491aec Fix typos in docstring
426a319e1b Merge pull request from emacsjanitors/demote-manually
85643eaf18 Cosmetic changes to use-package-ensure-elpa
68c9ee4bff Don't use with-demoted-errors in use-package-ensure-elpa
3f58555ed8 Merge pull request from raxod502/feat/fix-install-deferred
c3455b2a67 Remove duplicate documentation of :mode
c845776677 Merge pull request from joewreschnig/481-delight-docs
d0dcd95d80 Document :delight in the doc string and README
ca83649a32 Allow `:diminish` with no arguments
463e38b188 Merge pull request from joewreschnig/477-delight-wrappers
7eec86f5cd Allow :major as the third argument in :delight calls
4b8b850cf0 Allow multiple :delight arguments, or omitting the mode. ()
6e6b533aaf Fix bug in use-package-install-deferred-package
99e4045122 Merge pull request from joewreschnig/magic-469
ac4a3a4aa8 Add `:magic` and `:magic-fallback` keywords (issue)
ec088b747a Protect against errors during package install
c38c33e6fa Merge pull request from raxod502/feat/failed-autoload-msg
3823a9059e Fix quoting error in failed autoload message
0a12111d2f Merge pull request from raxod502/normalize-nil
a9ffffcee5 Make use-package-normalize-value handle nil better
2db2b56b17 Merge pull request from raxod502/fix-bind-key-filter
e5e335424c Add comment explaining keyword-argument patch
d5d320e607 Don't mutilate keyword arguments in :bind
9f90129b95 Merge pull request from raxod502/fix-after
0f547bc807 Merge pull request from raxod502/always-defer-install
bca84ee71a Add use-package-always-defer-install
9ad6f2ef1a Fix :after keyword
bd2afa53c7 Merge pull request from raxod502/defer-install
249de4b44d Merge remote-tracking branch 'origin/master' into defer-in...
b2e674de0a Update docstring, installation prompt message
ecc5fddda4 Various improvements for deferred installation
57e38152e1 Get :defer-install completely working, in theory
855a2afbe3 Improve deferred installation mechanism
89a8f94672 Merge branch 'generalized-ensure' into defer-install
a233f01ff6 Update docstring for use-package-ensure-function
f6224b2956 First cut at :defer-install keyword
4e6115214b Extend capabilities of use-package-ensure-function
45442561d3 Revert "Return `t' after calling `eval-after-load'"
0517689cf3 Support multiple symbols passed to :after
f1fa65d773 :mode and :interpreter can now accept (rx ...) forms
87a8ff6d69 Return `t' after calling `eval-after-load'
61d6a8e449 Add autoload cookie for use-package-autoload-keymap
a4c3244f30 Merge remote-tracking branch 'origin/pr/349'
0905a7b1c7 Merge pull request from justbur/find-form
c287aa3085 Merge pull request from justbur/imenu3
f95d487d03 Merge pull request from raxod502/fix-use-package-defaults
482c8e5728 Fix use-package-defaults
8fa6e8823b Unrevert "Add use-package-defaults"
013425edeb Revert "Add use-package-defaults"
a1550a7746 Merge pull request from raxod502/use-package-defaults
3dec23c086 Add use-package-defaults
c637f2be43 Merge pull request from raxod502/use-package-ensure-function
e853355714 Add use-package-ensure-function
ad8094c22d Add new customization option `use-package-always-demand`
dbf46d97be Merge pull request from basil-conto/preface
6c35742992 Merge pull request from tarsius/outline
ba3064ed80 Merge pull request from tarsius/bind-later
75e0cd93c5 Delay decision whether to use eval-after-load until run-time
134ecb3c88 Support outline-minor-mode
aad07daa8d Increase :preface priority
42b7a774cf Merge pull request from phst/bug398
baa9e25a6b Declare package-read-all-archive-contents
c15c616eb1 Remove tests, which don’t work
9688d2f64b Don't allow implicit package name arg for binders
65c7b42a14 Don't allow nil as a mode function
fc57b34299 Refactor pair normalizers; add tests for them
5ed9a6b5a5 Remove obsolete mplist tests
fc7fc42f13 Bump version to 2.3
bcfb149517 Merge pull request from appleby/master
ef0cbfdc73 Ensure package-pinned-packages is bound before referencing it
4629e86240 Remove the use of a tab
72452b5548 Merge pull request from ketbra/master
5053f75e00 Make pin and ensure compatible
811c99da52 Merge pull request from npostavs/state-noconst
79c38c5184 Fix declare-function call: FILE must be a string
71057bc20f use-package-as-string: use noerror parameter
be7a0e4649 Don't pass a constant as the state
758739e6db Version 2.2
1f03bec96b Merge pull request from justbur/bump-init
59d34cf9ce Move :init forms before :after and :demand
c13ca927c2 Add function use-package-jump-to-package-form
75bdb87833 Improve imenu support
ff0a5e281d Merge pull request from justbur/imenu2
da08a04652 Fix imenu support for older versions
1d6b3174f5 Merge pull request from justbur/imenu
2b5668df20 Merge pull request from robario/patch-1
d34fb2bdc9 Add imenu support for use-package forms
858a7f9b7c Fix to ignore load error caused via :after
153b542421 Merge pull request from xuchunyang/fix-package-install
3aa6aecb7f Mark package as selected with package-install
af65fbea63 :map no longer accepts lists; only eval-after-load if nece...
a1c4e6d0ab Normalize some error text
f150691c78 Only printing debug messages if use-package-verbose is `de...
8e128b29f5 Merge pull request from ljos/master
6ca19531bb Repair :map handling in bind-key.el
b0b5cfbfb2 Quote variable in `bind-keys*'
6a90a9f16d Add configuration variable `use-package-check-before-init'
ce51ea2055 Use `add-to-list' defensively instead of `push'
6da4e0ce9d Add variable `use-package-always-defer'
eeba14ef07 Restore :bind-keymap, it does something special still
828563a756 Remove :bind-keymaps, and only apply :map bindings after load
856e8ee245 Support multiples uses of :map with :bind
23a61c8f6b Add some variable settings to use-package-tests.el, thanks...
4593f178e3 Merge pull request from alezost/keymap-doc-fix
947345028e Add another `declare'
c65a334276 Handle :unless correctly
543935482f Add a comment about a recent change
416096bfdc Merge pull request from waymondo/master
57af7dd571 Merge pull request from dudebout/patch-1
ee8ac83641 Add an autoload cookie for `use-package'
32748d0657 Upper casing Cs corresponding to Ctrl
2b967a3c18 Merge pull request from thierryvolpiatto/fix_package_install
c5e98d87da Ensure package-install support a second argument
5cbfd926c5 When :ensure is used install package as a selected package
9e2dcf8655 Merge pull request from kovrik/fix-pin-performance
cc4333a1be Merge pull request from phillord/fix/always-pin-typo
ba4aeb600d Fix errant variable name
3f48ff4648 Merge pull request from phillord/feature/always-pin
f4a01f3e00 Add new option `-always-pin'
c42e3f5669 Change condition that checks if package has been initialized
19474a1711 Do not package-initialize on each :pin
38c170e17b Merge pull request from kovrik/issue-299
3ce3b3a98c Add a missing comma
b4ec5abad2 Add a PREDICATE option to bind-key, and :filter to `bind-k...
cd867dfe2f allow string values in cons for :bind keywords
95038f96f1 Guard against a case where :load-paths is nil
d1c78a646c Move :pin out of macro expansion phase fixes
308e4e3f2c Move :pin out of macro expansion phase
ed2e85e4a7 Use cl-mapcan rather than apply 'nconc; thanks wasamasa
189c8b5422 Merge pull request from kovrik/byte-compile-ensure-fix
d9f37b4f0c Install packages when byte-compiling (fix by @npostavs)
b1f442c15b Apply a fix from npostavs relating to
734c5e7119 Merge pull request from kovrik/master
96add4d4c0 Merge pull request from phillord/feature/after
564f9bb74b Support for after keyword
ac47f783da Move :ensure option from macro expansion phase to runtime ...
ff8bdfcdca Bump version to 2.1
5dffc8c7cf Merge pull request from waymondo/extend-bind-handler
6298e7e477 pass in symbol of bind macro, for more extensible re-use o...
3e2747f174 Revert "Merge pull request from edvorg/master"
9c1156dbf8 error handling for use-package
2276ed7607 Merge pull request from matklad/master
d514592746 fix quotation error
fa36aa682c Merge pull request from npostavs/string-packages
3cdc6c39bf Re-add support for string package names
282241cf7d Merge pull request from nickalcock/master
1cbcd66ebe Support :bind (:map '(...))
269b1080ae Merge pull request from thomasf/master
d81390f6de Handle the case when keymap has a broken documentation
d3f47a7401 Merge pull request from killdash9/keymap
4502a5ecb1 Merge pull request from syl20bnr/fix_hook_injection
90e3f48111 Fix calls to run-hooks for :init and :config injected hooks
6f0586ef52 Refresh package.el archives if package is missing
a53b5062c4 bind-keymap fixes
f1a00054b1 Keymap bindings must be interactive
c850481d06 Failed to require a package is just a message
d1e91745b3 Minor fix to :diminish
c3a4b03b5f Fix a bug in the :delight support
800669d9da Add :delight support, thanks to darkfeline on GitHub
80aad34a39 Add new customization use-package-always-ensure
348bc57141 unbind-key now removes key from personal-keybindings
47586c714e Fix file headers
53bb14cfb7 Add autoload stanzas to bind-key
d70d70843a Correction to an eval-after-load expansion
8c00f108bf Change use-package to use bind-keys and bind-keys*
012c37d722 Change bind-key* behavior to mimic bind-keys*
029e46a874 Whitespace cleanups
eb6b81dfec Allow :map in bind-keys to accept multiple maps
2abf565af2 :pin should return `t'
e7f3f97a71 Modular support appears to be working
f1ab3291f6 Began work on modular handling of keywords
94ad68330d Rename use-package-with-elapsed-timer at an internal name
b30b279a99 Remove code I did not intend to commit
f45c4f0edd Merge pull request from npostavs/macroexp-progn
c2f5b2479d Fix some docstrings
3467e4eaa6 use-package-progn: replace with macroexp-progn
23ec1ca719 Merge pull request from npostavs/name-keymap
f5f4102ca1 get-binding-description: return keymap symbol
1b6605652c Use push instead of add-to-list
38f907cc5d Remove a hack that is not needed anymore
2778e85a39 macroexpand nested uses of use-package in :init and :config
19ab94cf39 Wrap the :preface in an eval-and-compile block
8769309fbf Remove a use of macroexpand
658d103b70 Make a warning more specific
5787ff074c More work to silence the byte-compiler
46435d7b84 Other minor improvements for byte-compiling
d2679595fa Several minor improvements and fixes
eda8246fc6 Change some code for consistency's sake
c819beebf0 Merge pull request from killdash9/keymap
8d7a0c2185 minor fixes to get bind-keymap working in 2.0
771f2edc83 Always return t on a successful init-time load
db69a3f81c Add to the load-path before the :preface
9e35dd95d9 More fixes related to byte-compilation
34bc31e1d4 A few changes for byte-compilation
1fe2c1c056 :defer now accepts an optional number of seconds
302c008b45 Permit minimal expansion of macro bodies, and other fixes
21a091f17a Collapse some whitespace
05c02aee86 Allow vectors to be passed to :bind again
55d6bb00ca Add code to workaround an inefficiency with eval-after-load
4029030eb5 Output Compiling message only if verbose is enabled
b75c1cb47e Allow :pin to accept a symbol
5c85433fac Relax a path normalization check
a203028871 Correct an erroneous symbol reference
a66d1952e3 Update docstring for :disabled
1c5f9247aa Merge pull request from npostavs/eval-after-name
98b642b794 Undo an erroneous change
199399e552 Add -hook to the injected hooks
03ea5d6dbf Restore an earlier fix to
9385ab417a BREAKING CHANGE: Remove :idle and :idle-priority
1f20acfd57 use--package: eval-after-load name
81f5e48d32 Support optional injection of hooks, for Spacemacs
f637380fed Add :preface, occurring before everything except :disabled
b4a00d2eb5 Some minor code reformatting
71f894fe78 Fix to :ensure normalization
a6edb08122 Merge pull request from thomasf/master
9748de389c Merge pull request from npostavs/warning
e68d00d525 Fix :ensure value interpretation
27cba067ee use-package-expand: use display-warning
4ae584f3ff Begin refactoring for 2.0; NOTE: BREAKING CHANGES
0f76d766d9 Many stylistics cleanups and simplifications
a4a696572d Revert "Don't add autoload for existing commands"
30da0769bf Stylistic changes
f8bf1b0986 Minor style edits
f334f230eb Minor changes
aa6e3f47c7 Show more informative errors when they occur
24ace89e5a Merge pull request from tarsius/master
719115cf47 Allow using expanded macro without loading feature
89a957efa9 Merge pull request from killdash9/keymap
b8f0799ce8 Passing t into keymap function
60029cb0ab Merge pull request from killdash9/keymap
7252e29ec4 Merge pull request from thiagowfx/patch-1
7db9b920df fix small typo (key > keymap)
1ae2236854 :bind-keymap - bind a key prefix to an autoloaded package ...
647950fd16 Merge pull request from vermiculus/master
5a5aeca797 Do not quote lambda expressions
f8db1f1740 Merge pull request from YoungFrog/fixautoloads
99642725c1 Merge pull request from peterhoeg/master
b3bf1b2587 Check if package-archives are valid when pinning
a2b23f8326 Don't add autoload for existing commands
435d4b4078 pure cleanup
18f04bfb99 Merge pull request from peterhoeg/master
fe7fe61528 support for pinning package to archive
6570447a05 Merge pull request from Silex/master
0bfa356148 Merge pull request from waymondo/master
e8ce1b20ca add :bind* keyword for `bind-key*`
f07ecde5a1 Fix "compiling" typo
4c927efbd5 Merge pull request from thomasf/master
351c102010 Display which package that has compile errors
4cf50ffbca Merge pull request from tarsius/master
31bb0cde56 assume the declare-function macro exists
91953b08e0 Merge pull request from BernardHurley/master
471869269a bind-keys macro changed to allow prefix map to have a menu...
3cbf510468 Merge pull request from npostavs/desc-vector
b3e96443ad bind-key: cleanup
de9f6814e7 bind-key: no vector keys in personal-keybindings
91b439c8e7 personal-keybindings: add docstring
0d0e8db731 Merge pull request from alezost/bind-keys
c4ebcaa953 Add bind-keys* macro
2d67e1dca1 Merge pull request from thomasf/master
1c82b2377f Don't abort compiling if package loading fails
a4939e7ef3 Revert "Merge pull request from alexko/master"
8c04377608 Merge pull request from alexko/master
a9ba368fa7 Merge pull request from YoungFrog/fix-mult-mode
6d02a320f6 if package can't be located, treat it the same way as disa...
4e80d29daf Eval backquote earlier and support non-`progn' lists
d63972eb29 Merge pull request from YoungFrog/keynameeval
9ca3690b59 * bind-key.el (bind-key): don't eval key-name at macro exp...
978094589e Merge pull request from npostavs/bind-vectors
01196c81ac bind-keys: bind directly to prefix-map
869ff53ab9 bind-keys: ,@(when map (list map)) => map
053a1514a1 fix typo
efe2419a22 Merge pull request from YoungFrog/idle-interval
0ab0d77691 Add new option use-package-idle-interval
db9cba9a31 Merge pull request from ffevotte/idle-priority
6b30c15823 :idle-priority keyword to change the running order of idle...
c7ff480095 Merge pull request from tarsius/master
f32d24350c use-package-font-lock-keywords: add use-package-with-elaps...
2d7ecd867a use-package-with-elapsed-timer: add declare indent rule
ea3a475d0b use-package-with-elapsed-timer: respect option at runtime
11195fa213 Merge pull request from npostavs/bind-vector
f0776c2aeb let bind-key accept vectors, add docstring
0f7d54d1db Merge pull request from Fuco1/variable-col-width
e23bce4c2f Merge pull request from Fuco1/special-form-desc
38d4d2e2da Add variable column width
f90d65e149 Add better descriptions for lambdas, closures, keymaps
aec1268960 Merge pull request from Fuco1/bind-keys
7d0779114e Add `bind-keys` macro
dd937c4e36 Move tests to separate file
2676ff5d95 Allow multiple forms after keywords
58ca076647 stop describe-personal-keybindings adding trailing space
6ca942d780 Merge pull request from aspiers/best-practices
21cabfd334 fix bind-key URL (fixes)
8f7e878caf add 'use-package-' prefix to 'with-elapsed-timer'
283653ff4b Merge pull request from aspiers/hyperlink-all-bindings
ebe59c7da1 Merge pull request from aspiers/docs
2dbee4cd75 fix DRY violation by only having documentation in one place
984850be80 hyperlink functions in Comments column
25ea8ea840 Merge pull request from aspiers/short-mode
75206228dd allow :mode and :interpreter to accept a string
7de292c0e9 Merge pull request from tarsius/defun
d588d0b382 use-package: use defun as lisp-indent-function
c3704ac36e Add a :demand directive, to override deferred loading ()
9d395a4019 fboundp is a function, not a variable
d4bf41eb82 Merge pull request from dabrahams/patch-1
f3e9e871a6 Backward compatibility with emacs-22.1
90ca8adc41 Default use-package-verbose to nil
ee0060c3a7 Merge pull request from Silex/master
c7560f7be7 Remove el-get support
f3ed771481 Merge pull request from aethanyc/add-missing-keyword
36cf13ef47 Add :pre-load to use-package-keywords
c3cbe3a69a Merge pull request from PhilHudson/master
a116fc2136 Properly enable runtime dependency for :idle stanza (issue)
e8b5ea3b70 Merge pull request from npostavs/comma
94072fba77 remove extra comma (added by 026c46c)
e367788005 Merge pull request from npostavs/cleanup
026c46c057 let with-elapsed-timer return last form
3d871c7994 make `with-elapsed-timer' hygienic
61fd933807 with-elapsed-timer: only check verbosity once
9921a76e86 remove after-init-hook for override-global-mode
29abf59bad macroexpand not needed
119a30f2ba cl not needed since flet was removed in 82903da
901272a8c7 Merge pull request from phillord/first-keyword
d6a5c43915 Merge pull request from npostavs/quasiquote
8c1c572857 use plist-get-value for all non-sexp args
dd20db220d plist-get-value treats arg as backquoted
9c9329f522 Merge pull request from dudebout/fixes-
818c78f466 Removes `plist-get-sexp`
ff03bef1d1 Merge pull request from dudebout/variable-and-function-sup...
fd8af80f08 Enables using variables and functions as arguments
6fdeb0c044 Merge pull request from npostavs/eval-after-name
c6d79d2cb4 pass name (not name-string) to eval-after-load
6efc084cdf Merge pull request from aethanyc/fix-highlight
bbf2b5034b Fix highlight use-package for Emacs snapshot
749295c052 Merge pull request from npostavs/hilite-redux
71150a79c5 Merge pull request from aethanyc/improve-output-buffer
8de5c29ed5 Improve (describe-personal-keybindings) output
57f80d4ff1 highlight use-package before typing package name
a56244378f Merge pull request from npostavs/master
48975f791b also check `byte-compile-current-file' for compile time lo...
aa357bc96a Changed :first to :pre-load
3d0b14eac2 Merge pull request from npostavs/master
a76d16730d use lambda around deferred :config forms to compile them, ...
ac0c9633bc use `eval-when-compile' for loading package at compile tim...
e7a343828a Add a ":first" keyword for those occasions that it's neces...
e481d97891 Merge pull request from npostavs/master
2a1e7e418a refine use-package highlighting regexp
3a4556a906 Merge pull request from purcell/patch-2
a5859a7c8d Fix initial line to satisfy package.el
f98b9d08fe Validate keywords. Error if any keyword is unrecognized
ed2b339783 Merge pull request from phillord/ensure-doc
01cfa0358f Added documentation to use-package macro
7161c09b30 Documentation added for :ensure keyword
e38cfff8b6 Merge pull request from milkypostman/master
19c65ea3ab package header should, hold, sold be the full filename + ext
2da6318930 Merge pull request from tarsius/font-lock
9741bdb189 Merge pull request from tarsius/master
5b696d1918 fontify use-package form
d2460b9276 add dots; cleanup whitespace
a5e4a6d938 quiet byte-compiler; ensure package.el is loaded
82903da9d8 don't use obsolete flet
17a1a4659a enforce use of spaces for indentation
5a799db5a1 Merge pull request from purcell/patch-1
b901618607 Add Package-Requires header for ELPA installations
ef6b97c29f Merge pull request from npostavs/easy-diminish
0df0e18c4b needed extra layer of nesting for diminish calls
984e0f1044 Merge pull request from npostavs/easy-diminish
094830716d Merge pull request from npostavs/bind-override
2abe5f9480 let :diminish "string" guess correct mode symbol
09b9ef3ae3 let bind-key* override minor modes with emulation-mode-map...
26bfd9ce2f Merge pull request from PhilHudson/master
34d3f115dd Runtime client code independence redux
1758c5faea Corrected a typo
d718c0cefa Merge pull request from phillord/master
52a48a77c3 Merge branch 'master' of https://github.com/jwiegley/use-p...
35685f120b idle initiation of packages
49d25ce022 Merge pull request from phillord/master
aa8d5fab19 Added minimum load time display option
447004740c Merge pull request from bdd/master
c680b57ebf Cleanup trailing whitespace
1a65b11731 Merge pull request from PhilHudson/macroexpand
593f18aff5 Macroexpand quoted eval-after-load block early
c4cf68f6e4 Merge pull request from phillord/master
eaf9677409 Support packages where autoload and elpa name are different
445d0245fc Merge pull request from phillord/master
8d72a6c1d6 Documentation for the use-package macro
b8406ce9f0 Reverting "Documentation for the use-package macro."
abc0ebc92d Documentation for the use-package macro
75b30bfd9b Merge pull request from phillord/master
c28874e956 ELPA package support
2a63e3f2ef Merge pull request from PhilHudson/master
fbead83731 Support diminishing to a replacement string as well as to ...
8b93cee99b Use-package now accepts function as argument
fe7997d2b7 Only use user-site-lisp-directory if defined
89a844fd9c Correct return value from with-elapsed-timer
28c6509148 More updates to support el-get
ece5f93919 Byte-compilation related fix
d9f6c0f370 Added :pre-init
82a8d10a46 Establish autoloads after :init
bdf1505f44 Added :mode and :interpreter keywords
0736be8e67 Add a note about how to use :load-path
f6d65ce876 If :load-path is absolute, don't expand it
0bde0b4c02 Die typos, die
debf2c23f3 Fixed a typo
aea35b2370 Minor reformatting
80b010a748 Minor grammatical nit
334f6e085e Integrated support for working with el-get
01c8245b29 Make use-package-verbose customizable
4bd492f606 Have loading timer include time to require
bf6c23044b Fixed a typo in bind-key.el
31ea42e15e README and other updates

# Conflicts:
# etc/NEWS
# lisp/external-completion.el

21 months ago; Merge from origin/emacs-29
Eli Zaretskii [Thu, 8 Dec 2022 17:51:54 +0000 (12:51 -0500)]
; Merge from origin/emacs-29

The following commit was skipped:

508b0c1b22 Fix crash on Windows 9X

21 months agoMerge branch 'feature/use-package' into emacs-29
Stefan Kangas [Thu, 8 Dec 2022 17:01:30 +0000 (18:01 +0100)]
Merge branch 'feature/use-package' into emacs-29

21 months ago* etc/USE-PACKAGE-NEWS: Delete file. feature/use-package
Stefan Kangas [Thu, 8 Dec 2022 17:00:19 +0000 (18:00 +0100)]
* etc/USE-PACKAGE-NEWS: Delete file.

Ref: https://lists.gnu.org/r/emacs-devel/2022-11/msg01535.html

21 months ago* admin/git-bisect-start: Prune use-package merge commits.
Stefan Kangas [Thu, 8 Dec 2022 16:49:30 +0000 (17:49 +0100)]
* admin/git-bisect-start: Prune use-package merge commits.

21 months ago; Minor doc fixes in bind-key.el
Stefan Kangas [Thu, 8 Dec 2022 16:14:31 +0000 (17:14 +0100)]
; Minor doc fixes in bind-key.el

* lisp/use-package/bind-key.el (bind-key-segregation-regexp)
(bind-key): Minor doc fixes.

21 months agoUpdate use-package defgroups
Stefan Kangas [Thu, 8 Dec 2022 16:10:47 +0000 (17:10 +0100)]
Update use-package defgroups

* lisp/use-package/bind-key.el (bind-key):
* lisp/use-package/use-package-core.el (use-package):
* lisp/use-package/use-package-ensure.el (use-package-ensure): Add
:link, :version and :group to defgroups.

21 months agoDrop key-chord.el support from use-package
Stefan Kangas [Thu, 8 Dec 2022 00:12:02 +0000 (01:12 +0100)]
Drop key-chord.el support from use-package

* lisp/use-package/bind-chord.el:
* lisp/use-package/use-package-chords.el:
* test/lisp/use-package/use-package-chords-tests.el: Delete files.
* doc/misc/use-package.texi (use-package-chords): Delete section.
Ref: https://lists.gnu.org/r/emacs-devel/2022-12/msg00052.html

21 months ago; lisp/progmodes/java-ts-mode.el: Fix more typos.
Stefan Kangas [Thu, 8 Dec 2022 15:51:59 +0000 (16:51 +0100)]
; lisp/progmodes/java-ts-mode.el: Fix more typos.

21 months ago; * lisp/progmodes/java-ts-mode.el (java-ts-mode--keywords): Fix typo.
Eli Zaretskii [Thu, 8 Dec 2022 15:49:55 +0000 (17:49 +0200)]
; * lisp/progmodes/java-ts-mode.el (java-ts-mode--keywords): Fix typo.

21 months ago* Enable native speed 2 EMBA build and tests and disable speed 0
Andrea Corallo [Thu, 8 Dec 2022 15:40:54 +0000 (16:40 +0100)]
* Enable native speed 2 EMBA build and tests and disable speed 0

* test/infra/gitlab-ci.yml (build-native-comp-speed2): Uncomment.
(build-native-comp-speed0): Comment.
(test-native-comp-speed0): Remove.
(test-native-comp-speed2): Add.

21 months agoRemove unneeded (require 'edebug) from which-func.el
Juanma Barranquero [Thu, 8 Dec 2022 12:00:34 +0000 (13:00 +0100)]
Remove unneeded (require 'edebug) from which-func.el

* lisp/progmodes/which-func.el: Don't require edebug.  This is
code from an attempted fix to bug#49592, installed in 55cc8b040b
(2022-08-08) and left behind after 48b0f2606b (2022-08-23).

21 months agoChange use-package custom :group to `initialization`
Stefan Kangas [Thu, 8 Dec 2022 07:48:24 +0000 (08:48 +0100)]
Change use-package custom :group to `initialization`

* lisp/use-package/use-package-core.el (use-package): Move
defgroup to custom :group 'initialization'.

21 months ago; Fix typos
Stefan Kangas [Tue, 6 Dec 2022 15:55:39 +0000 (16:55 +0100)]
; Fix typos

21 months agoMake 'server-stop-automatically' into a defcustom
Jim Porter [Mon, 28 Nov 2022 06:21:10 +0000 (22:21 -0800)]
Make 'server-stop-automatically' into a defcustom

This changes the meaning of the (formerly internal) variable
'server-stop-automatically': it now always holds the requested
configuration, even when Emacs was not started as a daemon
(bug#59668).

* lisp/server.el (server-stop-automatically): Convert the variable to
a defcustom, and make the function simply set the defcustom.
(server-stop-automatically--timer): New variable.
(server-apply-stop-automatically): New function...
(server-stop, server-start): ... call it.
(server-save-buffers-kill-terminal): Adjust the conditions for
stopping automatically to account for the change of meaning for
'server-stop-automatically'.
(server-stop-automatically--handle-delete-frame): Remove unnecessary
test of the 'server-stop-automatically' option; this hook is only set
when it should do its job.
(server-stop-automatically--maybe-kill-emacs): Update docstring.

* doc/emacs/misc.texi (Emacs Server): Update documentation.

21 months agoTreat escaped newlines in Eshell as the empty string
Jim Porter [Sat, 26 Nov 2022 19:52:18 +0000 (11:52 -0800)]
Treat escaped newlines in Eshell as the empty string

This fixes a regression introduced during Emacs 29's development.

* lisp/eshell/esh-arg.el (eshell-parse-argument): Handle
'eshell-empty-token' as the result of an argument-parsing hook.
(eshell-parse-argument-hook): Document 'eshell-empty-token'.
(eshell-parse-backslash): Return 'eshell-empty-token' when
encountering an escaped newline.

* test/lisp/eshell/eshell-tests.el (eshell-test/escape-nonspecial)
(eshell-test/escape-nonspecial-unicode)
(eshell-test/escape-nonspecial-quoted)
(eshell-test/escape-special-quoted): Move from here...

* test/lisp/eshell/esh-arg-tests.el (esh-arg-test/escape/nonspecial)
(esh-arg-test/escape/nonspecial-unicode)
(esh-arg-test/escape-quoted/nonspecial)
(esh-arg-test/escape-quoted/special): ... to here.
(esh-arg-test/escape/special, esh-arg-test/escape/newline)
(esh-arg-test/escape-quoted/newline): New tests.

* doc/misc/eshell.texi (Arguments): Explain escaping logic in more
detail (bug#59622).

21 months ago; Document use-package-reset-statistics
Stefan Kangas [Thu, 8 Dec 2022 05:36:44 +0000 (06:36 +0100)]
; Document use-package-reset-statistics

* doc/misc/use-package.texi (Gathering Statistics): Document
use-package-reset-statistics.

21 months ago; use-package: Improve :ensure-system-package docstrings
Stefan Kangas [Thu, 8 Dec 2022 05:27:22 +0000 (06:27 +0100)]
; use-package: Improve :ensure-system-package docstrings

* lisp/use-package/use-package-ensure-system-package.el
(use-package-ensure-system-package--custom-packages)
(use-package-ensure-system-package-consify)
(use-package-ensure-system-package-update-custom-packages)
(use-package-normalize/:ensure-system-package)
(use-package-ensure-system-package-exists?): Improve docstrings.

21 months agouse-package: Improve :mode keyword documentation
Stefan Kangas [Thu, 8 Dec 2022 01:25:53 +0000 (02:25 +0100)]
use-package: Improve :mode keyword documentation

* doc/misc/use-package.texi (Modes and interpreters): Improve
section and document the use of a list of regexps.

Resolves https://github.com/jwiegley/use-package/issues/996

21 months agoRemove conversion_fail_tag from selection requests
Po Lu [Thu, 8 Dec 2022 02:30:50 +0000 (10:30 +0800)]
Remove conversion_fail_tag from selection requests

* src/xselect.c (struct x_selection_request): Delete
`conversion_fail_tag'.
(x_push_current_selection_request, x_start_selection_transfer):
Stop checking against conversion_fail_tag.
(x_handle_selection_request): Adjust callers.
(x_convert_selection): Remove arg `for_multiple'.  Never link
nonconvertible data onto frame->converted_selections.

21 months agoImprove bind-keys* and override-global-mode docstrings
Stefan Kangas [Thu, 8 Dec 2022 01:00:13 +0000 (02:00 +0100)]
Improve bind-keys* and override-global-mode docstrings

* lisp/use-package/bind-key.el (bind-keys*): Add docstring.
(override-global-mode) Improve docstring.

21 months agoFix crash on Windows 9X
Po Lu [Tue, 6 Dec 2022 01:30:00 +0000 (09:30 +0800)]
Fix crash on Windows 9X

* src/emacs.c (main): Call init_bignum before init_window_once.

21 months ago; * src/emacs.c (main): Improvements to last change.
Po Lu [Thu, 8 Dec 2022 00:55:36 +0000 (08:55 +0800)]
; * src/emacs.c (main): Improvements to last change.

21 months ago; * doc/misc/use-package.texi: Improve indexing.
Stefan Kangas [Thu, 8 Dec 2022 00:49:04 +0000 (01:49 +0100)]
; * doc/misc/use-package.texi: Improve indexing.

21 months agoAdd recursion limit to treesit--children-covering-range-recurse
Yuan Fu [Thu, 8 Dec 2022 00:36:07 +0000 (16:36 -0800)]
Add recursion limit to treesit--children-covering-range-recurse

* lisp/treesit.el (treesit--children-covering-range-recurse): Add
limit.

21 months agoImprove tree-sitter fontification in edge-cases (bug#59738)
Yuan Fu [Thu, 8 Dec 2022 00:02:53 +0000 (16:02 -0800)]
Improve tree-sitter fontification in edge-cases (bug#59738)

* lisp/treesit.el (treesit-font-lock-fontify-region): Use
treesit--children-covering-range-recurse.

21 months agoAdd new use-package manual
Stefan Kangas [Wed, 7 Dec 2022 23:47:04 +0000 (00:47 +0100)]
Add new use-package manual

* doc/misc/use-package.texi: Rewrite manual.

21 months agoFont lock Commit: and CommitDate: lines in Git logs
Sean Whitton [Wed, 7 Dec 2022 20:12:13 +0000 (13:12 -0700)]
Font lock Commit: and CommitDate: lines in Git logs

* lisp/vc/vc-git.el (vc-git-log-view-mode): Additionally recognize and
font lock Commit: and CommitDate: lines.  This is relevant when, for
example, the user has added "--format=fuller" to vc-git-log-switches.

21 months agoAdd c-ts-mode-indent-defun (bug#59662)
Theodor Thornhill [Fri, 2 Dec 2022 15:05:35 +0000 (16:05 +0100)]
Add c-ts-mode-indent-defun (bug#59662)

Add in this function to mimic 'c-indent-defun'.

* lisp/progmodes/c-ts-mode.el (c-ts-mode-indent-defun): New function.
(c-ts-mode-map): New mode map that uses said function.

21 months agoFix syntax-table for tree-sitter modes
Theodor Thornhill [Mon, 5 Dec 2022 12:37:58 +0000 (13:37 +0100)]
Fix syntax-table for tree-sitter modes

When adapting the 'c-populate-syntax-table' for tree-sitter, I misread
the code, and thus some crucial entries were missing.  For the
relevant modes we use the same table as specified in the
non-tree-sitter major mode.

* lisp/progmodes/c-ts-mode.el (c-ts-mode--syntax-table): Add new
entries.
* lisp/progmodes/csharp-mode.el (csharp-ts-mode): Add new entries.
* lisp/progmodes/java-ts-mode.el (java-ts-mode--syntax-table): Add new
entries.
* lisp/progmodes/json-ts-mode.el (json-ts-mode--syntax-table): Add new
entries.
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--syntax-table): Add new entries.
* lisp/textmodes/css-mode.el (css-ts-mode): Add new entries.

21 months agoc++-ts-mode: Highlight nullptr as a constant
Brian Leung [Wed, 7 Dec 2022 10:12:05 +0000 (02:12 -0800)]
c++-ts-mode: Highlight nullptr as a constant

* lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Add
nullptr.

21 months agoImprove parameter checking in tree-sitter functions
Yuan Fu [Wed, 7 Dec 2022 03:56:25 +0000 (19:56 -0800)]
Improve parameter checking in tree-sitter functions

* src/treesit.c (treesit_check_position): Extract out new function.
(Ftreesit_node_first_child_for_pos)
(Ftreesit_node_descendant_for_range): Replace code with the new
function.
(Ftreesit_query_capture): Add missing check for node and parser.  Add
check for range for BEG and END.  Move treesit_initialize to the
beginning of the function.

* test/src/treesit-tests.el (treesit-node-api)
(treesit-query-api): Add tests for out-of-range error.

21 months ago; * test/lisp/comint-tests.el (w32-application-type): Fix typo.
Eli Zaretskii [Wed, 7 Dec 2022 19:52:00 +0000 (21:52 +0200)]
; * test/lisp/comint-tests.el (w32-application-type): Fix typo.

21 months agoFix comint-tests on MS-Windows
Eli Zaretskii [Wed, 7 Dec 2022 19:23:42 +0000 (21:23 +0200)]
Fix comint-tests on MS-Windows

* test/lisp/comint-tests.el (comint-tests/test-password-function):
On MS-Windows, call 'w32-native-executable-find' instead of
'executable-find', to find the native version of the 'cat'
program.
(w32-native-executable-p, w32-native-executable-find): New
functions.

21 months agoUse new external-completion.el in Eglot
João Távora [Wed, 7 Dec 2022 10:59:30 +0000 (10:59 +0000)]
Use new external-completion.el in Eglot

This refactor simplifies Eglot's source code.

* lisp/progmodes/eglot.el:
(Package-Requires): Require external-completion.
(external-completion): Require it.
(xref-backend-identifier-completion-table): Use external-completion-table.
(completion-category-overrides): No longer set it.
("Backend Completion"): Delete section.

21 months agoDon't override completion-category-defaults in fido-mode
João Távora [Wed, 7 Dec 2022 10:43:59 +0000 (10:43 +0000)]
Don't override completion-category-defaults in fido-mode

To more closely emulate ido-mode, fido-mode and fido-vertical-mode
strongly lean to the 'flex completion style.  But overriding
completion-category-defaults is not the correct way to do it, since
sometimes even the 'flex style isn't possible.

* lisp/icomplete.el (icomplete--fido-mode-setup): Don't set
completion-category-defaults here.

21 months agoAdd lisp/external-completion.el for completions from external tools
João Távora [Fri, 25 Nov 2022 13:03:45 +0000 (13:03 +0000)]
Add lisp/external-completion.el for completions from external tools

This table uses a new 'external' completion style which has been in
use in Eglot and other third-party extensions for a long time.  It's
meant for libraries that interface with an external tool which
provides completions, such as a shell utility, an inferior process, an
http server.

The new file lisp/external-completion.el provides a helper function,
external-completion-table which is given an interfacing function to
the external tool and returns a "programmed completion" table that is
bound to the 'external' completion style.  That table can then be used
with completing-read or any other facility expecting a completion
table.

When the 'external' is in use, the usual styles configured by the user
or other in 'completion-styles' are completely overriden.  This
relatively minor inconvenience is the price to pay for responsive
completion where the full set of completion candidates doesn't need to
be transfered into Emacs's address space.

* lisp/external-completion.el: New file.

* etc/NEWS: (Lisp Changes in Emacs 29.1): Mention
  external-completion-table.

21 months agoCapitalize unit names in Calc uniformly
Rudolf Adamkovič [Wed, 30 Nov 2022 00:01:43 +0000 (01:01 +0100)]
Capitalize unit names in Calc uniformly

* lisp/calc/calc-units.el (math-unit-prefixes): Unify the
inconsistent capitalization of the metric prefixes to
lowercase.  (Bug#59706)

21 months agocomint-fontify-input: Fix field boundary issue (bug#59626)
Miha Rihtaršič [Sat, 26 Nov 2022 22:01:24 +0000 (23:01 +0100)]
comint-fontify-input: Fix field boundary issue (bug#59626)

* lisp/comint.el (comint--intersect-regions): Don't call
'field-end' if we are on a field boundary already.

Copyright-paperwork-exempt: yes

21 months ago; Minor copyedits of the latest xterm change
Eli Zaretskii [Wed, 7 Dec 2022 14:54:47 +0000 (16:54 +0200)]
; Minor copyedits of the latest xterm change

* src/xterm.h (struct x_display_info): Fix a comment.
* src/xterm.c (syms_of_xterm) <x-detect-server-trust>: Doc fix.

21 months ago; * etc/NEWS: Fix the 'bs-default-action-list' entry.
Eli Zaretskii [Wed, 7 Dec 2022 12:50:41 +0000 (14:50 +0200)]
; * etc/NEWS: Fix the 'bs-default-action-list' entry.

21 months agoEglot: fix setting of flymake-list-only-diagnostics (bug#59824)
João Távora [Wed, 7 Dec 2022 11:30:34 +0000 (11:30 +0000)]
Eglot: fix setting of flymake-list-only-diagnostics (bug#59824)

When Eglot receives diagnostics for a file not yet visited in Emacs,
it stores them in flymake-list-only-diagnostics, which feed M-x
flymake-show-project-diagnostics.  If the file is eventually visited
in a buffer and Eglot starts receibing diagnostics for it, the
flymake-list-only-diagnostics database has to be updated accordingly,
since the previous diagnostics are now stale.

* lisp/progmodes/eglot.el (eglot-handle-notification): Reset
flymake-list-only-diagnostics

21 months agoFix some more problems with running Emacs as untrusted
Po Lu [Wed, 7 Dec 2022 11:19:34 +0000 (19:19 +0800)]
Fix some more problems with running Emacs as untrusted

* etc/PROBLEMS (X security problems): Describe new variable.
* src/xfns.c (append_wm_protocols): Don't support ping when it
does not work.
* src/xterm.c (x_wm_supports_1): Don't support anything when
untrusted.
(x_term_init): Implement Vx_detect_server_trust.
(syms_of_xterm): New variable `x-detect-server-trust'.
* src/xterm.h (struct x_display_info): New field `untrusted'.

21 months ago* test/src/sqlite-tests.el (sqlite-version): Declare.
Mattias Engdegård [Tue, 6 Dec 2022 21:21:00 +0000 (22:21 +0100)]
* test/src/sqlite-tests.el (sqlite-version): Declare.

21 months agoMerge from origin/emacs-29
Stefan Kangas [Wed, 7 Dec 2022 05:30:51 +0000 (06:30 +0100)]
Merge from origin/emacs-29

9ae1c2762d7 EUDC: Outline deprecation plans in NEWS
6acf95cbea6 Fix admin/notes/tree-sitter/build-module/build.sh (bug#59...
cc63c086971 * doc/misc/eww.texi (Overview): Improve introduction.
b8790e320e1 Consistent fontification of using-directives in csharp-ts...
5257b9cda43 ; Rename c-ts-fontify-error to c-ts-mode--fontify-error
c6b454df339 ; Improve docstring of c-ts-mode--fontify-variable
6187d001f28 Fontify some keywords in type face in c-ts-mode
b3847c02083 ; Minor cleanup in treesit.c
40af27859e0 ; * lib-src/etags.c (escape_shell_arg_string): Minor doc ...
43b7e7efbf4 Fix etags builds on non-Windows non-MS-DOS machines
7e6d1d1c471 ; Fix last change in etags.c.
01a4035c869 Fix etags local command injection vulnerability
ed4734405df Avoid crashes in a build --without-modules
70a2eb4a0b3 Fix 'add-display-text-property' when OBJECT is non-nil
d58d1dd48ac Do not run slow tests on EMBA
9b9b39a2d89 Lisp reader undefined behaviour excision

# Conflicts:
# etc/NEWS

21 months agoEUDC: Outline deprecation plans in NEWS
Thomas Fitzsimmons [Wed, 7 Dec 2022 02:41:51 +0000 (21:41 -0500)]
EUDC: Outline deprecation plans in NEWS

* etc/NEWS (EUDC): Mention deprecation plans.

21 months ago* etc/NEWS: Mention new bs option
Juanma Barranquero [Wed, 7 Dec 2022 01:36:41 +0000 (02:36 +0100)]
* etc/NEWS: Mention new bs option

21 months ago* lisp/bs.el: Improve compatibility with previous version
Juanma Barranquero [Wed, 7 Dec 2022 01:27:06 +0000 (02:27 +0100)]
* lisp/bs.el: Improve compatibility with previous version

* lisp/bs.el (bs-default-action-list):
Remove display-buffer-reuse-window.
Ask for a minimum height window, not maximum.
(bs-show-in-buffer): Create window here, and afterwards make
sure it's the only window showing the *bs-selection* buffer.
(bs--show-with-configuration): Move window creation to
bs-show-in-buffer.

21 months ago; * lisp/serve.el: Silence unused arg warning in previous commit
Juanma Barranquero [Wed, 7 Dec 2022 01:08:28 +0000 (02:08 +0100)]
; * lisp/serve.el: Silence unused arg warning in previous commit

21 months agoFix admin/notes/tree-sitter/build-module/build.sh (bug#59789)
Yuan Fu [Tue, 6 Dec 2022 23:55:14 +0000 (15:55 -0800)]
Fix admin/notes/tree-sitter/build-module/build.sh (bug#59789)

Besides the problem mentioned by Juri, which is fixed by removing

-cp tree-sitter-lang.in "tree-sitter-${lang}/src"
-cp emacs-module.h "tree-sitter-${lang}/src"

(we removed those files in an earlier commit, because they are not
used anymore.)

Now it also more parameterized and builds typescript and tsx
separately.

* admin/notes/tree-sitter/build-module/build.sh (topdir)
(repo, sourcedir, grammardir): New variables.
(Build): Make it parametric.
(Copy out): Use absolute path.

* admin/notes/tree-sitter/build-module/batch.sh (languages): Add tsx.

21 months ago* doc/misc/eww.texi (Overview): Improve introduction.
Stefan Kangas [Wed, 7 Dec 2022 00:02:48 +0000 (01:02 +0100)]
* doc/misc/eww.texi (Overview): Improve introduction.

21 months ago; Remove dead code from 'server-stop-automatically--handle-delete-frame'
Jim Porter [Fri, 2 Dec 2022 20:15:46 +0000 (12:15 -0800)]
; Remove dead code from 'server-stop-automatically--handle-delete-frame'

* lisp/server.el (server-stop-automatically--handle-delete-frame):
Since 'this-command' is never 'save-buffers-kill-terminal' in this
function, we can remove the second 'if' block and it's then-form,
leaving only the else-form.  Additionally, remove the 'delete-frame'
call; it's not necessary, since we just killed Emacs on the prior
line.

21 months agoConsistent fontification of using-directives in csharp-ts-mode
Jostein Kjønigsen [Tue, 6 Dec 2022 08:40:03 +0000 (09:40 +0100)]
Consistent fontification of using-directives in csharp-ts-mode

* lisp/progmodes/csharp-mode.el (csharp-ts-mode--font-lock-settings):
New rules.

21 months ago; Rename c-ts-fontify-error to c-ts-mode--fontify-error
Yuan Fu [Tue, 6 Dec 2022 08:26:51 +0000 (00:26 -0800)]
; Rename c-ts-fontify-error to c-ts-mode--fontify-error

* lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings)
(c-ts-fontify-error): Rename.

21 months ago; Improve docstring of c-ts-mode--fontify-variable
Yuan Fu [Tue, 6 Dec 2022 08:17:04 +0000 (00:17 -0800)]
; Improve docstring of c-ts-mode--fontify-variable

* lisp/progmodes/c-ts-mode.el (c-ts-mode--fontify-variable): Improve
docstring.

21 months agoFontify some keywords in type face in c-ts-mode
Yuan Fu [Tue, 6 Dec 2022 08:15:30 +0000 (00:15 -0800)]
Fontify some keywords in type face in c-ts-mode

* lisp/progmodes/c-ts-mode.el (c-ts-mode--keywords): Remove some keywords.
(c-ts-mode--type-keywords): New variables.
(c-ts-mode--font-lock-settings): New rule.

21 months ago; Minor cleanup in treesit.c
Eli Zaretskii [Tue, 6 Dec 2022 17:28:02 +0000 (19:28 +0200)]
; Minor cleanup in treesit.c

* src/treesit.c (Ftreesit_query_capture)
(Ftreesit_parser_set_included_ranges): Minor cleanups.

21 months ago; * lib-src/etags.c (escape_shell_arg_string): Minor doc fix.
Stefan Kangas [Tue, 6 Dec 2022 17:05:08 +0000 (18:05 +0100)]
; * lib-src/etags.c (escape_shell_arg_string): Minor doc fix.

21 months agoFix etags builds on non-Windows non-MS-DOS machines
Mattias Engdegård [Tue, 6 Dec 2022 16:37:22 +0000 (17:37 +0100)]
Fix etags builds on non-Windows non-MS-DOS machines

* lib-src/etags.c: In this file, MSDOS is always defined but can be
either `true` or `false`, so don't used `defined MSDOS` as a condition.

21 months ago; Fix last change in etags.c.
Eli Zaretskii [Tue, 6 Dec 2022 16:13:41 +0000 (18:13 +0200)]
; Fix last change in etags.c.

21 months agoFix etags local command injection vulnerability
lu4nx [Tue, 6 Dec 2022 07:42:40 +0000 (15:42 +0800)]
Fix etags local command injection vulnerability

* lib-src/etags.c: (escape_shell_arg_string): New function.
(process_file_name): Use it to quote file names passed to the
shell.  (Bug#59817)

21 months agoAvoid crashes in a build --without-modules
Eli Zaretskii [Tue, 6 Dec 2022 15:15:35 +0000 (17:15 +0200)]
Avoid crashes in a build --without-modules

* src/lread.c (syms_of_lread): Move the definitions of
'dynamic-library-suffixes' outside of the HAVE_MODULES
conditional.  (Bug#59832)

21 months ago* lisp/bs.el: Adapt to modern display-buffer-alist window setup
Juanma Barranquero [Tue, 6 Dec 2022 12:44:09 +0000 (13:44 +0100)]
* lisp/bs.el: Adapt to modern display-buffer-alist window setup

* lisp/bs.el (bs--window-config-coming-from): Delete.
(bs-default-action-list): New user customizable option.
(bs--restore-window-config): Delete.
(bs-kill, bs-select, bs-select-other-window)
(bs-select-other-frame): Use `quit-window' instead.
(bs--show-with-configuration): Use `pop-to-buffer' to display
the "*buffer-selection*" buffer.

21 months agoFix 'add-display-text-property' when OBJECT is non-nil
Eli Zaretskii [Tue, 6 Dec 2022 12:41:36 +0000 (14:41 +0200)]
Fix 'add-display-text-property' when OBJECT is non-nil

* lisp/emacs-lisp/subr-x.el (add-display-text-property): Fix the
case where OBJECT is not nil.  (Bug#59857)

* test/lisp/emacs-lisp/subr-x-tests.el
(subr-x-test-add-display-text-property): Add test for this case.

21 months agoDo not run slow tests on EMBA
Michael Albinus [Tue, 6 Dec 2022 11:36:15 +0000 (12:36 +0100)]
Do not run slow tests on EMBA

* test/infra/gitlab-ci.yml (.filenotify-gio-template): Do not run
scheduled.
(build-native-comp-speed1, build-native-comp-speed2): Comment out.

* test/lisp/international/ucs-normalize-tests.el
(ucs-normalize-part1): Skip also on EMBA.

21 months agoWork around sample server bug
Po Lu [Tue, 6 Dec 2022 11:30:15 +0000 (19:30 +0800)]
Work around sample server bug

* src/xterm.c (XTring_bell): Catch Access errors from XBell when
Emacs is running as an untrusted client.

21 months agoLisp reader undefined behaviour excision
Mattias Engdegård [Tue, 6 Dec 2022 11:13:18 +0000 (12:13 +0100)]
Lisp reader undefined behaviour excision

* src/lread.c (read_bool_vector, skip_lazy_string):
Replace `|` with `||` to explicitly introduce sequence points since
the variables, `length` and `nskip`, are mutated more than once.

The `|` was just a weak attempt at micro-optimisation in any case;
sorry about that.

21 months agoMerge from origin/emacs-29
Stefan Kangas [Tue, 6 Dec 2022 05:30:29 +0000 (06:30 +0100)]
Merge from origin/emacs-29

717f8477284 ; Fix typo in js--treesit-imenu
c26fe45cb80 Fix treesit-query-capture
318bf42b410 Improve fontification of typescript-ts-mode (bug#59831)
64271bbb7d9 Add back pair feature in json-ts-mode fontification (bug#...
16b94888429 Fix mouse clicks on a non-selected frame
ca0da3b83df ; Clarify description of display on the margins

21 months ago; Fix typo in js--treesit-imenu
Randy Taylor [Tue, 6 Dec 2022 01:30:56 +0000 (20:30 -0500)]
; Fix typo in js--treesit-imenu

* lisp/progmodes/js.el (js--treesit-imenu): Fix a typo.  (Bug#59849)

21 months agoFix treesit-query-capture
Yuan Fu [Tue, 6 Dec 2022 02:37:47 +0000 (18:37 -0800)]
Fix treesit-query-capture

Before this change Ftreesit_query_capture doesn't convert character
position to byte position for BEG and END parameters.  I observed
fontification issue in css files but couldn't figure out why, now I
know :-)

I decide to keep treesit--font-lock-query-expand-range, since it might
provide a escape hatch for problems we discover in the future, and it
should be very cheap so no downside of keeping it.

* lisp/textmodes/css-mode.el (css-ts-mode): Stop setting
treesit--font-lock-query-expand-range.
* lisp/treesit.el (treesit--font-lock-query-expand-range): Update
docstring.
* src/treesit.c (Ftreesit_query_capture): Convert BEG and END to byte
position.  Also added parentheses wround "beg_byte - visible_beg" in
the call to ts_query_cursor_set_byte_range (i.e., style change).

21 months agoFix crash on Windows 9X
Po Lu [Tue, 6 Dec 2022 01:30:00 +0000 (09:30 +0800)]
Fix crash on Windows 9X

* src/emacs.c (main): Call init_bignum before init_window_once.

21 months agoImprove fontification of typescript-ts-mode (bug#59831)
Jostein Kjønigsen [Mon, 5 Dec 2022 08:31:58 +0000 (09:31 +0100)]
Improve fontification of typescript-ts-mode (bug#59831)

- Highlight property and field definitions in class declaration.
- Highlight property-keys in object initializaters.
- Highlight variable-names in function/method return-statements.

* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--font-lock-settings): Add fontification rules.

21 months agoAdd back pair feature in json-ts-mode fontification (bug#59833)
Theodor Thornhill [Mon, 5 Dec 2022 14:59:41 +0000 (15:59 +0100)]
Add back pair feature in json-ts-mode fontification (bug#59833)

* lisp/progmodes/json-ts-mode.el (json-ts-mode--font-lock-settings):
Add back in removed pair feature.  Also alphabetize features.
(json-ts-mode): Use the new feature.

21 months agoFix mouse clicks on a non-selected frame
Eli Zaretskii [Mon, 5 Dec 2022 19:55:25 +0000 (21:55 +0200)]
Fix mouse clicks on a non-selected frame

* lisp/mouse-drag.el (mouse-drag-drag): Skip switch-frame events
while tracking mouse.  (Bug#59785)

21 months ago; Clarify description of display on the margins
Eli Zaretskii [Mon, 5 Dec 2022 19:45:01 +0000 (21:45 +0200)]
; Clarify description of display on the margins

* doc/lispref/display.texi (Display Margins): More accurate
explanation of how to show text in the display margin without
concealing buffer text.  (Bug#59841)

21 months ago; * src/xfns.c: Actually remove "#include <xcb/xcb_aux.h>".
Eli Zaretskii [Mon, 5 Dec 2022 16:55:19 +0000 (18:55 +0200)]
; * src/xfns.c: Actually remove "#include <xcb/xcb_aux.h>".

21 months agoFix build with old XCB
Po Lu [Mon, 5 Dec 2022 12:41:37 +0000 (20:41 +0800)]
Fix build with old XCB

* src/xfns.c (x_get_net_workarea):
* src/xterm.c (x_dnd_compute_toplevels, x_dnd_get_proxy_proto)
(x_dnd_get_wm_state_and_proto, handle_one_xevent): Do not
include xcb_aux.h.  Use XA_ constants instead of XCB_ATOM_ ones.

21 months ago; * etc/NEWS: Fix entry for 'vc-git-shortlog-switches'.
Eli Zaretskii [Mon, 5 Dec 2022 12:21:36 +0000 (14:21 +0200)]
; * etc/NEWS: Fix entry for 'vc-git-shortlog-switches'.

21 months agoDon't excessively sync in some other code
Po Lu [Mon, 5 Dec 2022 11:55:04 +0000 (19:55 +0800)]
Don't excessively sync in some other code

* configure.ac (USE_XCB): Remove xcb-util dependency.
* src/frame.h: Remove x_sync.
* src/gtkutil.c (xg_frame_restack, xg_update_scrollbar_pos)
(xg_update_horizontal_scrollbar_pos): Call XSync manually
instead of x_sync.
* src/xfns.c (x_sync): Delete unused function.
* src/xterm.c (x_send_hourglass_message): New function.
(x_show_hourglass, x_hide_hourglass): Avoid XSync in these two
pieces of frequently used code.
(handle_one_xevent): Handle hourglass messages.
(x_make_frame_invisible): Stop using x_sync.

21 months agoMerge from origin/emacs-29
Stefan Kangas [Mon, 5 Dec 2022 05:30:21 +0000 (06:30 +0100)]
Merge from origin/emacs-29

ec00d292ec0 Improve treesit-fontify-with-override
4bcdb1cc65b Make killing a non-last client work the same no matter th...
a27f61f6f48 Use the function 'window-system' on the tab-bar/tab-line ...
432b9655ae0 Restore font-lock-type-face for lisp mode &symbols

21 months ago; Merge from origin/emacs-29
Stefan Kangas [Mon, 5 Dec 2022 05:30:21 +0000 (06:30 +0100)]
; Merge from origin/emacs-29

The following commit was skipped:

029988d4a51 Prevent a segfault when deleting a fullscreen frame on Ne...

21 months agoMerge from origin/emacs-29
Stefan Kangas [Mon, 5 Dec 2022 05:30:21 +0000 (06:30 +0100)]
Merge from origin/emacs-29

3768b100777 ; * lisp/pcomplete.el (pcomplete-allow-modifications): Fi...
84214578f5a Fix markup in ERC manual

21 months agoImprove passing user switches to Git log commands (bug#59414)
Sean Whitton [Sun, 4 Dec 2022 22:56:35 +0000 (15:56 -0700)]
Improve passing user switches to Git log commands (bug#59414)

* lisp/vc/vc-git.el (vc-git-log-switches): Revise docstring.
(vc-git-shortlog-switches): New defcustom.
(vc-git-print-log): Use vc-git-log-switches or
vc-git-shortlog-switches depending on whether printing a shortlog.
(vc-git-log-outgoing, vc-git-log-incoming): Use
vc-git-shortlog-switches.
(vc-git-log-search, vc-git-expanded-log-entry): Use
vc-git-log-switches.
* etc/NEWS: Document the new defcustom.