Po Lu
ea70e545c9
Fix delivery of window manager ping events during menu
...
* oldXMenu/Activate.c (XMenuActivateSetExposeFunction)
(XMenuActivate):
* oldXMenu/XMenu.h: Remove expose functions.
* src/msdos.h (XMenuSetAEQ): Remove no longer used function.
* src/xmenu.c (x_menu_expose_event): Delete function.
(x_menu_dispatch_event): New function.
(x_menu_show): Set it as the XMenu event handler.
2022-10-21 19:19:48 +08:00
Mauro Aranda
4b40b790ae
Fix last change in perl-mode
...
* lisp/progmodes/perl-mode.el (perl--syntax-exp-intro-regexp): Escape
$. Reported by Mattias Engdegård.
2022-10-21 07:45:27 -03:00
Brian Leung
3ad9ac25a8
Add the "nil" language server to eglot-server-programs
...
* lisp/progmodes/eglot.el (eglot-server-programs): Add the "nil"
language server. Put it before rnix-lsp since it is more featureful
and more actively updated. (Bug#58676)
Ref: https://github.com/oxalica/nil
2022-10-21 10:20:20 +02:00
Brian Leung
81177e77cf
Add lua-language-server to eglot-server-programs
...
* lisp/progmodes/eglot.el (eglot-server-programs): Add
lua-language-server. It is, at the time of writing, more actively
developed and more popular than the lua-lsp server, so prioritize
that. (Bug#58676)
2022-10-21 10:20:20 +02:00
Basil L. Contovounesios
2a84f78419
; * doc/misc/eglot.texi (Top): Fix markup/typo.
2022-10-21 00:54:31 +03:00
Eli Zaretskii
f61db42fc5
; * etc/NEWS: Mention Eglot.
2022-10-20 22:03:12 +03: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
Po Lu
ccd0ad72f2
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.
2022-10-19 21:33:05 +08:00
João Távora
20d4477120
Remove spurious trailing ':' in doc/misc/eglot.texi
...
* doc/misc/eglot.texi (Customizing Eglot): Remove spurious ':'.
2022-10-19 13:23:14 +01:00
João Távora
7a551e9200
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.
2022-10-19 13:21:40 +01:00
Eli Zaretskii
4b2c83eeaf
; * doc/lispref/modes.texi (Defining Minor Modes): Explain TURN-ON.
2022-10-19 14:50:23 +03:00
Eli Zaretskii
084ac1e514
; Fix last change
...
* lisp/leim/quail/indian.el ("tamil99"):
* etc/NEWS: Minor copyedits of the tamil99 documentation.
2022-10-19 14:40:11 +03:00
Arun Isaac
45ca261c98
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.
2022-10-19 14:35:32 +03:00
Stefan Kangas
a9111d8670
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.
2022-10-19 13:26:54 +02:00
Stefan Kangas
5247a72aec
* lib-src/rcs2log: Add fallback for $TMPDIR.
2022-10-19 08:02:36 +02:00
Stefan Kangas
e42a68720e
Merge from origin/emacs-28
...
efd3ef3ceb ; * src/window.c: Fix some comments. (Bug#58550)
2022-10-19 06:31:16 +02:00
Randy Taylor
620f18c489
; * src/xterm.c (mark_xterm): Fix x11 with i18n build
2022-10-19 08:55:44 +08:00