Philip Kaludercic
e31c84f4e7
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.
2022-10-23 18:41:36 +02:00
Philip Kaludercic
a3cd8d43ae
;Fix typo "heusitic" -> "heuristic"
2022-10-23 18:38:12 +02:00
Philip Kaludercic
ca61e768d0
Use user option 'package-vc-default-backend' when cloning
...
* lisp/emacs-lisp/package-vc.el (package-vc-unpack): Respect
'package-vc-default-backend'.
2022-10-23 18:27:07 +02:00
Philip Kaludercic
dbcd663715
; Update 'clone' documentation in header
2022-10-23 18:26:17 +02:00
Philip Kaludercic
85555ad3b7
; 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.
2022-10-23 18:20:30 +02:00
Philip Kaludercic
0e6452ccd7
; Update TODO list
2022-10-23 18:18:37 +02:00
Philip Kaludercic
2154219059
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.
2022-10-23 18:04:55 +02:00
Philip Kaludercic
a0532e148c
; Remove unnecessary "TODO"s from the package header
2022-10-23 13:15:28 +02:00
Philip Kaludercic
ab46a0df7b
; Remove unnecessary 'let' binding
...
* lisp/emacs-lisp/package-vc.el (pacakge-vc-desc->spec): Simplify function.
2022-10-23 13:07:48 +02:00
Philip Kaludercic
7640b0751b
Add auxiliary function to query package specifications
...
* lisp/emacs-lisp/package-vc.el (package-vc-query-spec): Add
inline function.
2022-10-23 13:02:25 +02:00
Philip Kaludercic
aaa5ae90a9
Rephrase initial paragraph in "Package from Source" section
...
* doc/emacs/package.texi (Package from Source): Clarify motivation.
2022-10-22 00:14:15 +02:00
Philip Kaludercic
ab283bddb2
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.
2022-10-22 00:06:04 +02:00
Philip Kaludercic
5694278af3
Remove 'package-vc-install' alias 'package-checkout'
...
* lisp/emacs-lisp/package-vc.el (package-checkout): Remove it.
2022-10-21 20:39:33 +02:00
Philip Kaludercic
faeb66ae42
Have 'package-vc-link-directory' use name if given
...
* lisp/emacs-lisp/package-vc.el (package-vc-link-directory): Use the
NAME argument.
2022-10-20 21:45:17 +02:00
Philip Kaludercic
2dabcba148
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'.
2022-10-20 21:34:48 +02:00
Philip Kaludercic
37bfb623e4
Merge remote-tracking branch 'origin/master' into feature/package+vc
2022-10-20 20:00:32 +02:00
Filipp Gunbin
937ae0cf55
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)
2022-10-20 20:52:11 +03:00
Eli Zaretskii
1324baea72
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.
2022-10-20 20:50:34 +03:00
Eli Zaretskii
3bab832894
Mention Eglot in the Emacs user manual
...
* doc/emacs/maintaining.texi (Xref):
* doc/emacs/programs.texi (Symbol Completion, Imenu): Mention Eglot.
2022-10-20 20:17:45 +03:00
Eli Zaretskii
5c99112e89
; Minor copyedits to eglot.texi.
2022-10-20 19:02:14 +03:00
Eli Zaretskii
c44ea4548d
; * doc/misc/eglot.texi: Fix a typo.
2022-10-20 17:08:15 +03:00
Eli Zaretskii
a549316c7d
; * doc/misc/eglot.texi: Undo some recent "fixes" to the Eglot manual.
2022-10-20 17:05:01 +03:00
João Távora
83fbda7159
Merge branch 'feature/eglot2emacs'
2022-10-20 13:50:09 +01:00
João Távora
8b3a700327
; fix warning about order of defvaralias/defconst
...
* lisp/progmodes/eglot.el (eglot-{}): Declare alias before thing
being aliased.
2022-10-20 13:49:49 +01:00
João Távora
785197a076
Minor fixes to doc/misc/eglot.texi
...
* doc/misc/eglot.texi (eglot-workspace-configuration): Correct
markup of eglot-{}
(Quick Start): Fix section cross reference.
2022-10-20 13:00:32 +01:00
João Távora
69abb438b8
* lisp/info-look.el (mapc): Add Eglot manual's index.
2022-10-20 12:45:31 +01:00
Po Lu
6f3ade1c08
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)
2022-10-20 19:30:50 +08:00
Po Lu
e0616f2d3c
* etc/PROBLEMS: Document window manager focus problems.
2022-10-20 19:30:50 +08:00
João Távora
df31a36f69
Merge branch 'feature/eglot-texi-manual' into feature/eglot2emacs
2022-10-20 12:30:49 +01:00
João Távora
0186faf2a1
; Merge from https://github.com/joaotavora/eglot
2022-10-20 12:16:19 +01:00
João Távora
0e7361a5cc
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 16986a9cc4 .
2022-10-20 11:42:25 +01:00
João Távora
2a9797b422
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.
2022-10-20 11:40:45 +01:00
Mauro Aranda
7ee5b0f85f
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.
2022-10-20 07:34:38 -03:00
João Távora
806734c1b1
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
2022-10-20 11:10:06 +01:00
João Távora
9801e217f9
Rework header of eglot.el
...
* eglot.el (Commentary): Rework.
2022-10-20 10:50:47 +01:00
João Távora
eb9d6281b5
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.
2022-10-20 10:50:47 +01:00
Stefan Kangas
5d73bc5c69
eglot.texi: Explain where to find third-party packages
...
* doc/misc/eglot.texi (Eglot Features): Improve description on
third-party packages.
2022-10-20 11:44:02 +02:00
Stefan Kangas
16986a9cc4
eglot.texi: Make example more realistic
...
* doc/misc/eglot.texi (Eglot and Buffers): Prefer more realistic
*.c instead of *.foo in example.
2022-10-20 11:43:52 +02:00
Stefan Kangas
2d2cdb4741
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.
2022-10-20 11:43:40 +02:00
Stefan Kangas
4725c123f3
; eglot.texi: Fix typos and minor inconsistencies
...
* doc/misc/eglot.texi: Fix typos and minor inconsistencies.
2022-10-20 11:43:25 +02:00
Stefan Kangas
0c7024d0d9
* doc/misc/Makefile.in (INFO_COMMON): Add eglot.
2022-10-20 11:02:19 +02:00
Stefan Kangas
25cf39162e
Prefer defvar-keymap in modula2.el
...
* lisp/progmodes/modula2.el (m2-mode-map): Prefer defvar-keymap.
2022-10-20 09:36:11 +02:00
Eli Zaretskii
663fad561d
; 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.
2022-10-20 09:58:18 +03:00
Rudolf Adamkovič
fa7c5c8707
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.
2022-10-20 09:49:34 +03:00
Stefan Kangas
d8eae291e5
Merge from origin/emacs-28
...
4b2c83eeaf ; * doc/lispref/modes.texi (Defining Minor Modes): Explain...
2022-10-20 06:31:29 +02:00
Andrea Corallo
56c63ca21b
* Fix async native compilation (bug#58637)
...
* lisp/emacs-lisp/comp.el (comp--native-compile): Fix gate condition.
(comp-run-async-workers): Add assetion.
2022-10-19 22:21:03 +02:00
Stefan Kangas
a57a3746d8
; * test/lisp/image/wallpaper-tests.el: Simplify last change.
2022-10-19 20:53:36 +02:00
Alan Mackenzie
fb8276a17c
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.
2022-10-19 14:52:14 +00:00
Stefan Kangas
b96f441139
; Delete file after wallpaper test
...
* test/lisp/image/wallpaper-tests.el
(wallpaper-set/calls-init-action): Don't leave temp file behind.
2022-10-19 16:20:02 +02:00
Po Lu
6b82958b9f
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.
2022-10-19 21:33:05 +08:00