João Távora
d2f95ea44c
Jsonrpc: better initforms in jsonrpc-connection
...
* lisp/jsonrpc.el (jsonrpc-connection): Better initforms
2023-12-14 00:55:52 +00:00
João Távora
8de749faa1
Jsonrpc: allow method identifiers to be simply strings
...
* lisp/jsonrpc.el (jsonrpc-connection-send): Support string methods.
2023-12-14 00:55:52 +00:00
Michael Albinus
33aa46fe94
Improve tramp-compat-connection-local-p
...
* lisp/net/tramp-compat.el (tramp-compat-connection-local-p):
Make it compatible with Emacs 27.
2023-12-13 13:20:43 +01:00
Andrea Corallo
281a16d15f
* configure.ac: Fix '--without-all' if libgccjit installed (bug#67799)
2023-12-13 12:25:23 +01:00
Eric Abrahamsen
75fd7550ed
Provide option to forward Gnus messages with all (most) headers
...
Bug#67520
* lisp/gnus/gnus-msg.el (gnus-summary-mail-forward): Accept symbolic
prefix to let-bind message-forward-included-headers to nil, which will
include most original message headers in the forwarded copy.
(gnus-summary-post-forward): Corresponding arglist update.
2023-12-12 10:01:31 -08:00
Michael Albinus
67654fe965
New macro connection-local-p
...
* doc/lispref/variables.texi (Applying Connection Local Variables):
Add macro 'connection-local-p'.
* etc/NEWS: Add macro `connection-local-p'.
* lisp/files-x.el (connection-local-p): New macro.
(connection-local-value): Add debug declaration.
* lisp/net/tramp-compat.el (tramp-compat-connection-local-p): New macro.
* lisp/net/tramp-crypt.el (tramp-crypt-cleanup-connection):
Bind `tramp-crypt-enabled'.
* test/lisp/files-x-tests.el (files-x-test-connection-local-value):
* test/lisp/net/tramp-tests.el (tramp-test18-file-attributes)
(tramp-test35-remote-path): Adapt tests.
2023-12-12 17:39:51 +01:00
Juri Linkov
6abea4d98d
Fix typo in commit 3c09314895
...
* lisp/minibuffer.el (minibuffer-completion-help):
Set t to LOCAL arg of add-hook for after-change-functions.
2023-12-11 19:16:37 +02:00
Po Lu
9434ad25ce
Introduce menus beneath new chapters in the Transient menu
...
* doc/misc/transient.texi (Usage)
(Modifying Existing Transients): Insert menus from which Texinfo
4.13 can infer Prev and Next nodes.
2023-12-11 11:39:00 +08:00
Po Lu
1ec8e76bcf
Correct implementation of UTP
...
* src/sfnt.c (sfnt_interpret_utp): Derive which flags to reset
from the freedom vector.
2023-12-11 11:28:34 +08:00
Dmitry Gutov
64cdcf7f51
project-any-command: Use 'project-aware'
...
* lisp/progmodes/project.el (project-any-command): Change the
symbol it's looking for to 'project-aware'. Seems to convey the
semantics best.
2023-12-11 03:19:11 +02:00
Stefan Kangas
9ee911ce31
Mark ;#@ as :safe for asm-comment-char
...
* lisp/progmodes/asm-mode.el (asm--safe-comment-char-p): New function
that returns true for characters #, @, and ;.
(asm-comment-char): Use new function as :safe predicate.
2023-12-10 22:19:12 +01:00
Stefan Kangas
c3b41c123a
; Use ?c instead of integer in local variables
...
* exec/loader-armeabi.s (timespec):
* exec/loader-mips64el.s (__start):
* exec/loader-mipsel.s (__start): Use ?c instead of integer in local
variables.
2023-12-10 22:09:56 +01:00
Eli Zaretskii
0da2a4650c
Merge from origin/emacs-29
...
2773cf9e01 ; Fix typos
020aff95fa ; Fix typos in ChangeLog files
5e03a621ef ; * lisp/progmodes/c-ts-mode.el (c-ts-mode--else-heuristi...
f0734e1c0d Fix c-ts-mode indent heuristic (bug#67417)
08fc6bace2 Fix c-ts-mode indentation (bug#67357)
71bc2815cc Add font-locking for hash-bang lines in typescript-ts-mode.
db8347c8c8 Add font-locking for hash-bang lines in js-ts-mode
91f2ade57b ruby-mode: Better detect regexp vs division (bug#67569)
2023-12-10 10:35:54 -05:00
Michael Albinus
fab48f1a54
; Fix error in my last commit
...
* lisp/files-x.el (hack-connection-local-variables): Autoload.
(connection-local-value): Revert previous fix.
2023-12-10 15:15:12 +01:00
Po Lu
79aca35c1f
* lisp/files-x.el (connection-local-value): Fix Dired crash.
2023-12-10 22:05:51 +08:00
Stefan Kangas
da8fd95cdb
Update publicsuffix.txt from upstream
...
* etc/publicsuffix.txt: Update from
https://publicsuffix.org/list/public_suffix_list.dat
dated 2023-12-06 20:17:45 UTC.
2023-12-10 14:44:41 +01:00
Stefan Kangas
7d283ca1a3
; Fix a few more typos
2023-12-10 14:06:45 +01:00
Stefan Kangas
06a12b0ccc
; Fix typos
2023-12-10 13:22:04 +01:00
Stefan Kangas
2773cf9e01
; Fix typos
2023-12-10 12:39:54 +01:00
Stefan Kangas
020aff95fa
; Fix typos in ChangeLog files
2023-12-10 12:38:19 +01:00
Michael Albinus
1d5028ad04
dired-listing-switches handles connection-local values if exist
...
* doc/emacs/dired.texi (Dired Enter):
* doc/misc/tramp.texi (Frequently Asked Questions):
* etc/NEWS: 'dired-listing-switches' handles connection-local
values if exist.
* doc/lispref/variables.texi (Applying Connection Local Variables):
Fix decription of connection-local-default-application.
* lisp/dired.el (dired-listing-switches): Adapt docstring.
(dired-internal-noselect, dired-mode):
* lisp/dired-x.el (dired-virtual):
* lisp/files.el (recover-file, recover-session):
* lisp/net/ange-ftp.el (ange-ftp-get-files): Use connection-local
value of `dired-listing-switches'.
* lisp/files-x.el (connection-local-value): Adapt docstring.
* lisp/man.el (Man-shell-file-name): Use `connection-local-value'.
2023-12-10 12:26:38 +01:00
Eli Zaretskii
5e03a621ef
; * lisp/progmodes/c-ts-mode.el (c-ts-mode--else-heuristic): Doc fix.
2023-12-10 11:41:35 +02:00
Yuan Fu
f0734e1c0d
Fix c-ts-mode indent heuristic (bug#67417)
...
This is a continuation of the first two patches for bug#67417. The
c-ts-mode--prev-line-match heuristic we added is too broad, so for now
we are just adding a very specific heuristic for the else case.
* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--prev-line-match): Remove function.
(c-ts-mode--else-heuristic): New function.
(c-ts-mode--indent-styles): Use c-ts-mode--else-heuristic.
2023-12-10 01:24:25 -08:00
nverno
08fc6bace2
Fix c-ts-mode indentation (bug#67357)
...
1. In a compund_statement, we indent the first sibling against the
parent, and the rest siblings against their previous sibling. But
this strategy falls apart when the first sibling is not on its own
line. We should regard the first sibling that is on its own line as
the "first sibling"", and indent it against the parent.
2. In linux style, in a do-while statement, if the do-body is
bracket-less, the "while" keyword is indented to the same level as the
do-body. It should be indented to align with the "do" keyword
instead.
* lisp/progmodes/c-ts-mode.el:
(c-ts-mode--no-prev-standalone-sibling): New function.
(c-ts-mode--indent-styles): Use
c-ts-mode--no-prev-standalone-sibling. Add while keyword indent rule.
* test/lisp/progmodes/c-ts-mode-resources/indent.erts: New tests.
2023-12-10 01:05:22 -08:00
nverno
71bc2815cc
Add font-locking for hash-bang lines in typescript-ts-mode.
...
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--font-lock-settings):
Add font-lock for hash bang line.
2023-12-10 04:50:06 +02:00
nverno
db8347c8c8
Add font-locking for hash-bang lines in js-ts-mode
...
* lisp/progmodes/js.el (js--treesit-font-lock-settings):
Add font-lock for hash bang line.
2023-12-10 04:49:06 +02:00
Stefan Monnier
213d30b3ea
Tweak doc of analyze-text-conversion vs post-self-insert-hook
...
* lisp/simple.el (analyze-text-conversion): Fix typo.
* lisp/progmodes/cc-mode.el (c-initialize-cc-mode): Add comment about
`post-text-conversion-hook`.
2023-12-09 18:03:48 -05:00
Dmitry Gutov
91f2ade57b
ruby-mode: Better detect regexp vs division (bug#67569)
...
* lisp/progmodes/ruby-mode.el (ruby-syntax-before-regexp-re):
Add grouping around methods from the whitelist.
(ruby-syntax-propertize): Also look for spaces around the slash.
2023-12-09 19:04:55 +02:00
Manuel Giraud
127de202b8
Fix desktop-save for dired buffers (bug#66697)
...
* lisp/dired.el (dired-desktop-save-p): Move all logic here. Carry on
when 'desktop-files-not-to-save' is nil.
(dired-desktop-buffer-misc-data): Use it.
2023-12-09 15:15:36 +02:00
Eli Zaretskii
20be8ed61f
; Auto-commit of loaddefs files.
2023-12-09 07:59:08 -05:00
Eli Zaretskii
ffe25471dd
; * lisp/progmodes/gud.el (lldb): Fix trailing whitespace.
2023-12-09 07:57:35 -05:00
Eli Zaretskii
93592c6917
; * doc/misc/modus-themes.org: Fix merge snafu.
2023-12-09 07:46:45 -05:00
Eli Zaretskii
486094126b
Merge from origin/emacs-29
...
0f361cc985 ; Minor copyedits in description of ':box' face property
46fe7a17f5 Fix dragging mode line on text terminals with a mouse (bu...
12daf386f3 ; * doc/lispref/processes.texi (Network): Fix wording and...
037d858dc1 (rust-ts-mode): Set electric-indent-chars
dc9b733ab8 js-ts-mode: Highlight function parameters inside destruct...
4a72f13bdf js-ts-mode: Highlight property shorthands in assignments
83ed9018ed (js--treesit-font-lock-settings): Highlight parameters in...
ad0f87bb4c (js--treesit-font-lock-settings): Remove some duplicates
71c5f3694f ; Another fix of doc string of 'message-mail-user-agent' ...
04a39353ba ; * lisp/gnus/message.el (message-mail-user-agent): Doc f...
82ddcf37ec ; * doc/lispref/files.texi (Changing Files): Fix last cha...
89068516b3 Don't claim to signal an error when deleting a nonexistin...
4fd254e183 * lisp/indent.el (indent-rigidly): Improve prompt (bug#67...
5f923ff1a6 ; Fix typos
a1f88963f5 rust-ts-mode--comment-docstring: Handle block doc comments
a547b0e2e8 rust-ts-mode--comment-docstring: Fix/improve the previous...
2023-12-09 07:25:21 -05:00
Eli Zaretskii
0f361cc985
; Minor copyedits in description of ':box' face property
...
* doc/lispref/display.texi (Face Attributes): Rearrange
description of ':box' attributes. Suggested by Arash Esbati
<arash@gnu.org>. (Bug#67713)
2023-12-09 13:05:07 +02:00
Eli Zaretskii
598ab9ca10
; Fix documentation of register-preview changes
...
* etc/NEWS: Fix wording of 'register-use-preview' entry.
* lisp/register.el (register-use-preview): Doc fix. Add ':version'.
2023-12-09 12:02:48 +02:00
Michael Albinus
ca709f9c06
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
2023-12-09 10:25:58 +01:00
Vladimir Kazanov
a3a7613fd9
Document ert-font-lock
...
* doc/misc/ert.texi: Expand the manual.
* etc/NEWS: Mention ert-font-lock.
2023-12-09 10:25:26 +01:00
Michael Albinus
1908d2aefb
New macro connection-local-value
...
* doc/lispref/variables.texi (Applying Connection Local Variables):
Add macro 'connection-local-value'.
* etc/NEWS: Add macro 'connection-local-value'.
* lisp/files-x.el (connection-local-value): New macro.
(path-separator, null-device): Use it.
* test/lisp/files-x-tests.el
(files-x-test-connection-local-value): New test.
2023-12-09 10:13:14 +01:00
Eli Zaretskii
4925f0ad22
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
2023-12-09 11:07:22 +02:00
Eshel Yaron
d30a648488
; Hide completion preview when switching windows
...
* lisp/completion-preview.el
(completion-preview--window-selection-change): New function.
(completion-preview-active-mode): Add it to
'window-selection-change-functions'. (Bug#67650)
2023-12-09 11:06:54 +02:00
Michael Albinus
945aa0e42b
; * etc/NEWS: Fix typos.
2023-12-09 10:05:20 +01:00
Philip Kaludercic
1bb8d2327d
Remove old VC packages from 'package-alist' after installing
...
* lisp/emacs-lisp/package-vc.el (package-vc--unpack-1): Wait for all
system operations to have been completed, before proceeding to remove
old package descriptors from 'package-alist'. This avoids loosing a
package if an error occurs during upgrades.
2023-12-09 10:04:35 +01:00
Eli Zaretskii
ec1244970a
; Fix documentation of 'minibuffer-sort-by-history'
...
* etc/NEWS:
* lisp/minibuffer.el (completions-sort): Doc fix.
2023-12-09 11:04:13 +02:00
john muhl
7b3711a6d9
Add font-lock tests for lua-ts-mode (bug#67605)
...
* test/lisp/progmodes/lua-ts-mode-tests.el (lua-ts-test-font-lock):
Add ert-font-lock tests.
(lua-ts-mode-test-indentation):
(lua-ts-test-indentation):
(lua-ts-mode-test-movement):
(lua-ts-test-movement): Rename for consistency.
* test/lisp/progmodes/lua-ts-mode-resources/font-lock.lua: New
file.
2023-12-09 10:57:22 +02:00
Eli Zaretskii
dc7cf87bc0
; Fix documentation of 'dired-do-open'
...
* lisp/dired-aux.el (dired-do-open):
* etc/NEWS: Fix documentation of 'dired-do-open'. (Bug#18132)
2023-12-09 10:54:07 +02:00
Jared Finder
46fe7a17f5
Fix dragging mode line on text terminals with a mouse (bug#67457)
...
* lisp/xt-mouse.el (xterm-mouse-translate-1): Fix the 'event-kind'
property of mouse-movement symbols emitted by xt-mouse.
* lisp/term/linux.el (terminal-init-linux): Call 'gpm-mouse-mode'
to set up the terminal for the mouse, if needed.
2023-12-09 10:17:05 +02:00
Eli Zaretskii
12daf386f3
; * doc/lispref/processes.texi (Network): Fix wording and punctuation.
2023-12-09 09:48:40 +02:00
Po Lu
414301bce1
Correct phantom point generation and MDAP
...
* src/sfnt.c (sfnt_interpret_mdrp): Cease applying cvt
cut in, as this is contrary to the specification.
(sfnt_interpret_simple_glyph): Correct typo.
(main): Revise tests.
2023-12-09 11:49:04 +08:00
Sean Whitton
ef732bd208
; * lisp/progmodes/project.el (project-any-command): Fix last change
2023-12-08 22:37:06 +00:00
Dmitry Gutov
11b7b0d4ab
project-any-command: Change the method for passing project root
...
* lisp/progmodes/project.el (project-any-command): Change the
check which decides whether 'project-current-directory-override'
should be used. Instead of looking in project-prefix-map, see
whether the command's name starts with 'project-', or the symbol
has the property 'project-command' (bug#67171).
2023-12-08 22:34:06 +02:00