1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 08:43:40 -07:00
Commit graph

162695 commits

Author SHA1 Message Date
Stefan Kangas
cd89b81ffd Merge from origin/emacs-29
91a9598baf Update project docs and NEWS

# Conflicts:
#	etc/NEWS
2022-12-01 16:54:50 +01:00
Stefan Kangas
dd9459c464 ; Merge from origin/emacs-29
The following commit was skipped:

b7b2455c5f Update publicsuffix.txt from upstream
2022-12-01 16:54:48 +01:00
Eli Zaretskii
05e336278e ; * etc/NEWS.29: Resurrect Local variables that keep disappearing... 2022-12-01 17:08:02 +02:00
Eli Zaretskii
11ea333a5a Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2022-12-01 17:07:59 +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
Stefan Kangas
b7b2455c5f Update publicsuffix.txt from upstream
* etc/publicsuffix.txt: Update from
https://publicsuffix.org/list/public_suffix_list.dat
dated 2022-11-29 18:15:27 UTC.

(cherry picked from commit de00aef3e1)
2022-12-01 15:09:40 +01:00
Stefan Kangas
f7c3abb8d2 Merge from origin/emacs-29
5d1a1019c6 Add highlighting Python operators (bug#59629)
8b3baadf67 Fix compilation of Org 9.6 on MS-Windows
3b5b99ac91 * doc/lispref/frames.texi (Input Focus): Clarify for XInpu...
4b2f5425d7 Fix types in various defcustom declarations
2022-12-01 14:38:29 +01:00
kobarity
5d1a1019c6 Add highlighting Python operators (bug#59629)
* lisp/progmodes/python.el (python-rx): Remove "is" and
"not" from operator.
(python-font-lock-keywords-maximum-decoration): Add
highlighting operators.
* test/lisp/progmodes/python-tests.el
(python-font-lock-assignment-statement-1)
(python-font-lock-assignment-statement-2)
(python-font-lock-assignment-statement-3)
(python-font-lock-assignment-statement-4)
(python-font-lock-assignment-statement-5)
(python-font-lock-assignment-statement-6)
(python-font-lock-assignment-statement-7)
(python-font-lock-assignment-statement-8)
(python-font-lock-assignment-statement-9)
(python-font-lock-assignment-statement-10)
(python-font-lock-assignment-statement-11)
(python-font-lock-assignment-statement-12)
(python-font-lock-assignment-statement-13)
(python-font-lock-assignment-statement-14)
(python-font-lock-assignment-statement-15)
(python-font-lock-assignment-statement-16)
(python-font-lock-assignment-statement-17)
(python-font-lock-assignment-statement-18)
(python-font-lock-assignment-statement-multiline-1)
(python-font-lock-assignment-statement-multiline-2)
(python-font-lock-assignment-statement-multiline-3)
(python-font-lock-assignment-statement-multiline-4)
(python-font-lock-assignment-statement-multiline-5)
(python-font-lock-assignment-statement-multiline-6)
(python-font-lock-escape-sequence-multiline-string): Modify
expectations to include faces for operators.
(python-font-lock-operator-1, python-font-lock-operator-2): New tests.
2022-12-01 14:45:10 +02:00
Eli Zaretskii
8b3baadf67 Fix compilation of Org 9.6 on MS-Windows
* lisp/org/org-clock.el (org-x11idle-exists-p): Don't try to
invoke "command x11idle" on MS-Windows and MS-DOS.  This fixes a
hang during byte-compilation of Org.
2022-12-01 14:40:47 +02:00
Po Lu
3b5b99ac91 * doc/lispref/frames.texi (Input Focus): Clarify for XInput 2 support. 2022-12-01 14:34:17 +02:00
Manuel Giraud
9210eac585 Make sure the menu-bar height is updated on X when fonts change
* src/xdisp.c (display_menu_bar) [HAVE_X_WINDOWS]: Update
menu_bar_window height in non-toolkit X builds.  (Bug#59351)
2022-12-01 14:26:08 +02:00
Mattias Engdegård
4b2f5425d7 Fix types in various defcustom declarations
* lisp/org/ob-clojure.el
(ob-clojure-babashka-command, ob-clojure-nbb-command):
Account for the possibility of nil (commands absent).
* lisp/org/org.el (org-safe-remote-resources):
* lisp/org/ox-md.el (org-md-toplevel-hlevel):
* lisp/progmodes/project.el (project-vc-extra-root-markers):
Fix incorrect or invalid types.
2022-12-01 13:03:19 +01:00
Po Lu
ff64a85b2d Finish up last change with more speedups
* src/xterm.c (x_atom_refs):
* src/xterm.h (struct x_display_info): Add some new atoms to be
interned at connection setup.
2022-12-01 15:08:31 +08:00
Po Lu
f19ab1d36c Remove unnecessary error checks in xselect.c
* src/xselect.c (x_own_selection): Don't sync around
XSetSelectionOwner, as the atom and window specified are always
correct.
2022-12-01 14:51:29 +08:00
Po Lu
5a5ee3356d ; * src/xselect.c (syms_of_xselect_for_pdumper): Fix last change.
Author:
2022-12-01 14:47:18 +08:00
Po Lu
30cd8045d7 Fix pdumper build
* src/xselect.c (mark_xselect): Don't mark if
outstanding_transfers.next is still NULL.
2022-12-01 14:43:44 +08:00
Po Lu
e961a31507 Speed up handling X selection requests
* etc/NEWS: Announce speedup.
* src/alloc.c (garbage_collect): Call mark_xselect.
* src/xftfont.c (xftfont_end_for_frame): Fix crash on display IO
error.
* src/xselect.c (struct selection_data, struct transfer): New
structures.
(outstading_transfers): New variable.
(SELECTED_EVENTS, x_selection_request_lisp_error): Stop checking
cs->nofree.
(x_catch_errors_unwind): Delete function.
(c_size_for_format, x_size_for_format, selection_data_for_offset)
(selection_data_size, transfer_selecting_event)
(x_continue_selection_transfer, x_remove_selection_transfers)
(x_selection_transfer_timeout): New functions.
(x_reply_selection_request): When handling selection requests,
never wait for property notifications synchronously.  Instead,
write out the selection data as the client reads it from the
event loop.
(x_handle_selection_request, x_convert_selection)
(x_handle_property_notify, x_get_window_property)
(lisp_data_to_selection_data): Don't ever use pointers to Lisp
string data! Instead, just store the string object itself.
(syms_of_xselect): Initialize outstanding transfer list.
(syms_of_xselect_for_pdumper):
* src/xterm.c (x_delete_display): Remove outstanding selection
transfers.
* src/xterm.h: Update prototypes.
2022-12-01 14:33:34 +08:00
Po Lu
65468109a5 Merge from origin/emacs-29
4161023a63 Fix crashes and memory leaks during display deinitialization
785fa80159 New user option: project-vc-extra-root-markers
7a1f1825fd Add inline to c-ts-mode--keywords
3d976d6a03 Remove duplicate "friend" from c-ts-mode--keywords
01e7d4b2a1 Make treesit-defun-prefer-top-level more flexible
fb5d9ff559 Fix c-ts-mode defun movement (bug#59628)
7397f2099b * lisp/tab-bar.el: Keep tabs of the same group together (b...
832b013ef0 Insert news for installed packages only
cc6efa7992 ; Fix type error in 'package-maintainers'
ee32ae7c36 ; * etc/NEWS: Add missing tree-sitter based modes.
33546d6dd2 ; * etc/NEWS: Move an entry to a proper place.  (bug#59718)
8617edfffd ; Fix typos

# Conflicts:
#	etc/NEWS
2022-12-01 14:24:43 +08:00
Po Lu
95a9bad9e8 ; Merge from origin/emacs-29
The following commit was skipped:

646f2cf67e ; * etc/NEWS: Resurrect the lost Local variables section.
2022-12-01 14:24:38 +08:00
Po Lu
845763f2ad Merge from origin/emacs-29
2a8f31b996 project-current: Improve the docstring
2022-12-01 14:24:38 +08:00
Po Lu
4161023a63 Fix crashes and memory leaks during display deinitialization
* .dir-locals.el (c-mode): Add more noise macro names.
* src/frame.c (delete_frame): Do not delete terminal if force is
Qnoelisp.

* src/xterm.c (x_wm_supports): Fix coding style.
(x_delete_display): Delete the supported atoms list.
(x_delete_terminal): Delete all terminals.  Free the scratch
cursor GC.
2022-12-01 14:23:04 +08:00
Stefan Kangas
de00aef3e1 Update publicsuffix.txt from upstream
* etc/publicsuffix.txt: Update from
https://publicsuffix.org/list/public_suffix_list.dat
dated 2022-11-29 18:15:27 UTC.
2022-12-01 06:01:28 +01:00
Stefan Kangas
896a63481b ; Auto-commit of loaddefs files. 2022-12-01 05:10:57 +01:00
Dmitry Gutov
785fa80159 New user option: project-vc-extra-root-markers
* lisp/progmodes/project.el: Commentary update.
(project-vc, project-vc-include-untracked, project-vc-name):
Update docstrings.  Rename 'VC project' to 'VC-aware project'.
(project-vc-extra-root-markers): New option (bug#41572).
(project-try-vc): Use it.  Construct a single regexp from all and
validate it using the MATCH argument of 'directory-files'.  Call
'locate-dominating-file' directly.
(project-ignores): Support VC-aware project instances with nil
value of VC backend.

* test/lisp/progmodes/project-tests.el (project-vc-recognizes-git)
(project-vc-extra-root-markers-supports-wildcards)
New tests.
(project-tests--this-file): New variable.
2022-12-01 04:09:14 +02:00
Daniel Martín
7a1f1825fd
Add inline to c-ts-mode--keywords
* lisp/progmodes/c-ts-mode.el (c-ts-mode--keywords): Add "inline", a
keyword available since C99 to define inline functions in C.
2022-11-30 17:37:05 -08:00
Daniel Martín
3d976d6a03
Remove duplicate "friend" from c-ts-mode--keywords
* lisp/progmodes/c-ts-mode.el (c-ts-mode--keywords): Remove duplicate
keyword.
2022-11-30 17:35:05 -08: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
Yuan Fu
fb5d9ff559
Fix c-ts-mode defun movement (bug#59628)
* lisp/progmodes/c-ts-mode.el (c-ts-mode--end-of-defun): New function.
(c-ts-mode--base-mode): Use more specific regexp, and set
treesit-defun-prefer-top-level.
(c-ts-mode)
(c++-ts-mode): Set end-of-defun-function.
2022-11-30 16:57:08 -08:00
Jonas Bernoulli
26c2ebd0dd
Update to Transient v0.3.7-182-gfe7dcbd 2022-11-30 21:34:05 +01:00
Juri Linkov
7397f2099b * lisp/tab-bar.el: Keep tabs of the same group together (bug#59721)
(tab-bar-tab-post-change-group-functions): Change the default value to
'(tab-bar-move-tab-to-group)'.  Improve docstring.
(tab-bar-change-tab-group): Improve docstring.
2022-11-30 21:37:28 +02:00
muffinmad
832b013ef0 Insert news for installed packages only
* lisp/emacs-lisp/package.el (describe-package-1): Check package is
installed and "news" is a regular file.  (Bug#59684)
2022-11-30 20:27:41 +01:00
Philip Kaludercic
cc6efa7992 ; Fix type error in 'package-maintainers'
* lisp/emacs-lisp/package.el (package-maintainers): Pass the email
address to 'ietf-drums-parse-address' (Bug#59676).
2022-11-30 20:27:41 +01:00
Eli Zaretskii
ee32ae7c36 ; * etc/NEWS: Add missing tree-sitter based modes. 2022-11-30 20:29:04 +02:00
Vibhav Pant
1abda0c839
; Make clang-format format indent preprocessor blocks correctly. 2022-11-30 23:07:44 +05:30
Matt Armstrong
656a54b823 Add itree_empty_p for clarity and reduced coupling
* src/itree.h (itree_empty_p): New predicate.
* src/buffer.h (buffer_has_overlays):
* src/pdumper.c (dump_buffer):
* src/alloc.c (mark_buffer): Call it.  (Bug#59137)
2022-11-30 18:08:35 +01:00
Eli Zaretskii
33546d6dd2 ; * etc/NEWS: Move an entry to a proper place. (bug#59718) 2022-11-30 18:14:50 +02:00
Stefan Kangas
8617edfffd ; Fix typos 2022-11-30 16:59:41 +01:00
Eli Zaretskii
32615c9bc1 ; * etc/NEWS: Resurrect the lost Local variables section. 2022-11-30 17:53:01 +02:00
Eli Zaretskii
646f2cf67e ; * etc/NEWS: Resurrect the lost Local variables section. 2022-11-30 17:49:36 +02:00
Dmitry Gutov
2a8f31b996 project-current: Improve the docstring
* lisp/progmodes/project.el (project-current):
Improve the docstring (bug#59722).
2022-11-30 17:25:55 +02:00
Stefan Kangas
f3ef75107b Merge from origin/emacs-29
c3466099c5 Org regexp style fixes
2022-11-30 16:10:39 +01:00
Stefan Kangas
16d74c215d ; Merge from origin/emacs-29
The following commit was skipped:

33a244097c Skip one python test case on macOS
2022-11-30 16:10:39 +01:00
Stefan Kangas
700a4401b7 Merge from origin/emacs-29
af1a99d53f Sink python indent offset guessing to avoid test failure
dc0f2ec2db * etc/NEWS: Announce Org update.
0625651e8a Update to Org 9.6-3-ga4d38e
edd64e64a3 Fix interactive selection of emacs-lock mode, broken by 2a...
a699f65936 Fix typo in flag to load Emacs-specific LLDB commands
f6aa7c335f ; Typo fixes in etc/NEWS and lisp/ files
f373a23e51 CC Mode: Prevent lone ids being parsed as types unless in ...
00cb6e052a ; Improve error message when LSP server not found
7ea95d1b92 ; * doc/misc/eglot.texi (Setting Up LSP Servers): Improve ...
c43cdfd639 Allow csharp-mode in c-default-style
13bb49bc0b In project-find-file, add abbreviated file names to history
4dab5f8671 * lisp/progmodes/project.el (project-vc-name): Fix the :ty...
079625d3c6 Tramp cleanup
067c65578e Merge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/e...
4313279e34 ; Fix typo in NEWS
afc7ed987b Allow be-resources to fail
00de296d1b Simplify erc-sasl's auth-source API
83b9496a19 * doc/misc/erc.texi: Revise SASL and modules chapters.
35e2b8a26b Add erc-sasl-auth-source-function to cached options
7336520fe7 Improve fontification in csharp-ts-mode
2661c51953 Improve fontification in typescript-ts-mode
bbf1b93d43 Add more font-lock settings to css-ts-mode
f794263da2 Reparse tree-sitter tree when buffer restriction changes
78663ad78b ; typos

# Conflicts:
#	etc/NEWS
2022-11-30 16:10:39 +01:00
Stefan Kangas
54eb6ddf54 ; Merge from origin/emacs-29
The following commit was skipped:

78663ad78b ; typos
2022-11-30 16:10:31 +01:00
Stefan Kangas
a9bfd953ef Merge from origin/emacs-29
a7b0b20c1b Fix GUD item on the menu bar in source buffers
2022-11-30 16:10:31 +01:00
Stefan Kangas
faa270ee81 ; Merge from origin/emacs-29
The following commit was skipped:

c6cb6d8506 Cut the emacs-29 release branch
2022-11-30 16:10:31 +01:00
Mattias Engdegård
c3466099c5 Org regexp style fixes
* lisp/org/org-element.el (org-element--get-node-properties):
Escape literal `+`.
* lisp/org/org-persist.el (org-persist-load:index):
Replace line-start with string-start when the latter is meant.
2022-11-30 13:23:38 +01:00
Mattias Engdegård
33a244097c Skip one python test case on macOS
* test/lisp/progmodes/python-tests.el (python-ffap-module-path-1):
This test fails with a standard macOS Python installation;
see bug#59477 and bug#25753.

(cherry picked from commit db042b7591)
2022-11-30 13:22:09 +01:00
Mattias Engdegård
af1a99d53f Sink python indent offset guessing to avoid test failure
Call python-indent-guess-indent-offset late in the set-up of
python-mode and python-ts-mode to make sure that the required other
settings (of syntax-propetize-function in particular) have been
carried out.  This cures a python-test failure (bug#59477).

* lisp/progmodes/python.el (python-base-mode): Move
python-indent-guess-indent-offset call from here...
(python-mode): ...to here...
(python-ts-mode): ...and here.
2022-11-30 13:22:04 +01:00
Kyle Meyer
dc0f2ec2db * etc/NEWS: Announce Org update. 2022-11-29 23:06:44 -05:00