]> git.eshelyaron.com Git - emacs.git/log
emacs.git
2 years agoDisplay a message after installing source packages
Philip Kaludercic [Sun, 30 Oct 2022 13:50:09 +0000 (14:50 +0100)]
Display a message after installing source packages

* lisp/emacs-lisp/package-vc.el (package-vc-unpack-1): Print message
and return t.

2 years agoPrefer "Package-Version" over "Version" if available
Philip Kaludercic [Sun, 30 Oct 2022 13:43:10 +0000 (14:43 +0100)]
Prefer "Package-Version" over "Version" if available

* lisp/emacs-lisp/package-vc.el (package-vc-release-rev): Search for
both in sequence.

2 years ago; Avoid a type error on malformed "elpa-packages.eld" input
Philip Kaludercic [Sun, 30 Oct 2022 13:07:56 +0000 (14:07 +0100)]
; Avoid a type error on malformed "elpa-packages.eld" input

* lisp/emacs-lisp/package-vc.el: Use 'eq' instead of '='

2 years agoExtract last source package release from local VCS data
Philip Kaludercic [Sun, 30 Oct 2022 10:43:11 +0000 (11:43 +0100)]
Extract last source package release from local VCS data

* lisp/emacs-lisp/package-vc.el (package-vc-archive-spec-alist):
Unmention :release-rev
(package-vc-desc->spec): Fall back on other archives if a
specification is missing.
(package-vc-main-file): Add new function, copying the behaviour of
elpa-admin.el.
(package-vc-generate-description-file): Use 'package-vc-main-file'.
(package-vc-unpack): Handle special value ':last-release'.
(package-vc-release-rev): Add new function using 'last-change'.
(package-vc-install): Pass ':last-release' as REV instead of a
release.
* lisp/vc/vc-git.el (vc-git-last-change): Add Git 'last-change'
implementation.
* lisp/vc/vc.el (vc-default-last-change): Add default 'last-change'
implementation.

This attempts to replicate the behaviour of elpa-admin.el's
"elpaa--get-last-release-commit".

2 years agoExplicitly handle :vc-backend in a package specification
Philip Kaludercic [Fri, 28 Oct 2022 18:13:28 +0000 (20:13 +0200)]
Explicitly handle :vc-backend in a package specification

* lisp/emacs-lisp/package-vc.el (package-vc-archive-spec-alist):
Document the feature.
(package-vc-unpack): Check for :vc-backend in both PKG-SPEC and the
archive specification data.

2 years agoEnsure that package specifications are always fetched
Philip Kaludercic [Fri, 28 Oct 2022 18:10:30 +0000 (20:10 +0200)]
Ensure that package specifications are always fetched

* lisp/emacs-lisp/package-vc.el (package-vc--archives-initialize): Add
new function, extending 'package--archives-initialize'.
(package-vc-install): Use new function.
(package-vc-link-directory): Use new function.

2 years agoAllow specifying the VC backend used by 'package-vc-install'
Philip Kaludercic [Fri, 28 Oct 2022 18:01:48 +0000 (20:01 +0200)]
Allow specifying the VC backend used by 'package-vc-install'

* lisp/emacs-lisp/package-vc.el (package-vc-install): Add argument BACKEND.

2 years agoUpdate handling for new elpa-packages.eld format
Philip Kaludercic [Fri, 28 Oct 2022 17:58:05 +0000 (19:58 +0200)]
Update handling for new elpa-packages.eld format

* lisp/emacs-lisp/package-vc.el (package-vc-elpa-packages-version):
Add constant.
(package-vc-archive-data-alist): Add variable.
(package-vc--read-archive-data): Separate package specifications from
metadata.
(package-vc-unpack): Check archive metadata.

2 years agoAdd support for :release-rev in 'package-vc-archive-spec-alist'
Philip Kaludercic [Wed, 26 Oct 2022 08:36:20 +0000 (10:36 +0200)]
Add support for :release-rev in 'package-vc-archive-spec-alist'

* lisp/emacs-lisp/package-vc.el (package-vc-archive-spec-alist):
Update docstring.
(package-vc-install): Use :release-rev if invoked with a prefix argument.

2 years ago* doc/emacs/package.texi (Package from Source): Clarify prose
Philip Kaludercic [Sun, 23 Oct 2022 17:03:28 +0000 (19:03 +0200)]
* doc/emacs/package.texi (Package from Source): Clarify prose

2 years ago;Fix typo "pacakge" -> "package"
Philip Kaludercic [Sun, 23 Oct 2022 16:46:25 +0000 (18:46 +0200)]
;Fix typo "pacakge" -> "package"

2 years agoExtract separate function 'package-vc-guess-backend'
Philip Kaludercic [Sun, 23 Oct 2022 16:41:36 +0000 (18:41 +0200)]
Extract separate function 'package-vc-guess-backend'

* lisp/emacs-lisp/package-vc.el (package-vc-guess-backend): New
function.
(package-vc-unpack): Use it.
(package-vc-sourced-packages-list): Use it.
(package-vc-install): Use it.

2 years ago;Fix typo "heusitic" -> "heuristic"
Philip Kaludercic [Sun, 23 Oct 2022 16:38:12 +0000 (18:38 +0200)]
;Fix typo "heusitic" -> "heuristic"

