Commit graph

174702 commits

Author SHA1 Message Date
Eli Zaretskii
df57e44a08 ; Another fix for str2sig.h 2024-09-05 08:38:16 +03:00
Eli Zaretskii
91e7b47d6c ; Fix last change in lib/sig2str.h. 2024-09-05 08:26:00 +03:00
Eli Zaretskii
b737c6125d Fix MinGW build broken by recent update from Gnulib
Gnulib moved the prototypes of 'sig2str' and 'str2sig' from
sig2str.h to signal.h, but MinGW does not use the Gnulib
signal.h header, and doesn't have these functions in its
own signal.h.
* lib/sig2str.h (SIG2STR_MAX, sig2str, str2sig): Define and
prototype if not already defined.
2024-09-05 08:20:59 +03:00
Po Lu
73367ea5c1 Better port to Android 35
* java/INSTALL: Don't refer users to build-tools 33.0.x.

* java/res/values-v35/styles.xml: New dark theme; define status
bar colors properly for this release.
2024-09-05 10:47:51 +08:00
Po Lu
1a13c5e63e ; Update from Gnulib
* configure.ac:

* src/conf_post.h: Remove workarounds now rendered redundant by
Gnulib.
2024-09-05 08:45:18 +08:00
Eshel Yaron
a13eef1fae
New variable 'completion-preview-overlay-priority'
* lisp/completion-preview.el: Update commentary.
(completion-preview-overlay-priority): New variable.
(completion-preview--make-overlay): Use it.  (Bug#72762)
2024-09-04 18:24:42 +02:00
Po Lu
2847106f3b Port to Android 35
* configure.ac: Temporary workaround for Gnulib bug.  Verify
that the provided android.jar corresponds to Android 35, or any
later version.

* cross/ndk-build/Makefile.in (NDK_BUILD_SO_LDFLAGS): New
variable.

* cross/ndk-build/ndk-resolve.mk
(NDK_LOCAL_A_NAMES_$(LOCAL_MODULE)): Define to
NDK_BUILD_SO_LDFLAGS by default to enable building binaries
with support for 16 kb page sizes.

* java/AndroidManifest.xml.in: Target SDK 35.

* java/INSTALL (16KB PAGE SIZES): New section.  Replace
references to Android 34 with 35.

* java/org/gnu/emacs/EmacsActivity.java (onCreate): Restore
pre-SDK 35 inset-relative placement.

* java/org/gnu/emacs/EmacsFillPolygon.java (perform): Suppress
deprecation warnings, and document why.

* m4/ndk-build.m4 (ndk_INIT, ndk_LATE): Check for and enable
toolchain support for 16 KB page sizes, if available.
(ndk_CONFIG_FILES): Export linker options so derived.

* src/conf_post.h [__ANDROID_API__ < 35]: Include system time.h
and redefine timezone_t to rpl_timezone_t, so that the Gnulib
replacement may not conflict with the useless OS type.
2024-09-04 17:24:34 +08:00
Philip Kaludercic
d277123f4b
; Improve robustness of 'help-fns-edit-variable'
* lisp/help-fns.el (help-fns-edit-variable): Extract the text
property directly at point instead of trying to determine the
variable at point and always assuming there is one.  (Bug#71374)
2024-09-02 22:55:32 +02:00
Juri Linkov
92ea393a16 ; * lisp/menu-bar.el (menu-bar-showhide-menu): Small optimization.
Use 'bound-and-true-p' to check for non-nil 'outline-minor-mode'.
2024-09-01 20:05:02 +03:00
Juri Linkov
0155f2ae2c * lisp/progmodes/js.el: Improve sexp navigation in js-ts-mode (bug#72573)
(js--treesit-sexp-nodes): Add "template_string", "template_substitution",
"property_identifier".
(js-ts-mode): Replace "template_string" with "string_fragment"
in 'text' part of 'treesit-thing-settings'.
2024-09-01 20:02:12 +03:00
Pip Cet
dc2cdd3683 Explicitly include stdlib.h in src/image.c (Bug#72929)
* src/image.c: Add include.
2024-09-01 15:37:48 +00:00
Stefan Kangas
99a03ddb2d Delete cc-compat.el from Makefile.in
* lisp/Makefile.in: Delete obsolete file cc-compat.el.  It has been
moved to obsolete/ and is compiled separately.
2024-09-01 15:24:51 +02:00
Stefan Kangas
73277a4097 Fix integer overflow when reading XPM
* src/image.c (xpm_str_to_int): New function.
(xpm_load_image): Replace sscanf with strtol, to correctly handle
integer overflow when reading a malformed XPM file.  (Bug#72245)
2024-09-01 13:17:41 +02:00
Stefan Kangas
bca315aa4c Fix broken use-package tests
* lisp/use-package/use-package-core.el (use-package-keywords): Change
keyword order to match the one before adding :pin, :ensure, :delight,
and :diminish directly to this list.  This fixes some broken unit tests.
2024-09-01 11:30:48 +02:00
Mattias Engdegård
59e0b82776 Better ad-hoc Emacs release of symbol introduction override
The file etc/symbol-releases.eld now contains explicit version
information for selected symbols that our NEWS* scraper doesn't
resolve correctly.

* etc/NEWS.unknown: Remove this file, replaced with...
* etc/symbol-releases.eld: ...this new file.
* lisp/help-fns.el (help-fns--first-release-override)
(help-fns--mention-first-function-release)
(help-fns--mention-first-variable-release): New.
(help-fns--mention-first-release): Try the override information first
before scraping the NEWS* files.
2024-08-31 18:46:36 +02:00
Eli Zaretskii
ca8170d906 ; Fix merge problem in etc/NEWS.30.
Author:
2024-08-31 08:20:44 -04:00
Eli Zaretskii
fa76ec7b5f Merge from origin/emacs-30
5fd75133cf Make 'python-shell--with-environment' respect buffer-loca...
e27849ecf6 Avoid ANSI escape characters in Python output (bug#45938)
4f521fa14c Fix handling of hook variables in 'use-package'
bb5576fc90 Work around Gnuplot bug in displaying plots
2024-08-31 08:14:14 -04:00
Eli Zaretskii
e176ec4a8f ; Merge from origin/emacs-30
The following commit was skipped:

608526a91a Revert "* lisp/help-fns.el (help-definition-prefixes): Do...
2024-08-31 08:14:14 -04:00
Eli Zaretskii
d1f896b5f8 Merge from origin/emacs-30
4b60267d83 Make Python skeletons available in 'python-ts-mode' as well
62dcbfb776 Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/...
1baa62b2ac ; * etc/NEWS: Fix typos.
dfcfaa0ef5 More accurate documentation of 'equal' in ELisp Reference
baaf97ce1a ; Fix some ungrammatical uses of "allows to"

# Conflicts:
#	etc/NEWS
2024-08-31 08:14:13 -04:00
Eli Zaretskii
fa00e4a10c ; Merge from origin/emacs-30
The following commits were skipped:

5fbbc3d0cd Support "/dev/null" as a target when creating Eshell handles
4af1dc83ae Fix redirecting Eshell output to symbols in some places
2024-08-31 08:14:08 -04:00
Eli Zaretskii
a18c29a7eb Merge from origin/emacs-30
a0f740c88d ; * lisp/progmodes/flymake.el: Fix "Maintainer" header
a943385813 ; * etc/AUTHORS: Update.
762b85be27 ; Revert "; * admin/authors.el (authors-valid-file-names)...
e24d568b56 ; Revert "Revert "; * admin/authors.el (authors-ignored-f...
2d723a280b Revert "; * admin/authors.el (authors-ignored-files): Add...
2a5b129509 Revert "; * admin/authors.el (authors-ignored-files): Ign...
0db53f14a2 ; * admin/authors.el (authors-ignored-files): Ignore Unic...
6734b60c0c ; * admin/authors.el (authors-valid-file-names): Ignore U...
d809d53afc ; * admin/authors.el (authors-ignored-files): Add removed...
766f69bab1 ; * etc/NEWS: Announce VC-dir "Tracking" header. (bug#68183)
37a097d866 ; * admin/authors.el (authors-aliases): Fix regexps.
0fb50e2631 ; * admin/MAINTAINERS: Spencer Baugh maintains flymake.el.
d05d8c336c xwidget: Fix xwidget-at misinterpreting non-xwidget text-...
13f69f254c Fix rare segfaults due to freed fontsets
427fb319da ; * lisp/simple.el (use-region-beginning, use-region-end)...

# Conflicts:
#	admin/MAINTAINERS
#	etc/NEWS
2024-08-31 08:14:03 -04:00
Eli Zaretskii
a9889b8eec ; Fix last change in subr-x.el
* lisp/emacs-lisp/subr-x.el (string-pixel-width): Remove
unnecessary call to 'erase-buffer'.  (Bug#72689)
2024-08-31 14:59:46 +03:00
Eli Zaretskii
deb31ba825 ; * etc/NEWS: Move last added entry to its proper place (bug#72827). 2024-08-31 13:38:45 +03:00
xenodium
c36ff7d8e4 Adds NSSpeechRecognitionUsageDescription to Info.plist.in
Without this, we cannot launch processes that use macOS's
speech recognition APIs.
With NSSpeechRecognitionUsageDescription in place, macOS displays the
dialog asking the user to grant permission and allows the speech APIs
to be used from the process.
* nextstep/templates/Info.plist.in: Add
NSSpeechRecognitionUsageDescription key.  (Bug#72827)

* etc/NEWS: Announce the change.

Copyright-paperwork-exempt: yes
2024-08-31 13:36:05 +03:00
Evgenii Klimov
5fd75133cf Make 'python-shell--with-environment' respect buffer-local vars
* lisp/progmodes/python.el (python-shell--with-environment):
Make `with-temp-buffer' respect buffer-local values of
`process-environment' and `exec-path', if set.  (Bug#72849)
2024-08-31 13:16:42 +03:00
Evgenii Klimov
e27849ecf6 Avoid ANSI escape characters in Python output (bug#45938)
* lisp/progmodes/python.el (python-shell-completion-native-setup):
Prevent Readline from emitting escape characters in comint output.
2024-08-31 13:12:50 +03:00
John Wiegley
4f521fa14c Fix handling of hook variables in 'use-package'
* lisp/use-package/use-package-core.el
(use-package-handler/:hook): Append "-hook" to the symbol's name
only if the named hook variable has no 'symbol-value'.
(Bug#72818)
2024-08-31 13:06:16 +03:00
Eli Zaretskii
bb5576fc90 Work around Gnuplot bug in displaying plots
* lisp/calc/calc-graph.el (calc-gnuplot-command): Prepend newline
to Gnuplot command.  Suggested by Visuwesh <visuweshm@gmail.com>.
(Bug#72778)
2024-08-31 12:58:39 +03:00
Eli Zaretskii
608526a91a Revert "* lisp/help-fns.el (help-definition-prefixes): Don't delete the hashtable"
This reverts commit 45ae4de0e7.
It did not fix a regression or even a user-visible bug, and
it caused bug#72787.

Do not merge to master.
2024-08-31 12:51:59 +03:00
kobarity
4b60267d83 Make Python skeletons available in 'python-ts-mode' as well
* lisp/progmodes/python.el (python-base-mode-abbrev-table):
Renamed from 'python-mode-abbrev-table' to be available for both
'python-mode' and 'python-ts-mode'.  (Bug#72298)
2024-08-31 12:42:42 +03:00
Eli Zaretskii
e5b6c39f5d ; Fix comments in supercite
* lisp/mail/supercite.el (sc-make-citation): Remove stale comment
about gin-mode.  (Bug#72798)
2024-08-31 12:37:23 +03:00
Eli Zaretskii
5cb2185966 Improve 'C-h o' in NEWS files
* lisp/textmodes/emacs-news-mode.el (emacs-news--mode-common):
Modify syntax-table of NEWS modes to consider ' as string-quoting
character.  Suggested by Visuwesh <visuweshm@gmail.com>.
(Bug#72757)
2024-08-31 12:12:00 +03:00
David Ponce
dffdbc1f1f Use 'with-work-macro' in 'string-pixel-width'
Tweak the implementation of 'string-pixel-width' to run
faster and use less memory.  Also cater for the case where
this function is called in parallel (bug#72689).
* lisp/emacs-lisp/subr-x.el (string-pixel-width): Use
`with-work-macro'.  Prefer `remove-text-properties' to
`propertize' to avoid creating a new string on each call.
2024-08-31 11:23:23 +03:00
David Ponce
b930a698f2 New macro `with-work-buffer'.
* lisp/emacs-lisp/subr-x.el (work-buffer--list)
(work-buffer-limit): New variables.
(work-buffer--get, work-buffer--release): New function.
(with-work-buffer): New macro.  (Bug#72689)

* etc/NEWS: Announce 'with-work-buffer'.
2024-08-31 11:21:42 +03:00
Eli Zaretskii
b25da8729d ; * etc/NEWS: Minor rewording of last change. 2024-08-31 10:05:01 +03:00
Eli Zaretskii
62dcbfb776 Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30 2024-08-30 20:33:11 +03:00
Michael Albinus
1baa62b2ac ; * etc/NEWS: Fix typos. 2024-08-30 14:00:47 +02:00
Eli Zaretskii
dfcfaa0ef5 More accurate documentation of 'equal' in ELisp Reference
* doc/lispref/objects.texi (Equality Predicates): Add lists and
conses.  (Bug#72888)
2024-08-30 13:57:29 +03:00
Sean Whitton
ad18b145a5 ; * etc/NEWS: Grammar fixes. 2024-08-30 11:50:19 +01:00
Sean Whitton
baaf97ce1a ; Fix some ungrammatical uses of "allows to"
* doc/emacs/anti.texi (Antinews):
* etc/NEWS:
* etc/NEWS.29:
* lib/cdefs.h:
* lisp/tab-bar.el (tab-bar-select-restore-windows):
* lisp/vc/vc-git.el (vc-git-print-log-follow):
* m4/gnulib-common.m4 (gl_CHECK_FUNCS_SET_RESULTS):
(gl_CHECK_FUNCS_ANDROID): Fix ungrammatical uses of "allows to".
2024-08-30 11:47:35 +01:00
Jim Porter
91851fbbf5 Add manual tests for the 'min-width' display property
* test/manual/redisplay-testsuite.el (test-redisplay-5): Add some
newlines.
(test-redisplay-6): New function...
(test-redisplay): ... call it (bug#72721).
2024-08-29 21:55:16 -07:00
Jim Porter
5fbbc3d0cd Support "/dev/null" as a target when creating Eshell handles
Previously, you could only use this when setting the handle afterwards.

Do not merge to master.

* lisp/eshell/esh-io.el (eshell-set-output-handle): Don't catch
'eshell-null-device' here...
(eshell-get-target): ... catch it here.
2024-08-29 21:51:25 -07:00
Jim Porter
4af1dc83ae Fix redirecting Eshell output to symbols in some places
Do not merge to master.

* lisp/eshell/esh-io.el (eshell-output-object-to-target): Don't require
TARGET to be bound.

* lisp/eshell/em-script.el (eshell-execute-file): Quote the output/error
targets.

* test/lisp/eshell/em-script-tests.el (eshell-execute-file-output): New
variable.
(em-script-test/execute-file/output-file)
(em-script-test/execute-file/output-symbol): New tests.

* test/lisp/eshell/esh-io-tests.el (eshell-test-file-string): Move to...
* test/lisp/eshell/eshell-tests-helpers.el (eshell-test-file-string):
... here.
2024-08-29 21:51:25 -07:00
Philip Kaludercic
a0f740c88d
; * lisp/progmodes/flymake.el: Fix "Maintainer" header
Functions such as 'lm-maintainer' assume there to be only a
single header, and won't return the second value.  By João's
request, this change fixes the issue by unmarking him as the
maintainer of Flymake.

See https://lists.gnu.org/archive/html/emacs-devel/2024-08/msg00943.html
2024-08-29 22:30:38 +02:00
Eli Zaretskii
a943385813 ; * etc/AUTHORS: Update. 2024-08-29 14:43:45 -04:00
Eli Zaretskii
762b85be27 ; Revert "; * admin/authors.el (authors-valid-file-names): Ignore Unicode files."
This reverts commit 6734b60c0c.
Existing files cannot be ignored.
2024-08-29 21:26:54 +03:00
Eli Zaretskii
e24d568b56 ; Revert "Revert "; * admin/authors.el (authors-ignored-files): Add removed files.""
This reverts commit 2d723a280b.
It mistakenly reverted the wrong commit.
2024-08-29 21:26:10 +03:00
Eli Zaretskii
2d723a280b Revert "; * admin/authors.el (authors-ignored-files): Add removed files."
This reverts commit d809d53afc.
Not useful, for the same reason as the previously reverted
commit.
2024-08-29 21:16:12 +03:00
Eli Zaretskii
2a5b129509 Revert "; * admin/authors.el (authors-ignored-files): Ignore Unicode files."
This reverts commit 0db53f14a2.
It doesn't help, since existing files are considered worthy
of mentioning regardless of the other lists.
2024-08-29 21:15:08 +03:00
Eli Zaretskii
0db53f14a2 ; * admin/authors.el (authors-ignored-files): Ignore Unicode files. 2024-08-29 20:59:37 +03:00