1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-21 06:55:39 +00:00
Commit Graph

173905 Commits

Author SHA1 Message Date
Po Lu
c6a052f2fe Respect --disable-build-details in Android builds
* java/Makefile.in (BUILD_DETAILS, GEN_BUILD_DETAILS): New
variables.
(install_tmp): Tolerate failures in generation of metadata files
and prefix commands for such generation with GEN_BUILD_DETAILS.

* lisp/version.el (android-read-build-system)
(android-read-build-time): Return nil if metadata file does not
exist.
2024-06-30 16:26:39 +08:00
Po Lu
c8473ee8c1 * build-aux/ndk-module-extract.awk: Do not generate newlines in output. 2024-06-30 12:11:32 +08:00
Po Lu
cab91300d0 Enable caching values generated by the Android build system
* build-aux/ndk-build-helper-1.mk:

* build-aux/ndk-build-helper-2.mk:

* build-aux/ndk-build-helper.mk: Do not generate file names with
redundant directory separators, to port to systems where the
semantics of this are undefined.

* configure.ac: Provide a cache file to the recursive invocation
of configure if one is specified for the initial.

* cross/ndk-build/Makefile.in (my-dir): Better conform to the
original ndk-build by generating directory names with no
trailing separator.

* m4/ndk-build.m4 (ndk_resolve_import_module, ndk_SEARCH_MODULE):
Cache the names of Android.mk files and the commands produced
from them.
2024-06-30 12:10:21 +08:00
Po Lu
e2561e267f Merge from savannah/emacs-30
72cf9964f3 Inaccuracy in efaq.texi
fc48e9e8ed ; Fix typos in DOS Makefile scripts
9b8d754579 ; * etc/NEWS: Explain Nextstep.
8819e5a45d Fix treesit crash (bug#71681)
eaf2dc96c1 ; Fix SHR test on MS-Windows
57880f597c Delete redundant mention of `with-eval-after-load'
ea8ce98434 * doc/misc/efaq.texi (New in Emacs 30): Fix typos.
45a20d781a ; Fix typos in symbols
d95f039af4 Document security fixes in FAQ
d063af203c Add "New in Emacs 30" to FAQ
ca6b484162 ; * etc/NEWS: Move "Minibuffer and Completions"
35c46663e4 ; * etc/NEWS: Move item to "Lisp Changes".
0515b38d28 ; * etc/NEWS: Move keyboard macro items closer together.
22af3a7103 ; * etc/NEWS: More copy-edits.
000ef8876a ; * etc/NEWS: Move items to "Incompatible Lisp Changes".
4088dc8e4c ; * etc/NEWS: Rearrange "Incompatible Lisp Changes".
179800f36b ; * lisp/epg.el (epg--start): Add commentary about encoding.
73898f0214 Fix non-ASCII filename operatiion on EasyPG (bug#71500)
a65b6aac6b Silence warning with global minor mode :predicate
f5f7343ac4 ; * etc/NEWS: Move an item to "Startup Changes"
c95066bf18 ; * etc/NEWS: Move some Lisp items to better place.
bf7db88ce1 ; * etc/NEWS: Rearrange "Editing Changes in Emacs 30.1"
000424eb9e ; * etc/NEWS: Make touch screen support more prominent.
5b5671587f ; * etc/NEWS: Rearrange "Changes in Emacs 30.1".
31124abdef ; * lisp/thingatpt.el (sexp-at-point): Doc fix (bug#71777).
44f269d6e6 Fix: make 'xwidget-webkit-scroll-backward' scroll backwards
358085997c Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/...
736b7cad40 Add jsdoc support to php-ts-mode in <script> element
5f3d964e39 Update to Transient v0.7.2-4-gf75bc48d

# Conflicts:
#	etc/NEWS
2024-06-30 10:06:09 +08:00
Po Lu
f0f883da4b Update the DJGPP configuration scripts
* msdos/sedlibmk.inp (HAVE_WCHAR_T): Delete edit of variable
removed from Gnulib.
2024-06-30 10:05:45 +08:00
Po Lu
72cf9964f3 Inaccuracy in efaq.texi
; * doc/misc/efaq.texi (New in Emacs 30): Mention GNUStep and
Mac OS separately.
2024-06-30 10:04:43 +08:00
Po Lu
fc48e9e8ed ; Fix typos in DOS Makefile scripts
* msdos/sedlibmk.inp (NEXT_AS_FIRST_DIRECTIVE_ENDIAN_H)
(NEXT_ENDIAN_H): Use a different command deliminter character
from `/'.
2024-06-30 10:03:53 +08:00
Stefan Kangas
9b8d754579 ; * etc/NEWS: Explain Nextstep. 2024-06-30 03:58:09 +02:00
Paul Eggert
47ce6ed522 Don’t define LC_COLLATE, LC_CTYPE
* src/sysdep.c (LC_COLLATE, LC_CTYPE): Remove unnecessary
macro defns.  They’re always available.
2024-06-30 01:03:17 +01:00
Paul Eggert
69374fbe82 Assume setlocale exists
Like locale.h, it was standardized by C89, is universally
available now, and some code already assumes it.
* configure.ac: Do not check for setlocale.
* src/emacs.c (setlocale) [!HAVE_SETLOCALE]: Remove.
(fixup_locale, synchronize_locale, Vprevious_system_time_locale)
(synchronize_system_time_locale): Define even if !HAVE_SETLOCALE.
* src/sysdep.c (emacs_setlocale): Simplify by assuming HAVE_SETLOCALE.
2024-06-30 01:03:17 +01:00
Paul Eggert
d2b847d291 Do not worry about whether locale.h is includable
* src/emacs.c, src/lread.c, src/sysdep.c: Remove preconditions
from including locale.h.  It was standardized in C89, is universal
now, and some code already assumes it.
2024-06-30 01:03:16 +01:00
Paul Eggert
4a8c8021cc Update from Gnulib by running admin/merge-gnulib
* m4/wchar_t.m4: Remove; no longer needed.
2024-06-30 01:03:16 +01:00
Yuan Fu
8819e5a45d
Fix treesit crash (bug#71681)
To reproduce the problem:

0. emacs -Q
1. eval: (add-to-list 'major-mode-remap-alist '(c-mode . c-ts-mode))
2. C-x v L
3. in the *vc-change-log* buffer move point to the commit 20af58d3a1
4. type D
5. crash caused by diff-font-lock-syntax fontification that uses treesit

Emacs: 6f2036243f (2024-06-23, latest master)
Tree-sitter: 3da7deed (2024-06-08, version 0.22.6)

The immediate cause of the crash is that tree-sitter accessed a node's
tree, but the tree is already deleted.  Commenting out the
ts_tree_delete line in treesit_ensure_parsed can "fix" the crash.

What happended, I think, is this:

1. Buffer modified, parser->need_reparse set to true,
parser->timestamp incremented.
2. A node is created from the parser, this node has the old tree but
the new timestamp (bad!).
3. Parser re-parses (treesit_ensure_parsed), new tree created, old
tree deleted.
4. Ftreesit_query_capture accessed the old node, and the old tree,
crash.

We shouldn't bump the parser timestamp when we set
parser->need_reparse to true; instead, we should bump the timestamp
when we actually reparsed and created a new tree.

* src/treesit.c (treesit_record_change): Don't bump parser timestamp.
(treesit_sync_visible_region): Don't bump parser timestamp.
(Ftreesit_parser_set_included_ranges): Don't bump parser timestamp.
(treesit_ensure_parsed): Bump parser timestamp.
(Ftreesit_query_capture): Add node check.
2024-06-29 16:49:52 -07:00
Paul Eggert
fad7109e52 Remove unused m4/printf-posix-rpl.m4
* m4/printf-posix-rpl.m4: Remove unused file.
This is leftover from an old Android branch,
and the m4 macros are no longer needed in the master branch.
2024-06-29 23:44:32 +01:00
Jim Porter
eaf2dc96c1 ; Fix SHR test on MS-Windows
* test/lisp/net/shr-tests.el (shr-test/zoom-image): Ensure the image URL
is properly formatted: it should always have 3 slashes after "file:".
2024-06-29 14:59:20 -07:00
Stefan Kangas
fcd6403d8e Complete to "nil" in directory local variables skeleton
* lisp/autoinsert.el (auto-insert-alist): Make "nil" a completion
candidate for the directory local variables skeleton.  The "nil" value
means "any mode" in the context of directory local variable files.
2024-06-29 21:59:39 +02:00
Stefan Kangas
bc2e9210bf Support grep.el better in python-base-mode
* lisp/progmodes/python.el (python-base-mode): When mode is first
enabled, add *.py alias to 'grep-files-aliases', and add common Python
tooling directories to 'grep-find-ignored-directories'.
2024-06-29 21:37:24 +02:00
Stefan Kangas
57880f597c Delete redundant mention of `with-eval-after-load'
* lisp/progmodes/dcl-mode.el (dcl-mode): Delete redundant mention of
`with-eval-after-load'.
2024-06-29 21:16:58 +02:00
Michael Albinus
ea8ce98434 * doc/misc/efaq.texi (New in Emacs 30): Fix typos. 2024-06-29 18:42:13 +02:00
Stefan Kangas
45a20d781a ; Fix typos in symbols 2024-06-29 17:29:38 +02:00
Stefan Kangas
d95f039af4 Document security fixes in FAQ
* doc/misc/efaq.texi (New in Emacs 29): Recommend using Emacs 29.4.
* doc/misc/efaq.texi (Security risks with Emacs): New item with a
recommendation to upgrade Emacs for improved security.
2024-06-29 17:03:18 +02:00
Stefan Kangas
d063af203c Add "New in Emacs 30" to FAQ
* doc/misc/efaq.texi (New in Emacs 30): New section.
2024-06-29 16:45:23 +02:00
Stefan Kangas
ca6b484162 ; * etc/NEWS: Move "Minibuffer and Completions"
As a generally applicable feature, it belongs under "Changes" rather
than under "Changes in Specialized Modes and Packages".
2024-06-29 16:37:07 +02:00
Stefan Kangas
35c46663e4 ; * etc/NEWS: Move item to "Lisp Changes". 2024-06-29 16:36:17 +02:00
Stefan Kangas
0515b38d28 ; * etc/NEWS: Move keyboard macro items closer together. 2024-06-29 16:34:28 +02:00
Stefan Kangas
22af3a7103 ; * etc/NEWS: More copy-edits. 2024-06-29 16:34:05 +02:00
Stefan Kangas
000ef8876a ; * etc/NEWS: Move items to "Incompatible Lisp Changes". 2024-06-29 16:01:09 +02:00
Stefan Kangas
4088dc8e4c ; * etc/NEWS: Rearrange "Incompatible Lisp Changes". 2024-06-29 15:50:57 +02:00
Eshel Yaron
2119cd52cd
Inherit text props in Completion Preview insertion commands
When completing with Completion Preview mode commands,
inherit text properties from surrounding text similarly to
other completion commands, such as 'completion-at-point'.

* lisp/completion-preview.el (completion-preview-insert)
(completion-preview-partial-insert)
(completion-preview-complete): Use 'insert-and-inherit'
instead of 'insert' to insert text for completion.
* test/lisp/completion-preview-tests.el
(completion-preview-insert-inherits-text-properties): New
test.
2024-06-29 15:14:18 +02:00
Eli Zaretskii
3088b06759 ; * etc/NEWS: Fix last change (bug#71499). 2024-06-29 16:04:32 +03:00
Björn Lindström
2a7a7c6f69 Make whitespace.el's cleanup add missing final newline
* lisp/whitespace.el (whitespace-cleanup-region): If cleaning
up at end of file, add missing newline if indicated by
'whitespace-style'.  (Bug#71499)

* etc/NEWS: Announce the change in behavior.
2024-06-29 16:01:50 +03:00
Eli Zaretskii
179800f36b ; * lisp/epg.el (epg--start): Add commentary about encoding. 2024-06-29 15:53:11 +03:00
Kazuhiro Ito
73898f0214 Fix non-ASCII filename operatiion on EasyPG (bug#71500)
* lisp/epg.el (epg--start): Don't encode command-line arguments for
gpg2 program in raw-text.
2024-06-29 15:50:38 +03:00
Stefan Kangas
a65b6aac6b Silence warning with global minor mode :predicate
* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Silence byte-compiler warning when :predicate is used.
2024-06-29 14:39:35 +02:00
Stefan Kangas
f5f7343ac4 ; * etc/NEWS: Move an item to "Startup Changes" 2024-06-29 14:30:58 +02:00
Stefan Kangas
c95066bf18 ; * etc/NEWS: Move some Lisp items to better place. 2024-06-29 14:30:58 +02:00
Stefan Kangas
bf7db88ce1 ; * etc/NEWS: Rearrange "Editing Changes in Emacs 30.1" 2024-06-29 14:30:58 +02:00
Stefan Kangas
000424eb9e ; * etc/NEWS: Make touch screen support more prominent. 2024-06-29 14:30:58 +02:00
Stefan Kangas
5b5671587f ; * etc/NEWS: Rearrange "Changes in Emacs 30.1". 2024-06-29 14:30:58 +02:00
Eli Zaretskii
31124abdef ; * lisp/thingatpt.el (sexp-at-point): Doc fix (bug#71777). 2024-06-29 15:22:38 +03:00
George Huebner
44f269d6e6 Fix: make 'xwidget-webkit-scroll-backward' scroll backwards
* lisp/xwidget.el (xwidget-webkit-scroll-backward): Move
hyphen out of %-formatter, changing semantics from a padding
specifier to a negative sign.  (Bug#71792)

Copyright-paperwork-exempt: yes
2024-06-29 15:15:01 +03:00
Eli Zaretskii
358085997c Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30 2024-06-29 15:08:23 +03:00
Vincenzo Pupillo
736b7cad40 Add jsdoc support to php-ts-mode in <script> element
In the <script> element, enable jsdoc embedding in JavaScript.
* lisp/progmodes/php-ts-mode.el
(php-ts-mode--language-source-alist): Add jsdoc to parser recipe.
(php-ts-mode): Add jsdoc parser check and a new rule for
'treesit-range-settings'.  Update the commentary section.
(Bug#71771)
2024-06-29 15:06:59 +03:00
Jonas Bernoulli
5f3d964e39
Update to Transient v0.7.2-4-gf75bc48d 2024-06-29 14:06:12 +02:00
Po Lu
c4709d6bcd Merge from origin/emacs-30
2d8881d526 Fix typo incurring leaks of face structures
219501dd62 ; Fix use of @footnote in cc-mode.texi
c7be2dcac4 Merge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs ...
f0a4879975 Sync with Tramp 2.7.1
53dcf2b949 ; * etc/NEWS: Move the mwheel entry to a better place.
a5726782d0 ; Sort tree-sitter modes in NEWS
daa89dc939 ; * etc/NEWS: Rearrange "New Modes and Packages in Emacs ...
4ddbf4f70e ; * etc/NEWS: Move many items.
437b1ced26 ; * etc/NEWS: Copy-edits.
7372b2eb30 Expand docstring of which-key-mode
df0eb5be1e Improve documentation of 'remove-overlays' in ELisp manual
73c1252bb6 Fix link to major mode variable in docstring
c4ad54812a Make `shell-mode' more robust

# Conflicts:
#	etc/NEWS
2024-06-29 20:04:05 +08:00
Po Lu
2d8881d526 Fix typo incurring leaks of face structures
* src/xfaces.c (free_realized_face): Always free realized face
structures, and avoid sending X requests when the display is not
available, not when it is.
2024-06-29 20:02:54 +08:00
Eli Zaretskii
219501dd62 ; Fix use of @footnote in cc-mode.texi
* doc/misc/cc-mode.texi (Comment Commands, Minor Modes)
(Hungry WS Deletion): Move @footnote's out of @item's, to avoid
warnings from makeinfo.
2024-06-29 11:55:08 +03:00
Michael Albinus
c7be2dcac4 Merge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs into emacs-30 2024-06-29 10:14:01 +02:00
Michael Albinus
f0a4879975 Sync with Tramp 2.7.1
* doc/misc/trampver.texi:
* lisp/net/trampver.el (tramp-version): Adapt Tramp versions.
(customize-package-emacs-version-alist): Add Tramp version
integrated in Emacs 30.1.

* lisp/net/tramp-compat.el:
* lisp/net/tramp-message.el (tramp-warning): Use `lwarn'.

* test/lisp/net/tramp-tests.el
(tramp--test-deftest-without-file-attributes): New defmacro.
(tramp-test18-file-attributes-without-file-attributes)
(tramp-test19-directory-files-and-attributes-without-file-attributes)
(tramp-test18-file-attributes-without-file-attributes)
(tramp-test42-utf8-without-file-attributes): New tests.
2024-06-29 10:13:32 +02:00
Eli Zaretskii
53dcf2b949 ; * etc/NEWS: Move the mwheel entry to a better place. 2024-06-29 11:12:07 +03:00