2 years agoUse user option 'package-vc-default-backend' when cloning
Philip Kaludercic [Sun, 23 Oct 2022 16:27:07 +0000 (18:27 +0200)]
Use user option 'package-vc-default-backend' when cloning

* lisp/emacs-lisp/package-vc.el (package-vc-unpack): Respect
'package-vc-default-backend'.

2 years ago; Update 'clone' documentation in header
Philip Kaludercic [Sun, 23 Oct 2022 16:26:17 +0000 (18:26 +0200)]
; Update 'clone' documentation in header

2 years ago; Require map only during compilation
Philip Kaludercic [Sun, 23 Oct 2022 16:20:30 +0000 (18:20 +0200)]
; Require map only during compilation

As map is only used by 'pcase' during macro-expansion, it is not
necessary to load it all the time.

2 years ago; Update TODO list
Philip Kaludercic [Sun, 23 Oct 2022 16:18:37 +0000 (18:18 +0200)]
; Update TODO list

2 years agoImmediately check out the right branch or revision
Philip Kaludercic [Sun, 23 Oct 2022 16:04:55 +0000 (18:04 +0200)]
Immediately check out the right branch or revision

* lisp/emacs-lisp/package-vc.el (package-vc-unpack) Use REV to avoid
checking out the wrong branch/revision first.
* lisp/vc/vc-bzr.el: Handle REV.
* lisp/vc/vc-git.el: Handle REV.
* lisp/vc/vc-hg.el: Handle REV.
* lisp/vc/vc-svn.el: Handle REV.
* lisp/vc/vc.el: Make BACKEND optional and add REV.

2 years ago; Remove unnecessary "TODO"s from the package header
Philip Kaludercic [Sun, 23 Oct 2022 11:15:28 +0000 (13:15 +0200)]
; Remove unnecessary "TODO"s from the package header

2 years ago; Remove unnecessary 'let' binding
Philip Kaludercic [Sun, 23 Oct 2022 11:07:43 +0000 (13:07 +0200)]
; Remove unnecessary 'let' binding

* lisp/emacs-lisp/package-vc.el (pacakge-vc-desc->spec): Simplify function.

2 years agoAdd auxiliary function to query package specifications
Philip Kaludercic [Sun, 23 Oct 2022 11:02:25 +0000 (13:02 +0200)]
Add auxiliary function to query package specifications

* lisp/emacs-lisp/package-vc.el (package-vc-query-spec): Add
inline function.

2 years agoRephrase initial paragraph in "Package from Source" section
Philip Kaludercic [Fri, 21 Oct 2022 22:14:15 +0000 (00:14 +0200)]
Rephrase initial paragraph in "Package from Source" section

* doc/emacs/package.texi (Package from Source): Clarify motivation.

2 years agoRequest "elpa-packages.eld" instead of "elpa-packages"
Philip Kaludercic [Fri, 21 Oct 2022 22:06:02 +0000 (00:06 +0200)]
Request "elpa-packages.eld" instead of "elpa-packages"

* lisp/emacs-lisp/package-vc.el
(package-vc--read-archive-data): Apply change.
(package-vc--download-and-read-archives): Apply change.

2 years agoRemove 'package-vc-install' alias 'package-checkout'
Philip Kaludercic [Fri, 21 Oct 2022 18:39:33 +0000 (20:39 +0200)]
Remove 'package-vc-install' alias 'package-checkout'

* lisp/emacs-lisp/package-vc.el (package-checkout): Remove it.

2 years agoHave 'package-vc-link-directory' use name if given
Philip Kaludercic [Thu, 20 Oct 2022 19:45:17 +0000 (21:45 +0200)]
Have 'package-vc-link-directory' use name if given

* lisp/emacs-lisp/package-vc.el (package-vc-link-directory): Use the
NAME argument.

2 years agoBuild documentation like elpa-admin.el
Philip Kaludercic [Thu, 20 Oct 2022 19:34:48 +0000 (21:34 +0200)]
Build documentation like elpa-admin.el

* lisp/emacs-lisp/package-vc.el (package-vc-build-documentation): Add
function to build a documentation file.
(package-vc-unpack-1): Use 'package-vc-build-documentation'.

2 years agoMerge remote-tracking branch 'origin/master' into feature/package+vc
Philip Kaludercic [Thu, 20 Oct 2022 18:00:32 +0000 (20:00 +0200)]
Merge remote-tracking branch 'origin/master' into feature/package+vc

2 years agoFix ldapsearch output parsing in ldap-search-internal
Filipp Gunbin [Thu, 20 Oct 2022 17:41:00 +0000 (20:41 +0300)]
Fix ldapsearch output parsing in ldap-search-internal

* lisp/net/ldap.el (ldap-search-internal): When parsing output, make
sure that file:// matched before opening the file. (bug#58605)

2 years agoAdd Eglot to the menu bar
Eli Zaretskii [Thu, 20 Oct 2022 17:50:34 +0000 (20:50 +0300)]
Add Eglot to the menu bar

