Eli Zaretskii
0bd26abf7f
; * doc/misc/use-package.texi: Fix @file.
2022-12-09 18:21:38 +02:00
Eli Zaretskii
2ea7a357fd
; * doc/misc/use-package.texi: Fix @acronym.
2022-12-09 18:20:04 +02:00
Eli Zaretskii
f626b9f385
; * doc/misc/use-package.texi: Fix indexing.
2022-12-09 16:50:13 +02:00
Eli Zaretskii
acd462b030
; Improve the use-package manual
...
* doc/misc/use-package.texi (Top, Basic Concepts)
(Getting Started, Loading Packages, Loading basics)
(Deferring loading, Forcing loading, Conditional loading)
(Loading sequentially, Load dependencies, Load path)
(Manual autoloads, Configuring Packages, Lisp Configuration)
(Preface keyword, Init keyword, Best practices, Key bindings)
(Global keybindings, Binding in keymaps, Binding to a keymap)
(Binding to repeat-maps, Displaying keybindings)
(Modes and interpreters, Magic handlers, User options, Faces)
(Delight, Diminish, Install package, Pinning packages)
(Other package managers, Byte-compiling, Troubleshooting)
(Troubleshooting Options, Gathering Statistics)
(Disabling a package, Keyword extensions)
(use-package-ensure-system-package, Creating an extension): Fix
wording, punctuation, typos, and markup; add indexing. Add
@group..@end group in code examples.
2022-12-09 16:32:59 +02:00
dannyfreeman
74a009dd96
Eglot: Handle LSP progress with Emacs progress reporters (bug#59149)
...
Co-authored-by: João Távora <joaotavora@gmail.com>
* lisp/progmodes/eglot.el (eglot-report-progress): New custom variable.
(eglot-lsp-server): New slot for tracking active progress reporters.
(eglot-handle-notification (eql $/progress)): New method.
The LSP spec describes methods for reporting progress on long running
jobs to the client:
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#progress
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workDoneProgress
This change reports those notifications in the minibuffer as they come
in. It shows a percent indicator (if the server provides theme), or a
spinner.
This change could open the door for writing a "cancel long running
request" command, which are identified by these progress
notifications. See
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#window_workDoneProgress_cancel
* doc/misc/eglot.texi (Customizing Eglot): Describe new variable.
2022-12-09 13:03:57 +00:00
Stefan Kangas
bdbb709978
; Fix groff warnings in man pages
...
This fixes check-man-pages warnings such as:
troff: doc/man/etags.1:203: warning: escape character ignored before '='
* doc/man/etags.1: Fix groff warnings.
2022-12-09 11:15:21 +01:00
Stefan Kangas
f5c3585e4d
; Fix typos
2022-12-09 10:18:00 +01:00
Stefan Kangas
5b640f0abd
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
2022-12-09 06:27:46 +01:00
Stefan Kangas
a17a6036dd
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
2022-12-09 04:15:50 +01:00
Stefan Kangas
15dda8cd5b
; 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.
2022-12-09 00:32:19 +01:00
Stefan Kangas
e950f5a663
Merge branch 'feature/use-package' into emacs-29
2022-12-08 18:01:30 +01:00
Stefan Kangas
4be96c9dcb
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
2022-12-08 17:00:29 +01:00
Stefan Kangas
8fb2afe051
; Fix typos
2022-12-08 07:17:47 +01:00
Jim Porter
a37df90276
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).
2022-12-07 21:39:07 -08:00
Stefan Kangas
d3e9bd3b57
; Document use-package-reset-statistics
...
* doc/misc/use-package.texi (Gathering Statistics): Document
use-package-reset-statistics.
2022-12-08 06:36:44 +01:00
Stefan Kangas
141fe8b827
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
2022-12-08 05:27:59 +01:00
Stefan Kangas
537f11f8cd
; * doc/misc/use-package.texi: Improve indexing.
2022-12-08 01:49:04 +01:00
Stefan Kangas
98e54f597e
Add new use-package manual
...
* doc/misc/use-package.texi: Rewrite manual.
2022-12-08 00:47:04 +01:00
Stefan Kangas
cc63c08697
* doc/misc/eww.texi (Overview): Improve introduction.
2022-12-07 01:05:44 +01:00
Eli Zaretskii
ca0da3b83d
; 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)
2022-12-05 21:45:01 +02:00
Eli Zaretskii
84214578f5
Fix markup in ERC manual
...
* doc/misc/erc.texi (SASL): Use @table instead of simulating it
with @indentedblock. Fix markup. (Bug#59815)
2022-12-04 14:31:50 +02:00
Juri Linkov
bf66b90b9a
Fix the width of margins for icons in outline-minor-mode (bug#59719)
...
* doc/lispref/display.texi (Icons): Add :width spec.
* lisp/emacs-lisp/icons.el (icons--create): Handle :width as well.
* lisp/outline.el (outline--margin-width, outline-margin-width):
New variables.
(outline-open-in-margins, outline-close-in-margins)
(outline-close-rtl-in-margins): Don't inherit from parents.
Use `:width font' instead of `:height 10'.
(outline-minor-mode): Calculate the number of columns for margins
to fit the icons.
2022-12-02 09:54:22 +02:00
Stefan Kangas
70ecdebc92
; Fix typos (don't abbreviate "with" or "without")
2022-12-01 16:36:09 +01:00
Eli Zaretskii
a86ccb5f9d
; Fix recently added treesit documentation
...
* lisp/treesit.el (treesit-defun-prefer-top-level):
* doc/lispref/positions.texi (List Motion): Fix wording.
2022-12-01 17:25:28 +02:00
Dmitry Gutov
91a9598baf
Update project docs and NEWS
...
* doc/emacs/maintaining.texi (Projects): Update the name.
* etc/NEWS: Mention new option (bug#41572).
2022-12-01 16:24:25 +02:00
Po Lu
3b5b99ac91
* doc/lispref/frames.texi (Input Focus): Clarify for XInput 2 support.
2022-12-01 14:34:17 +02:00
Yuan Fu
01e7d4b2a1
Make treesit-defun-prefer-top-level more flexible
...
* doc/lispref/positions.texi (List Motion): Update manual.
* lisp/treesit.el (treesit-defun-prefer-top-level): Update docstring.
(treesit--defun-maybe-top-level): Change to accept new format.
2022-11-30 16:57:08 -08:00
Stefan Kangas
8617edfffd
; Fix typos
2022-11-30 16:59:41 +01:00
Stefan Kangas
97c8a58787
* doc/misc/Makefile.in (INFO_COMMON): Add use-package.
2022-11-30 16:17:38 +01:00
Kyle Meyer
0625651e8a
Update to Org 9.6-3-ga4d38e
2022-11-29 23:05:53 -05:00
Stefan Kangas
4a1e9d61b5
; Merge from https://github.com/jwiegley/use-package
2022-11-30 02:38:56 +01:00
Stefan Kangas
7ea95d1b92
; * doc/misc/eglot.texi (Setting Up LSP Servers): Improve indexing.
2022-11-29 20:33:18 +01:00
Michael Albinus
079625d3c6
Tramp cleanup
...
* doc/misc/tramp.texi: Use @value{tramp} where appropriate.
* doc/misc/trampver.texi: Change "Tramp" format ifplaintext.
* lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist):
Ignore `memory-info'.
2022-11-29 17:00:02 +01:00
F. Jason Park
00de296d1b
Simplify erc-sasl's auth-source API
...
* doc/misc/erc.texi: Revise descriptions in SASL chapter to reflect
simplified auth-source options.
* lisp/erc/erc-sasl.el (erc-sasl-password,
erc-sasl-auth-source-function): Revise doc strings.
(erc-sasl-auth-source-password-as-host): New function to serve as
more useful choice for option `erc-sasl-auth-source-function'.
(erc-sasl--read-password): Promote auth-source to pole position, above
an explicit string and `:password'.
* test/lisp/erc/erc-sasl-tests.el (erc-sasl--read-password--basic):
Massage tests to conform to simplified `erc-sasl-password'
API. (Bug#29108.)
2022-11-29 00:01:13 -05:00
F. Jason Park
83b9496a19
* doc/misc/erc.texi: Revise SASL and modules chapters.
2022-11-28 23:58:55 -05:00
Juanma Barranquero
264e9e3a17
; * doc/lispref/windows.texi (Selecting Windows): Doc fix
2022-11-28 12:58:26 +01:00
Stefan Kangas
7bf393dcf0
; Consistently call alists "association list"
...
* doc/lispref/compile.texi (Compiler Errors):
* doc/misc/gnus.texi (Score File Format):
* etc/NEWS.24:
* lisp/emacs-lisp/byte-run.el (with-suppressed-warnings):
* lisp/progmodes/gdb-mi.el (gdb-threads-list)
(gdb-breakpoints-list, gdb-place-breakpoints): Prefer the term
"association list" for alists.
2022-11-27 18:12:45 +01:00
Michael Albinus
1cbf2655db
Extend memory-info for remote systems
...
* doc/lispref/files.texi (Magic File Names): Add memory-info.
* doc/lispref/internals.texi (Garbage Collection): memory-info can
also retrieve values from remote systems.
* etc/NEWS: Document changes in memory-info. Fix typos.
* lisp/files.el (warn-maybe-out-of-memory): Ensure local memory info.
* lisp/net/tramp.el (tramp-handle-memory-info): New defun.
(tramp-file-name-for-operation)
* lisp/net/tramp-adb.el (tramp-adb-file-name-handler-alist):
* lisp/net/tramp-archive.el (tramp-archive-file-name-handler-alist):
* lisp/net/tramp-crypt.el (tramp-crypt-file-name-handler-alist):
* lisp/net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
* lisp/net/tramp-rclone.el (tramp-rclone-file-name-handler-alist):
* lisp/net/tramp-sh.el (tramp-sh-file-name-handler-alist):
* lisp/net/tramp-smb.el (tramp-smb-file-name-handler-alist):
* lisp/net/tramp-sshfs.el (tramp-sshfs-file-name-handler-alist)
* lisp/net/tramp-sudoedit.el (tramp-sudoedit-file-name-handler-alist):
Add 'memory-info'.
* lisp/net/tramp-sshfs.el (tramp-sshfs-handle-exec-path):
Let-bind `process-file-side-effects'.
* src/alloc.c (Fmemory_info): Support remote systems.
(Qmemory_info): Declare.
* test/lisp/net/tramp-tests.el (tramp-test31-memory-info): New test.
2022-11-27 16:57:03 +01:00
Yuan Fu
cc086f37e8
Add default limit for tree-sitter recursive tree-traversing function
...
This fixes bug#59426.
* src/treesit.c (treesit_search_dfs)
(treesit_build_sparse_tree): Remove no_limit parameter.
(Ftreesit_search_forward, Ftreesit_induce_sparse_tree): Use default
limit of 1000.
* doc/lispref/parsing.texi (Retrieving Nodes): Update manual.
2022-11-26 15:40:24 -08:00
Eric Abrahamsen
eb713a8fcc
Remove mentions of create-directory nnmaildir setting
...
* lisp/gnus/nnmaildir.el (nnmaildir-open-server): The
'create-directory server parameter should have been removed entirely,
and supplanted by 'target-prefix. Remove check for old parameter.
* doc/misc/gnus.texi (Maildir): Delete mention from manual.
2022-11-26 12:15:45 -08:00
Paul Eggert
b27e8f2628
Update from Gnulib by running admin/merge-gnulib
2022-11-26 10:56:53 -08:00
Juanma Barranquero
a22671dbd0
; doc fix: Use w32-* names instead of obsolete ones
...
* doc/emacs/msdos.texi (Text and Binary): Describe
w32-(add|remove)-untranslated-fiesystem functions by
their non-obsolete name.
2022-11-26 15:53:21 +01:00
Stefan Kangas
bd5aa073d4
; Don't mention Makefiles twice in (emacs) Program Modes
...
* doc/emacs/programs.texi (Program Modes): Don't mention Makefiles
twice. (Bug#59610)
2022-11-26 15:49:02 +01:00
Stefan Kangas
78ccae4447
; * doc/emacs/programs.texi (Program Modes): Improve indexing.
2022-11-26 14:55:58 +01:00
Stefan Kangas
9319c124c9
Mention new programming language support in manual
...
* doc/emacs/programs.texi (Program Modes): Mention newly added support
for C#, TypeScript and JSON.
2022-11-26 14:30:49 +01:00
Stefan Kangas
65f355a0ad
; Fix typos
2022-11-26 14:30:02 +01:00
Eli Zaretskii
b84408647c
Improve documentation of some posn-* functions
...
* lisp/subr.el (posn-object-x-y): Doc fix.
* doc/lispref/commands.texi (Click Events): More accurate
documentation of what are DX and DY in POSITION.
2022-11-26 13:56:30 +02:00
Michael Heerdegen
2eccd6eb5f
; Fix some typos
...
* doc/emacs/programs.texi (Programming Language Doc):
* lisp/wid-edit.el (lazy): Fix typos.
2022-11-26 11:05:58 +01:00
F. Jason Park
3d02c8aabf
Disable auth-source-pass-extra-query-keywords by default
...
* doc/misc/auth.texi: Mention subdomain matching in
`auth-source-pass-extra-query-keywords' section.
* etc/NEWS: Mention the loss of traditional auth-source-pass features
when `auth-source-pass-extra-query-keywords' is enabled.
* lisp/auth-source-pass (auth-source-pass-extra-query-keywords): Set
default to nil. Mention domain matching in doc string.
(auth-source-pass--match-regexp): Allow username to contain "@".
* lisp/erc/erc-compat.el:
(erc-compat--29-auth-source-pass--retrieve-parsed): Adjust regexp.
* test/lisp/auth-source-pass-tests.el
(auth-source-pass-extra-query-keywords--suffixed-user): make plain
username more email-like.
(Bug#58985.)
2022-11-25 05:37:01 -08:00
Mattias Engdegård
f35dc7058b
Add sqlite library version string retrieval function (bug#58766)
...
* src/sqlite.c (sqlite3_libversion, load_dll_functions):
Make sqlite3_libversion available.
(Fsqlite_version): New.
(syms_of_sqlite): Define sqlite-version.
* doc/lispref/text.texi (Database): Document.
* test/src/sqlite-tests.el (sqlite-returning): `RETURNING` was added
in sqlite 3.35; skip the test for older versions.
2022-11-25 11:03:10 +01:00