* lisp/progmodes/eglot.el (eglot): Improve the doc string.
* lisp/menu-bar.el (menu-bar-tools-menu): Add Eglot to the menu.

2 years agoMention Eglot in the Emacs user manual
Eli Zaretskii [Thu, 20 Oct 2022 17:17:45 +0000 (20:17 +0300)]
Mention Eglot in the Emacs user manual

* doc/emacs/maintaining.texi (Xref):
* doc/emacs/programs.texi (Symbol Completion, Imenu): Mention Eglot.

2 years ago; Minor copyedits to eglot.texi.
Eli Zaretskii [Thu, 20 Oct 2022 16:02:14 +0000 (19:02 +0300)]
; Minor copyedits to eglot.texi.

2 years ago; * doc/misc/eglot.texi: Fix a typo.
Eli Zaretskii [Thu, 20 Oct 2022 14:08:15 +0000 (17:08 +0300)]
; * doc/misc/eglot.texi: Fix a typo.

2 years ago; * doc/misc/eglot.texi: Undo some recent "fixes" to the Eglot manual.
Eli Zaretskii [Thu, 20 Oct 2022 14:05:01 +0000 (17:05 +0300)]
; * doc/misc/eglot.texi: Undo some recent "fixes" to the Eglot manual.

2 years agoMerge branch 'feature/eglot2emacs'
João Távora [Thu, 20 Oct 2022 12:50:09 +0000 (13:50 +0100)]
Merge branch 'feature/eglot2emacs'

2 years ago; fix warning about order of defvaralias/defconst
João Távora [Thu, 20 Oct 2022 12:49:49 +0000 (13:49 +0100)]
; fix warning about order of defvaralias/defconst

* lisp/progmodes/eglot.el (eglot-{}): Declare alias before thing
  being aliased.

2 years agoMinor fixes to doc/misc/eglot.texi
João Távora [Thu, 20 Oct 2022 11:59:22 +0000 (12:59 +0100)]
Minor fixes to doc/misc/eglot.texi

* doc/misc/eglot.texi (eglot-workspace-configuration): Correct
markup of eglot-{}
(Quick Start): Fix section cross reference.

2 years ago* lisp/info-look.el (mapc): Add Eglot manual's index.
João Távora [Thu, 20 Oct 2022 11:45:31 +0000 (12:45 +0100)]
* lisp/info-look.el (mapc): Add Eglot manual's index.

2 years agoWork around problems setting input focus when a frame is in the background
Po Lu [Sun, 7 Aug 2022 05:46:52 +0000 (13:46 +0800)]
Work around problems setting input focus when a frame is in the background

* src/xterm.c (server_timestamp_predicate, x_get_server_time):
New functions.
(x_ewmh_activate_frame, x_focus_frame, syms_of_xterm): Apply
various workarounds for window manager "focus stealing
prevention".  (bug#57012)

2 years ago* etc/PROBLEMS: Document window manager focus problems.
Po Lu [Sun, 7 Aug 2022 05:49:59 +0000 (13:49 +0800)]
* etc/PROBLEMS: Document window manager focus problems.

2 years agoMerge branch 'feature/eglot-texi-manual' into feature/eglot2emacs
João Távora [Thu, 20 Oct 2022 11:30:49 +0000 (12:30 +0100)]
Merge branch 'feature/eglot-texi-manual' into feature/eglot2emacs

2 years ago; Merge from https://github.com/joaotavora/eglot
João Távora [Thu, 20 Oct 2022 11:16:19 +0000 (12:16 +0100)]
; Merge from https://github.com/joaotavora/eglot

2 years agoRevert "eglot.texi: Make example more realistic" feature/eglot-texi-manual
João Távora [Thu, 20 Oct 2022 10:42:25 +0000 (11:42 +0100)]
Revert "eglot.texi: Make example more realistic"

This quest for realism ignores the fact that a previous example for a
hypothetical language Foo and a language server "fools" already
exists.  It also undermines the intended generality of the
instructions.

This reverts commit 16986a9cc42ef4de580456f4acc5feba682ac8b1.

2 years agoFix Eglot manual's description of eglot-workspace-configuration
João Távora [Thu, 20 Oct 2022 10:20:30 +0000 (11:20 +0100)]
Fix Eglot manual's description of eglot-workspace-configuration

* doc/misc/eglot.texi (Customizing Eglot)
(eglot-workspace-configuration): Explain that plist may be
arbitrarily complex and correctly identify nil as the Elisp
equivalent to JSON null.

2 years agoImprove HERE document detection in perl-mode
Mauro Aranda [Thu, 20 Oct 2022 10:34:38 +0000 (07:34 -0300)]
Improve HERE document detection in perl-mode

* lisp/progmodes/perl-mode.el (perl-syntax-propertize-function):
Detect indented HERE documents when using a bare identifier.
(perl--syntax-exp-intro-keywords): Recognize HERE documents that come
after die, warn and eval.
(perl--syntax-exp-intro-regexp): Identify HERE documents when printing
to a filehandle with printf? and when they appear after a fat comma.

* test/lisp/progmodes/cperl-mode-resources/here-docs.pl: Add more tests.

2 years agoExpose eglot-{} to be used in eglot-workspace-configuration
João Távora [Thu, 20 Oct 2022 10:06:44 +0000 (11:06 +0100)]
Expose eglot-{} to be used in eglot-workspace-configuration

* eglot.el (eglot-{}): New variable alias.

GitHub-reference: per https://github.com/joaotavora/eglot/issues/1084

2 years agoRework header of eglot.el
João Távora [Thu, 20 Oct 2022 09:48:11 +0000 (10:48 +0100)]
Rework header of eglot.el

* eglot.el (Commentary): Rework.

2 years agoDo use eglot-connect-timeout if eglot-sync-connect is t
João Távora [Mon, 10 Oct 2022 12:57:26 +0000 (13:57 +0100)]
Do use eglot-connect-timeout if eglot-sync-connect is t

Reported by Eli Zaretskii <eliz@gnu.org>

* eglot.el (eglot--connect): Use eglot-connect-timeout in the case
eglot-sync-connect is t.

2 years agoeglot.texi: Explain where to find third-party packages
Stefan Kangas [Thu, 20 Oct 2022 09:43:08 +0000 (11:43 +0200)]
eglot.texi: Explain where to find third-party packages

* doc/misc/eglot.texi (Eglot Features): Improve description on
third-party packages.

2 years agoeglot.texi: Make example more realistic
Stefan Kangas [Thu, 20 Oct 2022 09:42:29 +0000 (11:42 +0200)]
eglot.texi: Make example more realistic

* doc/misc/eglot.texi (Eglot and Buffers): Prefer more realistic
*.c instead of *.foo in example.

2 years agoeglot.texi: Move sentence on LSP Servers earlier
Stefan Kangas [Thu, 20 Oct 2022 09:40:37 +0000 (11:40 +0200)]
eglot.texi: Move sentence on LSP Servers earlier

* doc/misc/eglot.texi (Setting Up LSP Servers): Move explanation
on the (lack of) need for customizing servers earlier.

2 years ago; eglot.texi: Fix typos and minor inconsistencies
Stefan Kangas [Thu, 20 Oct 2022 09:38:18 +0000 (11:38 +0200)]
; eglot.texi: Fix typos and minor inconsistencies

* doc/misc/eglot.texi: Fix typos and minor inconsistencies.

2 years ago* doc/misc/Makefile.in (INFO_COMMON): Add eglot.
Stefan Kangas [Thu, 20 Oct 2022 09:02:09 +0000 (11:02 +0200)]
* doc/misc/Makefile.in (INFO_COMMON): Add eglot.

2 years agoPrefer defvar-keymap in modula2.el
Stefan Kangas [Thu, 20 Oct 2022 07:32:58 +0000 (09:32 +0200)]
Prefer defvar-keymap in modula2.el

* lisp/progmodes/modula2.el (m2-mode-map): Prefer defvar-keymap.

2 years ago; Fix documentation and name of 'slovak-qwerty' input method
Eli Zaretskii [Thu, 20 Oct 2022 06:58:18 +0000 (09:58 +0300)]
; Fix documentation and name of 'slovak-qwerty' input method

* etc/NEWS: Fix entry for slovak-qwerty.

* lisp/leim/quail/slovak.el ("slovak", "slovak-qwerty"): Doc fix.

2 years agoAdd 'slovak-querty' input method (bug#58642)
Rudolf Adamkovič [Wed, 19 Oct 2022 18:57:03 +0000 (20:57 +0200)]
Add 'slovak-querty' input method (bug#58642)

* lisp/leim/quail/slovak.el ("slovak-querty"): New input method.
* etc/NEWS: Mention the new 'slovak-querty' input method.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Thu, 20 Oct 2022 04:31:29 +0000 (06:31 +0200)]
Merge from origin/emacs-28

4b2c83eeaf ; * doc/lispref/modes.texi (Defining Minor Modes): Explain...

2 years ago* Fix async native compilation (bug#58637)
Andrea Corallo [Wed, 19 Oct 2022 20:08:41 +0000 (22:08 +0200)]
* Fix async native compilation (bug#58637)

* lisp/emacs-lisp/comp.el (comp--native-compile): Fix gate condition.
(comp-run-async-workers): Add assetion.

2 years ago; * test/lisp/image/wallpaper-tests.el: Simplify last change.
Stefan Kangas [Wed, 19 Oct 2022 18:53:36 +0000 (20:53 +0200)]
; * test/lisp/image/wallpaper-tests.el: Simplify last change.

2 years agoCC Mode: Cease adding types to found-types too eagerly
Alan Mackenzie [Wed, 19 Oct 2022 14:52:14 +0000 (14:52 +0000)]
CC Mode: Cease adding types to found-types too eagerly

This fixes bug #58537 and bug #58539.

* lisp/progmodes/cc-engine.el (c-forward-type): Remove trailing whitespace
from an identifier before passing it to c-add-type.
(c-forward-decl-or-cast-1): CASE 3: Do not recognize two consecutive
identifiers as type + variable/function unless certain conditions are met.
CASE 10: Do not recognize the "type" as a found type unless certain condtions
are met.  (Near end): Do not recognize the identifier in a cast as a type
unless certain conditions are met.

* lisp/progmodes/cc-fonts.el (c-get-fontification-context): Recognize being
in declaration parens when there is a syntactially wrong "foo ((bar))"
preceding the match position.

* lisp/progmodes/cc-mode.el (c-update-new-id): Set c-new-id-is-type
unconditionally to nil to prevent a second identifier being wrongly marked as
a type.

2 years ago; Delete file after wallpaper test
Stefan Kangas [Wed, 19 Oct 2022 14:15:02 +0000 (16:15 +0200)]
; Delete file after wallpaper test

* test/lisp/image/wallpaper-tests.el
(wallpaper-set/calls-init-action): Don't leave temp file behind.

2 years agoFix various builds
Po Lu [Wed, 19 Oct 2022 13:31:54 +0000 (21:31 +0800)]
Fix various builds

* src/xterm.c (x_handle_selection_monitor_event): Adjust for
build without XInput2.
(x_maybe_clear_preedit, xim_destroy_callback): Make conditional
on Release 6 XIM.
(x_get_keyboard_modifiers): Adjust for build without XCB.

2 years agoFix build warning without XKB, Xmb, and XInput 2
Po Lu [Wed, 19 Oct 2022 13:19:08 +0000 (21:19 +0800)]
Fix build warning without XKB, Xmb, and XInput 2

* src/xterm.c (handle_one_xevent): Avoid defining
USE_SAFE_ALLOCA when SAFE_ALLOCA is not actually used.

2 years agoRemove spurious trailing ':' in doc/misc/eglot.texi
João Távora [Wed, 19 Oct 2022 12:23:14 +0000 (13:23 +0100)]
Remove spurious trailing ':' in doc/misc/eglot.texi

* doc/misc/eglot.texi (Customizing Eglot): Remove spurious ':'.

2 years agoTweak some node names in doc/misc/eglot.texi
João Távora [Wed, 19 Oct 2022 12:21:40 +0000 (13:21 +0100)]
Tweak some node names in doc/misc/eglot.texi

"Shutting Down LSP Server" -> "Shutting Down LSP Servers"
"Setting Up LSP Server" -> "Setting Up LSP Servers"

* doc/misc/eglot.texi: Rework node names.

2 years ago; * doc/lispref/modes.texi (Defining Minor Modes): Explain TURN-ON.
Eli Zaretskii [Wed, 19 Oct 2022 11:50:23 +0000 (14:50 +0300)]
; * doc/lispref/modes.texi (Defining Minor Modes): Explain TURN-ON.

2 years ago; Fix last change
Eli Zaretskii [Wed, 19 Oct 2022 11:40:11 +0000 (14:40 +0300)]
; Fix last change

* lisp/leim/quail/indian.el ("tamil99"):
* etc/NEWS: Minor copyedits of the tamil99 documentation.

2 years agoAdd tamil99 input method (bug#58070)
Arun Isaac [Tue, 18 Oct 2022 18:00:59 +0000 (23:30 +0530)]
Add tamil99 input method (bug#58070)

* lisp/leim/quail/indian.el: Require pcase and seq.
("tamil99"): New input method.
* etc/NEWS: Mention new tamil99 input method.

2 years agoAdd admin/emacs-shell-lib for shared bash code
Stefan Kangas [Wed, 19 Oct 2022 11:26:54 +0000 (13:26 +0200)]
Add admin/emacs-shell-lib for shared bash code

* admin/emacs-shell-lib: New file for shared bash code.
* admin/automerge:
* admin/diff-tar-files:
* admin/emacs-shell-lib:
* admin/make-manuals:
* admin/update_autogen:
* admin/upload-manuals: Simplify and improve using above new library.

2 years ago* lib-src/rcs2log: Add fallback for $TMPDIR.
Stefan Kangas [Wed, 19 Oct 2022 06:02:36 +0000 (08:02 +0200)]
* lib-src/rcs2log: Add fallback for $TMPDIR.

2 years agoMerge from origin/emacs-28
Stefan Kangas [Wed, 19 Oct 2022 04:31:16 +0000 (06:31 +0200)]
Merge from origin/emacs-28

efd3ef3ceb ; * src/window.c: Fix some comments.  (Bug#58550)

2 years ago; * src/xterm.c (mark_xterm): Fix x11 with i18n build
Randy Taylor [Tue, 18 Oct 2022 01:29:30 +0000 (21:29 -0400)]
; * src/xterm.c (mark_xterm): Fix x11 with i18n build

2 years ago(sit-for): Add compiler-macro to warn about obsolete calling convention
Stefan Monnier [Tue, 18 Oct 2022 22:43:50 +0000 (18:43 -0400)]
(sit-for): Add compiler-macro to warn about obsolete calling convention

* lisp/subr.el (sit-for): Add compiler-macro.
* lisp/eshell/esh-util.el (eshell-redisplay):
* lisp/play/zone.el (zone, zone-pgm-jitter, zone-pgm-whack-chars):
(zone-remove-text): Avoid obsolete calling convention.

2 years agoRemove modifications to the list of ignored files in source packages
Philip Kaludercic [Tue, 18 Oct 2022 20:44:35 +0000 (22:44 +0200)]
Remove modifications to the list of ignored files in source packages

* lisp/emacs-lisp/package-vc.el (package-vc-unpack-1): Remove
'vc-ignore' calls.

2 years agoUse 'elpa-packages' files for VC metadata
Philip Kaludercic [Tue, 18 Oct 2022 20:34:11 +0000 (22:34 +0200)]
Use 'elpa-packages' files for VC metadata

* lisp/emacs-lisp/package-vc.el (package-vc-default-backend): Add new
option.
(package-vc-archive-spec-alist): Add new variable to store the
contents of 'elpa-packages' for each archive.
(pacakge-vc-desc->spec): Add function to query package specifications.
(package-vc--read-archive-data): Add a 'package-read-archive-hook'
implementation.
(package-vc--download-and-read-archives): Add a
'package-refresh-contents-hook' implementation.
(package-vc-main-file): Remove function.
(package-vc-generate-description-file): Use package specifications.
(package-vc-unpack-1): Adapt to previous changes.
(package-vc-unpack): Adapt to previous changes.
(package-vc-sourced-packages-list): Adapt to previous changes.
(package-vc-install): Adapt to previous changes.
* lisp/emacs-lisp/package.el (package-read-archive-hook): Allow
extending 'package-read-all-archive-contents' using a hook.
(package-read-all-archive-contents): Use 'package-read-archive-hook'.
(package-refresh-contents-hook): Allow extending
'package-refresh-contents' using a hook.
(package-refresh-contents): Use 'package-refresh-contents-hook'.

2 years agoFix functions.texi syntax error
Lars Ingebrigtsen [Tue, 18 Oct 2022 20:17:12 +0000 (22:17 +0200)]
Fix functions.texi syntax error

* doc/lispref/functions.texi (Function Documentation): Fix syntax
error.

2 years agofunctions.texi: Fix bug#58602
Stefan Monnier [Tue, 18 Oct 2022 20:06:42 +0000 (16:06 -0400)]
functions.texi: Fix bug#58602

* doc/lispref/functions.texi (Function Documentation): Document
`:documentation` and `function-documentation`.

2 years agoMerge remote-tracking branch 'origin/master' into feature/package+vc
Philip Kaludercic [Tue, 18 Oct 2022 19:53:25 +0000 (21:53 +0200)]
Merge remote-tracking branch 'origin/master' into feature/package+vc

2 years agoHave 'vc-clone' return a directory
Philip Kaludercic [Tue, 18 Oct 2022 19:21:49 +0000 (21:21 +0200)]
Have 'vc-clone' return a directory

* lisp/vc/vc-bzr.el (vc-bzr-clone): Return directory.
* lisp/vc/vc-git.el (vc-git-clone): Return directory.
* lisp/vc/vc-hg.el (vc-hg-clone): Return directory.
* lisp/vc/vc-svn.el (vc-svn-clone): Return directory.
* lisp/vc/vc.el (vc-clone): Ensure the backend returns directory.

2 years ago* lisp/outline.el (outline-minor-mode-insert-buttons): New defvar-local.
Juri Linkov [Tue, 18 Oct 2022 18:13:29 +0000 (21:13 +0300)]
* lisp/outline.el (outline-minor-mode-insert-buttons): New defvar-local.

(outline--make-button-overlay, outline--insert-open-button)
(outline--insert-close-button): Insert button when
outline-minor-mode-insert-buttons is non-nil, otherwise
put an overlay with before-string.  (bug#57813)

* lisp/help.el (describe-bindings): Set buffer-local
outline-minor-mode-insert-buttons to t.

* lisp/textmodes/emacs-news-mode.el (emacs-news--mode-common):
Set buffer-local outline-minor-mode-use-margins to t.  Don't set
outline-regexp for leading spaces because now spaces are not added
in the NEWS buffer.

2 years ago* lisp/outline.el: Use one character wide strings for margins (bug#57813)
Juri Linkov [Tue, 18 Oct 2022 18:05:15 +0000 (21:05 +0300)]
* lisp/outline.el: Use one character wide strings for margins (bug#57813)

(outline-open-in-margins, outline-close-in-margins)
(outline-close-rtl-in-margins): Add 1-char emoji, symbol, text
for margins that are 1-column wide.
(outline-minor-mode): Force display of margins only for the selected buffer.

2 years ago* lisp/net/tramp.el (tramp-file-name-equal-p): Fix docstring.
Michael Albinus [Tue, 18 Oct 2022 17:39:34 +0000 (19:39 +0200)]
* lisp/net/tramp.el (tramp-file-name-equal-p): Fix docstring.

2 years ago* etc/NEWS: Adapt connection-local variables entries.
Michael Albinus [Tue, 18 Oct 2022 17:39:23 +0000 (19:39 +0200)]
* etc/NEWS: Adapt connection-local variables entries.

2 years ago* .gitignore: Unignore the tests/manual directory. (Bug#58611)
Matt Armstrong [Tue, 18 Oct 2022 15:29:49 +0000 (08:29 -0700)]
* .gitignore: Unignore the tests/manual directory.  (Bug#58611)

2 years ago(byte-compile--first-symbol-with-pos): Fix bug#58601
Stefan Monnier [Tue, 18 Oct 2022 14:49:43 +0000 (10:49 -0400)]
(byte-compile--first-symbol-with-pos): Fix bug#58601

* lisp/emacs-lisp/bytecomp.el: Require `subr-x`.
(byte-compile--first-symbol-with-pos): Avoid inf-loops on circular data.

2 years agoMore minor fixes to doc/misc/eglot.texi
João Távora [Tue, 18 Oct 2022 13:46:27 +0000 (14:46 +0100)]
More minor fixes to doc/misc/eglot.texi

Most, if not all of these, were previously discussed with Eli.

* doc/misc/eglot.texi (Setting Up LSP Server): Fix repetition of
"This variable".
(Setting Up LSP Server): Explain that single a running instance
supports multiple major modes.
(Starting Eglot, Eglot and Buffers): Correctly describe mode-line indication.
(Eglot Features): Suggest that company-mode is just one of the
possible packages.  Explain that Eglot arranges for the completion
package to "instantiate" snippets.  Could have used "expand".
Mention benefits of having the popular markdown-mode available.
(Eglot Commands): Explain how eglot-reconnect and
eglot-clear-status are useful.
(Eglot Variables): Clarify when eglot-autoreconnect is useful.
Clarify how eglot-sync-connect and eglot-connect-timeout relate to
each other.  Clarify semantics of
eglot-confirm-server-initiated-edits.

2 years agoMinor stylistic fixes to introduction of doc/misc/eglot.texi
João Távora [Tue, 18 Oct 2022 11:46:48 +0000 (12:46 +0100)]
Minor stylistic fixes to introduction of doc/misc/eglot.texi

* doc/misc/eglot.texi (title): Add "the".
(Top): Fix sentence structure in top-level
introduction.

2 years agoRegenerated ldefs-boot.el
Lars Ingebrigtsen [Tue, 18 Oct 2022 11:17:59 +0000 (13:17 +0200)]
Regenerated ldefs-boot.el

2 years agoFix previous loaddefs-gen fix
Lars Ingebrigtsen [Tue, 18 Oct 2022 11:17:52 +0000 (13:17 +0200)]
Fix previous loaddefs-gen fix

2 years agoAdd new Texinfo manual for the Eglot LSP client
Eli Zaretskii [Tue, 18 Oct 2022 11:17:51 +0000 (12:17 +0100)]
Add new Texinfo manual for the Eglot LSP client

* doc/misc/eglot.texi: New file.

2 years agoFix faulty loaddefs detection
Lars Ingebrigtsen [Tue, 18 Oct 2022 11:14:08 +0000 (13:14 +0200)]
Fix faulty loaddefs detection

* lisp/emacs-lisp/loaddefs-gen.el
(loaddefs-generate--emacs-batch): Fix faulty loaddefs detection.

2 years ago* lisp/progmodes/cc-defs.el Remove setting of inhibit-point-motion-hooks
Alan Mackenzie [Tue, 18 Oct 2022 10:00:26 +0000 (10:00 +0000)]
* lisp/progmodes/cc-defs.el Remove setting of inhibit-point-motion-hooks

2 years agoRegenerate ldefs-boot.el
Lars Ingebrigtsen [Tue, 18 Oct 2022 09:18:16 +0000 (11:18 +0200)]
Regenerate ldefs-boot.el

2 years ago* Prevent potential native compilation infinite recursions
Andrea Corallo [Fri, 14 Oct 2022 22:59:55 +0000 (00:59 +0200)]
* Prevent potential native compilation infinite recursions

* lisp/emacs-lisp/comp.el (comp-no-spawn): New var.
(comp-subr-trampoline-install, comp-final, comp-run-async-workers)
(comp--native-compile): Update.

2 years ago; Fix some invalid Eshell syntax in an example
Jim Porter [Tue, 18 Oct 2022 04:25:37 +0000 (21:25 -0700)]
; Fix some invalid Eshell syntax in an example

* doc/misc/eshell.texi (Expansion):
* etc/NEWS: Fix invalid Eshell syntax.

2 years agoPrint the correct $PATH when Eshell's 'which' fails to find a command
Jim Porter [Thu, 15 Sep 2022 19:32:02 +0000 (12:32 -0700)]
Print the correct $PATH when Eshell's 'which' fails to find a command

* lisp/eshell/esh-cmd.el (eshell/which): Use 'eshell-get-path'
(bug#20008).

2 years agoImprove handling of $PATH in Eshell for remote directories
Jim Porter [Thu, 15 Sep 2022 19:24:37 +0000 (12:24 -0700)]
Improve handling of $PATH in Eshell for remote directories

* lisp/eshell/esh-util.el (eshell-path-env, eshell-parse-colon-path):
Make obsolete.
(eshell-path-env-list): New variable.
(eshell-connection-default-profile): New connection-local profile.
(eshell-get-path): Reimplement using 'eshell-path-env-list'; add
LITERAL-P argument.
(eshell-set-path): New function.

* lisp/eshell/esh-var.el (eshell-variable-aliases-list): Add entry for
$PATH.
(eshell-var-initialize): Add 'eshell-path-env-list' to
'eshell-subcommand-bindings'.

* lisp/eshell/esh-ext.el (eshell-search-path): Use 'file-name-concat'
instead of 'concat'.
(eshell/addpath): Use 'eshell-get-path' and 'eshell-set-path'.

* lisp/net/tramp-integration.el: Only apply Eshell hooks when
'eshell-path-env-list' is unbound.

* test/lisp/eshell/esh-var-tests.el
(esh-var-test/path-var/local-directory)
(esh-var-test/path-var/remote-directory, esh-var-test/path-var/set)
(esh-var-test/path-var/set-locally)
(esh-var-test/path-var-preserve-across-hosts): New tests.

* test/lisp/eshell/esh-ext-tests.el: New file.

* test/lisp/eshell/eshell-tests-helpers.el
(with-temp-eshell): Set 'eshell-last-dir-ring-file-name' to nil.
(eshell-tests-remote-accessible-p, eshell-last-input)
(eshell-last-output): New functions.
(eshell-match-output, eshell-match-output--explainer): Use
'eshell-last-input' and 'eshell-last-output'.

* doc/misc/eshell.texi (Variables): Document $PATH.

* etc/NEWS: Announce this change (bug#57556).

2 years agoAllow setting the values of variable aliases in Eshell
Jim Porter [Mon, 26 Sep 2022 04:47:26 +0000 (21:47 -0700)]
Allow setting the values of variable aliases in Eshell

This makes commands like "COLUMNS=40 some-command" work as expected.

* lisp/eshell/esh-cmd.el (eshell-subcommand-bindings): Remove
'process-environment' from here...

* lisp/eshell/esh-var.el (eshell-var-initialize): ... and add to here,
along with 'eshell-variable-aliases-list'.
(eshell-inside-emacs): Convert to a 'defvar-local' to make it settable
in a particular Eshell buffer.
(eshell-variable-aliases-list): Make $?, $$, and $* read-only and
update docstring.
(eshell-set-variable): New function...
(eshell-handle-local-variables, eshell/export, eshell/unset): ... use
it.
(eshell/set, pcomplete/eshell-mode/set): New functions.
(eshell-get-variable): Get the variable alias's getter function when
appropriate and use a safer method for checking function arity.

* test/lisp/eshell/esh-var-tests.el (esh-var-test/set/env-var)
(esh-var-test/set/symbol, esh-var-test/unset/env-var)
(esh-var-test/unset/symbol, esh-var-test/setq, esh-var-test/export)
(esh-var-test/local-variables, esh-var-test/alias/function)
(esh-var-test/alias/function-pair, esh-var-test/alias/string)
(esh-var-test/alias/string/prefer-lisp, esh-var-test/alias/symbol)
(esh-var-test/alias/symbol-pair, esh-var-test/alias/export)
(esh-var-test/alias/local-variables): New tests.

* doc/misc/eshell.texi (Built-ins): Add 'set' and update 'unset'
documentation.
(Variables): Expand documentation of how to get/set variables.

2 years ago; Obsolete 'eshell/define'
Jim Porter [Wed, 28 Sep 2022 16:34:38 +0000 (09:34 -0700)]
; Obsolete 'eshell/define'

* lisp/eshell/esh-var.el (eshell/define): Make obsolete, and explain
its current state.

* doc/misc/eshell.texi (Built-ins): Remove 'define'.

2 years ago; Allow ignoring errors when calling 'eshell-match-command-output'
Jim Porter [Sun, 25 Sep 2022 01:13:03 +0000 (18:13 -0700)]
; Allow ignoring errors when calling 'eshell-match-command-output'

* test/lisp/eshell/eshell-tests-helpers.el
(eshell-match-command-output): New argument IGNORE-ERRORS.

* test/lisp/eshell/esh-var-tests.el
(esh-var-test/last-status-var-lisp-command)
(esh-var-test/last-status-var-lisp-form)
(esh-var-test/last-status-var-lisp-form-2): Ignore errors when calling
'eshell-match-command-output'.

2 years agoAdd helpers to dynamically assign connection-local values
Jim Porter [Wed, 12 Oct 2022 05:11:04 +0000 (22:11 -0700)]
Add helpers to dynamically assign connection-local values

* lisp/files-x.el (connection-local-criteria)
(connection-local-profile-name-for-setq): New variables.
(with-connection-local-variables-1): ... let-bind them here.
(connection-local-update-profile-variables)
(connection-local-profile-name-for-criteria): New functions.
(with-connection-local-application-variables, setq-connection-local):
New macros.

* test/lisp/files-x-tests.el: Require 'tramp-integration'
(files-x-test--variable5, remote-lazy-var): New variables.
(files-x-test-hack-connection-local-variables-apply): Expand checks.
(files-x-test-with-connection-local-variables): Remove
'hack-connection-local-variables-apply' check (it belongs in the above
test), and expand some other checks.
(files-x-test--get-lazy-var, files-x-test--set-lazy-var): New
functions.
(files-x-test-connection-local-update-profile-variables)
(files-x-test-setq-connection-local): New tests.

* doc/lispref/variables.texi (Connection Local Variables): Split into
two subsections and document the new features.

* etc/NEWS: Announce 'setq-connection-local'.