]> git.eshelyaron.com Git - emacs.git/log
emacs.git
13 months ago* etc/PROBLEMS: Document a problem with the Anonymous Pro font.
Po Lu [Wed, 16 Aug 2023 14:05:47 +0000 (22:05 +0800)]
* etc/PROBLEMS: Document a problem with the Anonymous Pro font.

13 months ago; Fix byte-compiler warnings in comp.el
Eli Zaretskii [Wed, 16 Aug 2023 13:10:55 +0000 (16:10 +0300)]
; Fix byte-compiler warnings in comp.el

* lisp/emacs-lisp/comp.el: Declare functions and variables defined
in comp.c, to avoid byte-compiler warnings.  (Bug#65250)

13 months agoRevert "Fix slow "C-h f" in Emacs built without native compilation"
Eli Zaretskii [Wed, 16 Aug 2023 13:06:20 +0000 (16:06 +0300)]
Revert "Fix slow "C-h f" in Emacs built without native compilation"

This reverts commit 545f95d1a3213318389ecadc7cfff3f48b555b03.
It is no longer needed, as comp.el and comp-cstr.el are now
byte-compiled even if native-compilation is not built-in.

13 months ago; * etc/MACHINES (Android): Clarify a minor point.
Po Lu [Wed, 16 Aug 2023 12:35:08 +0000 (20:35 +0800)]
; * etc/MACHINES (Android): Clarify a minor point.

13 months agoUpdate Android port
Po Lu [Wed, 16 Aug 2023 12:32:04 +0000 (20:32 +0800)]
Update Android port

* configure.ac: Test for getpwent using gl_CHECK_FUNCS_ANDROID.
(bug#65319)

* etc/MACHINES (Android): Mention that a non-GUI build is also
possible on Android.

* lisp/loadup.el: Provide for regular builds on Android.
(bug#65339)

* lisp/wid-edit.el (widget-event-start): Remove function, since
event-start now does the same thing.
(widget-button--check-and-call-button, widget-button-click):
Adjust correspondingly.  Reported by Stefan Monnier
<monnier@iro.umontreal.ca>.

* src/sysdep.c (close_output_streams): Apply workarounds for the
file descriptor sanitizer on all builds where __ANDROID__ is
defined, not just Android port builds.  (bug#65340)

13 months agoFix infloop error in Tramp
Michael Albinus [Wed, 16 Aug 2023 09:48:28 +0000 (11:48 +0200)]
Fix infloop error in Tramp

* lisp/net/tramp-sh.el (tramp-find-file-exists-command): Do not
call `tramp-get-ls-command'.  (Bug#65321)

13 months ago* lisp/Makefile.in (compile-targets): Always byte compile native comp.
Andrea Corallo [Wed, 16 Aug 2023 08:18:20 +0000 (10:18 +0200)]
* lisp/Makefile.in (compile-targets): Always byte compile native comp.

13 months agoImprove java/DEBUG
Po Lu [Wed, 16 Aug 2023 08:12:54 +0000 (16:12 +0800)]
Improve java/DEBUG

* etc/DEBUG: Significantly reword and expand section.
(bug#65268)

13 months ago; ChangeLog.android: Clean up more entries.
Po Lu [Wed, 16 Aug 2023 06:33:47 +0000 (14:33 +0800)]
; ChangeLog.android: Clean up more entries.

13 months agoRemove get_boot_time from msdos.c
Po Lu [Wed, 16 Aug 2023 03:12:44 +0000 (11:12 +0800)]
Remove get_boot_time from msdos.c

* src/msdos.c (get_boot_time): That all of the actual locking in
filelock.c is under #ifndef MSDOS escaped my notice.  Remove
this unused function.

13 months agoFix display of compound glyphs that employ simple transforms
Po Lu [Wed, 16 Aug 2023 03:02:55 +0000 (11:02 +0800)]
Fix display of compound glyphs that employ simple transforms

* src/sfnt.c (sfnt_transform_coordinates): Always compute an
affine transform matrix except if no scale is provided at all.
Unconditionally apply x_off and y_off.
(sfnt_decompose_compound_glyph): Delete arguments OF_X and
OFF_Y.  Apply component offsets after writing simple glyph
contours.
(sfnt_decompose_glyph): Modify for new calling convention.
(sfnt_transform_f26dot6): Modify analogously to
sfnt_decompose_compound_glyph.  Also correct anchor offset
computation to scale the unscaled component anchor coordinates
by the interpreter scale.
(sfnt_interpret_compound_glyph_1): Also modify for new calling
convention.
* src/sfnt.h (struct sfnt_compound_glyph_component): <u>: Make
scale fields signed.

13 months agoDon't use the too-new command 'git get-url'
Bob Rogers [Wed, 16 Aug 2023 01:19:50 +0000 (04:19 +0300)]
Don't use the too-new command 'git get-url'

* lisp/vc/vc-git.el (vc-git-repository-url):
Don't use the too-new command 'git get-url' (bug#65315).

13 months agoAdd line-wise movement commands for erc-fill-wrap
F. Jason Park [Mon, 7 Aug 2023 05:05:26 +0000 (22:05 -0700)]
Add line-wise movement commands for erc-fill-wrap

* lisp/erc/erc-fill.el (erc-fill-line-spacing): Revise doc string.
(erc-fill--wrap-escape-hidden-speaker): New helper function to move
point to beginning of visible text.
(erc-fill--wrap-beginning-of-line): Factor out adjustment for hidden
speakers.
(erc-fill--wrap-previous-line, erc-fill--wrap-next-line): Add commands
for moving to previous and next line in a manner consistent with the
value of `erc-fill--wrap-visual-keys'.
(erc-fill-wrap-mode-map): Add remap bindings for `next-line' and
`previous-line'.
(erc-fill-wrap-mode): Revise doc string.
(erc-fill-wrap-nudge): Fix vertical anchoring so that point's line
remains steadier throughout the adjustment.  (Bug#60936)

13 months agoDeprecate erc-button-nickname-callback-function
F. Jason Park [Mon, 7 Aug 2023 10:35:56 +0000 (03:35 -0700)]
Deprecate erc-button-nickname-callback-function

* lisp/erc/erc-button.el (erc-button-nickname-callback-function):
Deprecate this function-valued variable, first introduced in ERC 5.6
and Emacs 30, to dissuade consumers of the old `erc-button-alist'
nickname interface from meddling with the on-click callback of
buttonized nicks.  If necessary, third parties can instead add their
own propertizing logic in something like `erc-insert-modify-hook'.
Also change default callback to a wrapper that discards all but the
first arg.  This effectively declares that `erc-data' values for
nicknames may contain more than one element in the near future.
(erc-button--perform-nick-popup): New default nick-button callback
function wrapping `erc-nick-popup' in order to adapt it to the
`erc-button-nickname-callback-function' interface.  (Bug#60933)

13 months ago; Relax timeouts on some ERC tests
F. Jason Park [Tue, 1 Aug 2023 05:20:01 +0000 (22:20 -0700)]
; Relax timeouts on some ERC tests

There have been three failures (all on native-comp-speed2-master) over
the last three weeks pointing to these tests, which haven't changed in
the year-plus they've existed in tree.  No test appears in multiple
failures, and all continue to pass daily on commercial GitLab (GCP)
runners using the same EMBA container image.  They also pass locally
with "make check" and "make -j -C test SELECTOR=t check-lisp-erc".  If
these tweaks don't fix the problem, they can be branded :unstable.

* test/lisp/erc/erc-scenarios-base-renick.el: Extend timeouts.
* test/lisp/erc/resources/base/netid/bouncer/barnet.eld: Extend
timeouts.
* test/lisp/erc/resources/base/netid/bouncer/foonet.eld: Extend
timeouts.
* test/lisp/erc/resources/base/reconnect/options.eld: Extend timeouts.
* test/lisp/erc/resources/base/renick/queries/bouncer-barnet.eld:
Extend timeouts.
* test/lisp/erc/resources/base/renick/queries/bouncer-foonet.eld:
Extend timeouts.
* test/lisp/erc/resources/erc-scenarios-common.el: Extend timeout.
* test/lisp/erc/resources/services/auth-source/libera.eld: Extend
timeouts.

13 months agoSimplify get_boot_sec
Paul Eggert [Tue, 15 Aug 2023 22:55:08 +0000 (15:55 -0700)]
Simplify get_boot_sec

* src/filelock.c (get_boot_sec):
Simplify by removing a special case for MS-DOS.
* src/msdos.c (get_boot_time): New dummy that always fails.

13 months agoUpdate from Gnulib by running admin/merge-gnulib
Paul Eggert [Tue, 15 Aug 2023 22:46:11 +0000 (15:46 -0700)]
Update from Gnulib by running admin/merge-gnulib

13 months agoFix typo in pcomplete/sha512sum alias
Stefan Kangas [Tue, 15 Aug 2023 19:29:13 +0000 (21:29 +0200)]
Fix typo in pcomplete/sha512sum alias

* lisp/pcmpl-unix.el (pcomplete/sha512sum): Rename from
'pcomplete/sha521sum'.

13 months agoFix test in python-tests.el added by bug #62092
kobarity [Tue, 15 Aug 2023 13:27:45 +0000 (22:27 +0900)]
Fix test in python-tests.el added by bug #62092

* test/lisp/progmodes/python-tests.el
(python-info-dedenter-opening-block-positions-6): Fix indentation.
(python-info-dedenter-opening-block-positions-7): Add calling
`should'.  Add RESTORE-POINT argument when calling
`python-tests-look-at'.

13 months agolisp/help-fns.el: Revert commit c12838c73ef161850a081f9ccea6e375b7c2f93b
Stefan Monnier [Tue, 15 Aug 2023 14:21:51 +0000 (10:21 -0400)]
lisp/help-fns.el: Revert commit c12838c73ef161850a081f9ccea6e375b7c2f93b

* lisp/help-fns.el (help-fns--describe-function-or-command-prompt):
Don't allow specifying a non-existing function.

13 months agoSome Tramp optimizations
Michael Albinus [Tue, 15 Aug 2023 13:23:20 +0000 (15:23 +0200)]
Some Tramp optimizations

* lisp/net/tramp-sh.el (tramp-perl-file-name-all-completions):
Extend.  It shall return also some basic file attributes.
(tramp-bundle-read-file-names): Simplify data to be transferred.
(tramp-sh-handle-file-name-all-completions): Read additional attributes.
(tramp-sh-handle-expand-file-name): Check also "doas".
(tramp-bundle-read-file-names): Handle changed data layout.
(tramp-find-file-exists-command): Set "file-exists-p" file property.

13 months agoFix test in files-tests.el
Michael Albinus [Tue, 15 Aug 2023 10:02:03 +0000 (12:02 +0200)]
Fix test in files-tests.el

* test/lisp/files-tests.el
(files-tests-file-name-non-special-unhandled-file-name-directory):
Fix test.

13 months agoMerge remote-tracking branch 'savannah/master' into master-android-1
Po Lu [Tue, 15 Aug 2023 06:21:42 +0000 (14:21 +0800)]
Merge remote-tracking branch 'savannah/master' into master-android-1

13 months agoDon't use // substitution in `ndk_resolve_import_module'
Po Lu [Tue, 15 Aug 2023 06:19:56 +0000 (14:19 +0800)]
Don't use // substitution in `ndk_resolve_import_module'

* m4/ndk-build.m4 (ndk_resolve_import_module): Stop testing if
ndk_commands is empty; just eval it.  (bug#65292)

13 months ago* lisp/emacs-lisp/pp.el (pp-fill): Fix bug#65159
Stefan Monnier [Tue, 15 Aug 2023 03:01:12 +0000 (23:01 -0400)]
* lisp/emacs-lisp/pp.el (pp-fill): Fix bug#65159

13 months ago; * admin/MAINTAINERS: Add myself as Eshell maintainer.
Jim Porter [Tue, 15 Aug 2023 02:58:40 +0000 (19:58 -0700)]
; * admin/MAINTAINERS: Add myself as Eshell maintainer.

13 months ago* doc/lispref/commands.texi (Adjusting Point): Document the adjustment
Stefan Monnier [Tue, 15 Aug 2023 02:48:57 +0000 (22:48 -0400)]
* doc/lispref/commands.texi (Adjusting Point): Document the adjustment

13 months agocl-generic.el: Fix docstring for methods with `cl-call-next-method`
Stefan Monnier [Tue, 15 Aug 2023 02:37:51 +0000 (22:37 -0400)]
cl-generic.el: Fix docstring for methods with `cl-call-next-method`

* lisp/emacs-lisp/cl-generic.el (cl--generic-method-info):
Fix docstring extraction for "curried" methods (bug#65270).

13 months agoMicro-optimize GXAXIS
Po Lu [Tue, 15 Aug 2023 00:59:03 +0000 (08:59 +0800)]
Micro-optimize GXAXIS

* src/sfnt.c (GXAXIS): Check for the availability of naxis slot
elements in a single operation.

13 months ago; * lib/readutmp.h: Merge from Gnulib.
Po Lu [Tue, 15 Aug 2023 00:50:43 +0000 (08:50 +0800)]
; * lib/readutmp.h: Merge from Gnulib.

13 months agoAdd native WebP support on macOS (Bug#59242)
Stefan Kangas [Mon, 14 Aug 2023 19:34:34 +0000 (21:34 +0200)]
Add native WebP support on macOS (Bug#59242)

* src/image.c (syms_of_image)
[HAVE_NATIVE_IMAGE_API && HAVE_NS && NS_IMPL_COCOA]:
Add webp as an image type.
* src/nsimage.m (ns_can_use_native_image_api)
[NS_IMPL_COCOA && !HAVE_WEBP]: Add webp to list of possible image
types in the native image support lookup.

13 months ago; Fix Eshell tests
Jim Porter [Mon, 14 Aug 2023 16:20:34 +0000 (09:20 -0700)]
; Fix Eshell tests

* test/lisp/eshell/eshell-tests.el (eshell-test/forward-arg): Add
'should' calls to check state.

* test/lisp/eshell/em-extpipe-tests.el (em-extpipe-tests--deftest):
Add 'should' calls and fix temp-buffer substitution.

13 months agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Mon, 14 Aug 2023 15:10:00 +0000 (18:10 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

13 months agoFix slow "C-h f" in Emacs built without native compilation
Eli Zaretskii [Mon, 14 Aug 2023 15:08:54 +0000 (18:08 +0300)]
Fix slow "C-h f" in Emacs built without native compilation

* lisp/help-fns.el (help-fns--signature): Don't try calling
'comp-function-type-spec' if Emacs was built without native
compilation.  (Bug#65250)

13 months ago; * test/lisp/dired-tests.el (dired-test-bug27243-03): fix unwind
Mattias Engdegård [Mon, 14 Aug 2023 14:53:13 +0000 (16:53 +0200)]
; * test/lisp/dired-tests.el (dired-test-bug27243-03): fix unwind

13 months ago; * test/src/syntax-tests.el (syntax-char-syntax): remove junk
Mattias Engdegård [Mon, 14 Aug 2023 14:47:27 +0000 (16:47 +0200)]
; * test/src/syntax-tests.el (syntax-char-syntax): remove junk

13 months agoActually check the result of `equal` comparisons in tests
Mattias Engdegård [Mon, 14 Aug 2023 14:34:29 +0000 (16:34 +0200)]
Actually check the result of `equal` comparisons in tests

* test/lisp/calc/calc-tests.el (calc-bit-ops):
* test/lisp/files-tests.el
(files-tests-file-name-non-special-substitute-in-file-name)
(files-tests-file-name-non-special-temporary-file-directory)
(files-tests-file-name-non-special-unhandled-file-name-directory):
Add missing `should` assertions.

13 months agoIgnore ert-deftest body value
Mattias Engdegård [Mon, 14 Aug 2023 14:48:05 +0000 (16:48 +0200)]
Ignore ert-deftest body value

* lisp/emacs-lisp/ert.el (ert-deftest):
Since the return value of the body isn't going to be used, ignore
it explicitly so that the compiler can warn if we try to return
something anyway.  In particular, this exposes some comparisons
whose result weren't actually checked.

13 months ago; * ChangeLog.android: Clean up entries after the 11th of March.
Po Lu [Mon, 14 Aug 2023 13:39:42 +0000 (21:39 +0800)]
; * ChangeLog.android: Clean up entries after the 11th of March.

13 months ago; * ChangeLog.android: Clean up entries after the 11th of March.
Po Lu [Mon, 14 Aug 2023 13:39:02 +0000 (21:39 +0800)]
; * ChangeLog.android: Clean up entries after the 11th of March.

13 months agoCorrect touch screen event translation
Po Lu [Mon, 14 Aug 2023 08:45:27 +0000 (16:45 +0800)]
Correct touch screen event translation

* lisp/touch-screen.el (touch-screen-handle-point-up)
<mouse-drag>: Provide for situations where both the old and new
posns land on a special area of the window by comparing their
nominal row, column, and area.

13 months ago; * ChangeLog.android: Clean up entries after the 10th of July.
Po Lu [Mon, 14 Aug 2023 08:27:41 +0000 (16:27 +0800)]
; * ChangeLog.android: Clean up entries after the 10th of July.

13 months agoRevert "* lisp/emacs-lisp/ert.el (ert-run-tests-batch-and-exit): Inhibit interaction"
Mattias Engdegård [Mon, 14 Aug 2023 08:16:32 +0000 (10:16 +0200)]
Revert "* lisp/emacs-lisp/ert.el (ert-run-tests-batch-and-exit): Inhibit interaction"

This reverts commit bb9133f09dafb069cafe2bea72452bd34b3d6dd2,
because it inadvertently made many tests fail.

13 months agoMerge from origin/emacs-29
Michael Albinus [Mon, 14 Aug 2023 07:45:07 +0000 (09:45 +0200)]
Merge from origin/emacs-29

fdab7aaadac ; * lisp/net/tramp.el (tramp-skeleton-write-region): Fix ...
3eff53b4564 Update to Org 9.6.7-13-g99cc96

13 months ago; * lisp/net/tramp.el (tramp-skeleton-write-region): Fix last change.
Michael Albinus [Mon, 14 Aug 2023 07:42:43 +0000 (09:42 +0200)]
; * lisp/net/tramp.el (tramp-skeleton-write-region): Fix last change.

13 months agoImprove efficiency of checking for access to authority documents
Po Lu [Mon, 14 Aug 2023 05:15:08 +0000 (13:15 +0800)]
Improve efficiency of checking for access to authority documents

* java/org/gnu/emacs/EmacsService.java (checkContentUri): Take a
string instead of a byte array.  Then, use
checkCallingUriPermission, in lieu of opening the file.
* src/android.c (android_check_content_access): Delete unused
function.
(android_init_emacs_service): Adjust for changes to
checkContentUri's signature.
* src/androidvfs.c (android_get_content_name): Return the file
name in a new buffer.
(android_check_content_access): Adjust correspondingly.
(android_authority_name): Verify NAME is a valid JNI string.

13 months agoUpdate to Org 9.6.7-13-g99cc96
Kyle Meyer [Mon, 14 Aug 2023 02:11:45 +0000 (22:11 -0400)]
Update to Org 9.6.7-13-g99cc96

13 months agoRemove workarounds for lib/boot-time.o failures
Po Lu [Mon, 14 Aug 2023 01:16:24 +0000 (09:16 +0800)]
Remove workarounds for lib/boot-time.o failures

* configure.ac (UTMP_H_DEFINES_BOOT_TIME):
* src/conf_post.h [__ANDROID__]: Delete workarounds, now that
Gnulib has been corrected.

13 months ago; Update from Gnulib
Po Lu [Mon, 14 Aug 2023 01:15:51 +0000 (09:15 +0800)]
; Update from Gnulib

* lib/boot-time-aux.h (get_linux_uptime):
* lib/boot-time.c (UT_USER):
* lib/nproc.c (num_processors_ignoring_omp):
* lib/readutmp.h (WTMP_FILE):
* m4/readutmp.m4 (gl_READUTMP):
* m4/stdint.m4: Update from Gnulib.

13 months ago; Delete commented out variable in png_load_body
Stefan Kangas [Sun, 13 Aug 2023 23:59:10 +0000 (01:59 +0200)]
; Delete commented out variable in png_load_body

* src/image.c (png_load_body): Delete commented out variable.

13 months ago* etc/NEWS (cl-print-ellipsis): Mention `backtrace-ellipsis`
Stefan Monnier [Sun, 13 Aug 2023 19:23:26 +0000 (15:23 -0400)]
* etc/NEWS (cl-print-ellipsis): Mention `backtrace-ellipsis`

13 months ago* lisp/emacs-lisp/ert.el (ert-run-tests-batch-and-exit): Inhibit interaction
Stefan Monnier [Sun, 13 Aug 2023 19:21:34 +0000 (15:21 -0400)]
* lisp/emacs-lisp/ert.el (ert-run-tests-batch-and-exit): Inhibit interaction

13 months agoFix auth-source-macos-keychain (bug#64977)
LdBeth [Sun, 13 Aug 2023 16:31:47 +0000 (18:31 +0200)]
Fix auth-source-macos-keychain (bug#64977)

* lisp/auth-source.el (auth-source-macos-keychain-search)
(auth-source-macos-keychain-search-items): Fix handling of user
and port.

* test/lisp/auth-source-tests.el (test-macos-keychain-search): New test.

13 months agoMerge from origin/emacs-29
Michael Albinus [Sun, 13 Aug 2023 15:00:53 +0000 (17:00 +0200)]
Merge from origin/emacs-29

c42970d7758 Handle last-coding-system-used in Tramp for all backends
ffafe38d030 Add 2 Welsh characters to iso-transl.el

13 months agoHandle last-coding-system-used in Tramp for all backends
Michael Albinus [Sun, 13 Aug 2023 14:48:00 +0000 (16:48 +0200)]
Handle last-coding-system-used in Tramp for all backends

* lisp/net/tramp.el (tramp-skeleton-write-region):
Handle `last-coding-system-used'.
(tramp-handle-write-region):
* lisp/net/tramp-adb.el (tramp-adb-handle-write-region):
* lisp/net/tramp-smb.el (tramp-smb-handle-write-region):
* lisp/net/tramp-sshfs.el (tramp-sshfs-handle-write-region):
Set `coding-system-used'.  (Bug#65022)

* lisp/net/tramp-sh.el (tramp-sh-handle-write-region):
Move `last-coding-system-used' handling to
`tramp-skeleton-write-region'.

13 months agoRemove dead code in `eshell/diff`
Stefan Kangas [Sun, 13 Aug 2023 13:08:16 +0000 (15:08 +0200)]
Remove dead code in `eshell/diff`

* lisp/eshell/em-unix.el (eshell/diff): Adjust for diff-mode; do not
set 'compilation-finish-functions', as it is never used.  (Bug#65245)
(eshell-diff-quit): Make into an obsolete function alias for 'ignore';
the command has been a no-op for close to two decades.
(eshell-diff-window-config): Make obsolete.

13 months agoDescribe how to read Logcat output in etc/DEBUG
Po Lu [Sun, 13 Aug 2023 12:30:40 +0000 (20:30 +0800)]
Describe how to read Logcat output in etc/DEBUG

* etc/DEBUG (Debugging Emacs on Android): Describe the
three kinds of crash messages Android prints to logcat,
and how they are read.  (bug#65268)

13 months ago; * lisp/loadup.el (native-comp-enable-subr-trampolines): Fix a typo.
Eli Zaretskii [Sun, 13 Aug 2023 12:19:51 +0000 (15:19 +0300)]
; * lisp/loadup.el (native-comp-enable-subr-trampolines): Fix a typo.

13 months agoDelete XEmacs compat code from supercite.el
Stefan Kangas [Sun, 13 Aug 2023 10:52:42 +0000 (12:52 +0200)]
Delete XEmacs compat code from supercite.el

* lisp/mail/supercite.el (sc-ask): Delete compatibility code;
'button-release-event-p' is only defined in XEmacs.

13 months ago`equal` is not error-free
Mattias Engdegård [Sun, 13 Aug 2023 09:51:03 +0000 (11:51 +0200)]
`equal` is not error-free

* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns)
(side-effect-and-error-free-fns)
(byte-compile-side-effect-and-error-free-ops)
(byte-compile-side-effect-free-ops):
Demote `equal` and `equal-including-properties` from error-free to
merely side-effect-free since they may in fact signal error on
circularity.

13 months ago; * lisp/emacs-lisp/rx.el: slight modernisation of internal rx usage
Mattias Engdegård [Sun, 13 Aug 2023 08:36:21 +0000 (10:36 +0200)]
; * lisp/emacs-lisp/rx.el: slight modernisation of internal rx usage

13 months agoAdd 2 Welsh characters to iso-transl.el
Devon Sean McCullough [Sat, 12 Aug 2023 14:18:47 +0000 (10:18 -0400)]
Add 2 Welsh characters to iso-transl.el

* lisp/international/iso-transl.el (iso-transl-char-map): Add two
Welsh characters.  (Bug#65248)

13 months agoAvoid unexpected implicit completion in find-func.el
Eli Zaretskii [Sun, 13 Aug 2023 06:34:20 +0000 (09:34 +0300)]
Avoid unexpected implicit completion in find-func.el

* lisp/emacs-lisp/find-func.el (find-function-read): Don't allow
implicit completion, which could produce unexpected results.
Patch by Jens Schmidt <jschmidt4gnu@vodafonemail.de>.  (Bug#65058)

13 months ago; * src/conf_post.h: Fix typo.
Po Lu [Sun, 13 Aug 2023 05:05:38 +0000 (13:05 +0800)]
; * src/conf_post.h: Fix typo.

13 months ago; * src/conf_post.h: Fix typo.
Po Lu [Sun, 13 Aug 2023 04:58:25 +0000 (12:58 +0800)]
; * src/conf_post.h: Fix typo.

13 months agoTemporary fixes for the Android build
Po Lu [Sun, 13 Aug 2023 04:44:25 +0000 (12:44 +0800)]
Temporary fixes for the Android build

* configure.ac:
* src/conf_post.h [__ANDROID__]: Define substitutes for functions
used by Gnulib that are occasionally absent.

13 months agoFix the MS-DOS build
Po Lu [Sun, 13 Aug 2023 03:23:14 +0000 (11:23 +0800)]
Fix the MS-DOS build

* msdos/sed1v2.inp (TIMER_TIME_LIB): Define to empty string.

13 months agoFix the MS-DOS build
Po Lu [Sun, 13 Aug 2023 03:10:50 +0000 (11:10 +0800)]
Fix the MS-DOS build

* msdos/sedlibmk.inp (OMIT_GNULIB_MODULE_boot-time): Define to
true.
* src/filelock.c (get_boot_sec) [MSDOS]: Return 0; this
information is probably unavailable.  It is also irrelevant as
MS-DOS is a single-process operating system.

13 months ago; Fix FSF address in some files' copyright notices
Po Lu [Sun, 13 Aug 2023 02:55:48 +0000 (10:55 +0800)]
; Fix FSF address in some files' copyright notices

* src/sfnt.c:
* src/sfnt.h:
* src/sfntfont-android.c:
* src/sfntfont.c:
* src/sfntfont.h: Replace the old FSF address with a link to
gnu.org/licenses.  These addresses were inadvertently imported
when sfnt.c was copied to src.

13 months agoImprove boot-time gathering
Paul Eggert [Sun, 13 Aug 2023 02:39:11 +0000 (19:39 -0700)]
Improve boot-time gathering

Simplify Emacs proper by using Gnulib’s boot-time module
instead of doing it all by hand.  This should port Emacs
better to obscurish hosts, as Bruno Haible has merged the
best of Emacs’s and Gnulib’s boot-time gathering.
* lib/boot-time-aux.h, lib/boot-time.c, lib/boot-time.h:
* lib/readutmp.h, m4/readutmp.m4: New files, copied from Gnulib.
* admin/merge-gnulib (GNULIB_MODULES): Add boot-time.
* configure.ac: Do not check for utmp.h;
the boot-time module now does this.
(BOOT_TIME_FILE): Remove; no longer used.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* src/filelock.c [__FreeBSD__]: Do not include <sys/sysctl.h>.
[HAVE_UTMP_H]: Do not include utmp.h.
Include boot-time instead: boot-time does the work now.
(BOOT_TIME) [HAVE_ANDROID && !ANDROID_STUBIFY]: Don’t undef.
(WTMP_FILE): Don’t define.
(boot_time, boot_time_initialized, get_boot_time_1, get_boot_time):
Remove.
(get_boot_sec): New function that simply calls Gnulib get_boot_time.
(lock_file_1, current_lock_owner): Use get_boot_sec instead
of get_boot_time.

13 months agoFix bootstrap-clean in the cross directory on USG
Po Lu [Sun, 13 Aug 2023 01:45:36 +0000 (09:45 +0800)]
Fix bootstrap-clean in the cross directory on USG

* cross/Makefile.in (FIND_DELETE): New variable.
(CLEAN_SUBDIRS): Avoid including src if not already present.
(clean, bootstrap-clean, etc): Use FIND_DELETE.

13 months agoEmploy careadlinkat in getProcName
Po Lu [Sun, 13 Aug 2023 01:10:07 +0000 (09:10 +0800)]
Employ careadlinkat in getProcName

* src/android.c (android_proc_name): Delete args BUFFER and
SIZE.  Return buffer allocated by careadlinkat.
(NATIVE_NAME): Adjust correspondingly.

13 months agoAvoid stpncpy
Paul Eggert [Sat, 12 Aug 2023 19:50:15 +0000 (12:50 -0700)]
Avoid stpncpy

It’s not worth the porting hassle, and as the glibc manual says,
“this function is generally a poor choice for processing strings”.
* admin/merge-gnulib (GNULIB_MODULES): Remove stpncpy.
* exec/configure.ac: Do not check for stpncpy.
* exec/exec.c (rpl_stpncpy, stpncpy): Remove this replacement.
(exec_0): Properly clear buffer1.  Use memcpy instead of
stpncpy to add the trailing name.  This code is clearly
still suboptimal but efficiency is not that important here
and I tried to minimize the change.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.

13 months agoUpdate from Gnulib by running admin/merge-gnulib
Paul Eggert [Sat, 12 Aug 2023 19:50:15 +0000 (12:50 -0700)]
Update from Gnulib by running admin/merge-gnulib

13 months agoAdjust to recent Gnulib changes
Paul Eggert [Sat, 12 Aug 2023 19:50:15 +0000 (12:50 -0700)]
Adjust to recent Gnulib changes

The Gnulib regex module now pulls in some wide-char stuff
that I think Emacs doesn’t need.
* admin/merge-gnulib (AVOIDED_MODULES): Add iswblank, iswctype,
iswdigit, iswxdigit, wctype.

13 months ago* lisp/emacs-lisp/cl-macs.el (cl--labels-convert): Remove outdated fixme
Stefan Monnier [Sat, 12 Aug 2023 18:20:59 +0000 (14:20 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl--labels-convert): Remove outdated fixme

This was fixed in commit 44d7fd3805.

13 months agoMerge from origin/emacs-29
Eli Zaretskii [Sat, 12 Aug 2023 17:50:38 +0000 (13:50 -0400)]
Merge from origin/emacs-29

842dbf500e0 * Fix `batch-byte+native-compile' target directory.
8dbd5aa1eef Avoid crashes in 'display_count_lines' when current buffe...
47b4f4cf783 ; * doc/emacs/mini.texi (Completion Commands): Fix a typo...
78999d52136 Update csharp tree-sitter support due to upstream changes
556cb01b48e Substitute command keys in 'ielm-header' at use time
99367078e50 ; * etc/PROBLEMS: Add entry about XIM problems (bug#65205).
03e897c08fa Fix rare crashes in redisplay due to problems with fontsets
b1ba06a1e4b Fix a typo in 'leuven-dark-theme.el'
e80a9dcabb9 ; * admin/git-bisect-start: Update failing commits
9091f42784b ; * admin/git-bisect-start: Update failing commits
344ac529ca9 ; * etc/PROBLEMS: Fix typo.
bccf848b26c Adapt Tramp test
71bc060e403 Properly expand the JSX indentation rules in 'js-ts-mode'
889cfb42ed9 * Add `emacs-lisp-native-compile' to easy-menu.
4535aafa8a3 * lisp/progmodes/elisp-mode.el (emacs-lisp-mode-menu): Si...
173af0cad51 * Introduce `emacs-lisp-native-compile'.
063d7d89d7a Fix the -x switch in non-X builds
5a7fb0b39b7 Document that `set-mouse-color' does not work everywhere
d06fc72496f ; * doc/emacs/dired.texi (Misc Dired Features): Fix last ...
97b8ac376b5 Fix the effects and documentation of 'dired-free-space'
75c72e59f69 ; Fix typo
6d11b7b3007 Fix cross-reference to eldoc in eglot manual
913e50aba6c Add native-compilation to Emacs Lisp mode menu
b93107c20b2 Fix emacs-lisp-native-compile-and-load eln target directo...

13 months ago; Merge from origin/emacs-29
Eli Zaretskii [Sat, 12 Aug 2023 17:48:34 +0000 (13:48 -0400)]
; Merge from origin/emacs-29

The following commits were skipped:

7e3c6160860 ; Re-enable the /dev/urandom test
ff21717f05b Disable failing test (bug#65156)

13 months agoMerge from origin/emacs-29
Eli Zaretskii [Sat, 12 Aug 2023 17:42:14 +0000 (13:42 -0400)]
Merge from origin/emacs-29

4767f5eaeed Better fix for bug#65156
dd1d8414b33 Fix insert-file-contents with pipes and /dev/stdin
50649a6d1a2 ; * etc/PROBLEMS: Fix wording.
f0dda682ffb ; * etc/NEWS.28: Add deletion of levents.el.
f4acae842c0 Fix bug#65042
e1874c4e8bf * configure.ac (HAVE_TREE_SITTER): Set NEED_DYNLIB=yes (b...
ef8838c3a5f * etc/NEWS: Mention tramp-show-ad-hoc-proxies.
495bee253fc * test/lisp/net/tramp-tests.el (tramp-test42-utf8): Skip ...
de1effd73b4 ; Fix last change
7c7966862bc * test/lisp/net/tramp-tests.el (tramp-test10-write-region...
16205e8db65 ; Improve help-echo in package.el
a95e7006989 ; Filter packages available for upgrade via menu bar
adff72dd1d2 Fix reverting Rmail buffers

13 months ago* Fix `batch-byte+native-compile' target directory.
Andrea Corallo [Sat, 12 Aug 2023 16:42:33 +0000 (18:42 +0200)]
* Fix `batch-byte+native-compile' target directory.

* lisp/emacs-lisp/comp.el (batch-native-compile): Don't shadow
`native-compile-target-directory' unless necessary.

13 months agorx: Better translation of char-matching patterns
Mattias Engdegård [Sat, 12 Aug 2023 15:39:58 +0000 (17:39 +0200)]
rx: Better translation of char-matching patterns

Translate or-patterns that (even partially) match single characters
into character alternatives which are more efficient in matching,
sometimes algorithmically so.  Example:

  (or "%" (in "a-z") space)

was previously translated to

  "%\\|[a-z]\\|[[:space:]]"

but now becomes

  "[%a-z[:space:]]"

Single-char patterns include `nonl` and `anychar`, which now can also
be used in set operations (union, complement and intersection), and
character classes.  For example, `(or nonl "\n")` is now equivalent to
`anychar`.

* lisp/emacs-lisp/rx.el (rx--expand-def): Remove, split into...
(rx--expand-def-form, rx--expand-def-symbol): ...these.
(rx--translate-compat-symbol-entry)
(rx--translate-compat-form-entry): New functions for handling the
legacy extension mechanism.
(rx--normalise-or-arg): Renamed to...
(rx--normalise-char-pattern): ...this, and rewrite.
(rx--all-string-or-args): Remove, split into...
(rx--all-string-branches-p, rx--collect-or-strings): ...these.
(rx--char-alt-union, rx--intersection-intervals)
(rx--reduce-to-char-alt, rx--optimise-or-args)
(rx--translate-char-alt, rx--human-readable): New.
(rx--translate-or, rx--translate-not, rx--translate-intersection):
Rewrite.
(rx--charset-p, rx--intervals-to-alt, rx--charset-intervals)
(rx--charset-union, rx--charset-intersection, rx--charset-all)
(rx--translate-union): Remove.
(rx--generate-alt): Decide whether to generate a negated character
alternative.
(rx--complement-intervals, rx--intersect-intervals)
(rx--union-intervals): Rename to...
(rx--interval-set-complement, rx--interval-set-intersection)
(rx--interval-set-union): ...these.
(rx--translate-symbol, rx--translate-form): Refactor extension
processing.  Handle synthetic `rx--char-alt` form.
* test/lisp/emacs-lisp/rx-tests.el (rx-or, rx-char-any-raw-byte)
(rx-any, rx-charset-or): Adapt to changes and extend.
* test/lisp/emacs-lisp/rx-tests.el (rx--complement-intervals)
(rx--union-intervals, rx--intersect-intervals): Rename to...
(rx--interval-set-complement, rx--interval-set-union)
(rx--interval-set-intersection): ...these.

13 months ago; * lisp/net/dictionary.el (dictionary-search): Fix last change.
Eli Zaretskii [Sat, 12 Aug 2023 15:35:24 +0000 (18:35 +0300)]
; * lisp/net/dictionary.el (dictionary-search): Fix last change.

13 months agoImprove dictionary-mode documentation
Stefan Kangas [Sat, 12 Aug 2023 14:40:10 +0000 (16:40 +0200)]
Improve dictionary-mode documentation

* lisp/net/dictionary.el (dictionary-mode): Improve docstring

13 months agoConvert dictionary-mode to define-derived-mode
Stefan Kangas [Sat, 12 Aug 2023 14:30:08 +0000 (16:30 +0200)]
Convert dictionary-mode to define-derived-mode

* lisp/net/dictionary.el (dictionary-instances): Delete.
(dictionary-mode): Use define-derived-mode.
(dictionary--count-mode-buffers): New function.
(dictionary-close): Use above new function.

13 months agoRemove dictionary-color-support compat code
Stefan Kangas [Sat, 12 Aug 2023 14:06:10 +0000 (16:06 +0200)]
Remove dictionary-color-support compat code

* lisp/net/dictionary.el (dictionary-color-support): Make obsolete
in favor of 'display-color-p'.  Update single caller.

13 months ago; Fix typo
Stefan Kangas [Sat, 12 Aug 2023 13:46:32 +0000 (15:46 +0200)]
; Fix typo

13 months agoRemove compat code for XEmacs' itimer.el
Stefan Kangas [Sat, 12 Aug 2023 13:29:09 +0000 (15:29 +0200)]
Remove compat code for XEmacs' itimer.el

* lisp/progmodes/idlwave.el (idlwave-update-routine-info)
(idlwave-start-load-rinfo-timer):
* lisp/type-break.el (type-break-cancel-function-timers)
(type-break-run-at-time): Remove XEmacs compat code.

13 months agoMake dired-move-to-filename-regexp obsolete
Stefan Kangas [Sat, 12 Aug 2023 12:36:59 +0000 (14:36 +0200)]
Make dired-move-to-filename-regexp obsolete

* lisp/dired.el (dired-move-to-filename-regexp): Make Emacs 21
compatibility alias obsolete.

13 months agoMerge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Sat, 12 Aug 2023 13:17:59 +0000 (15:17 +0200)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs

13 months agoRemove superfluous check from vc-hooks.el
Michael Albinus [Sat, 12 Aug 2023 13:17:32 +0000 (15:17 +0200)]
Remove superfluous check from vc-hooks.el

* lisp/vc/vc-hooks.el (vc-registered): Don't check whether
`file-name-handler-alist' is bound, the check is superfluous.

13 months ago; * java/INSTALL (LOCATING NECESSARY FILES): New section.
Po Lu [Sat, 12 Aug 2023 12:58:13 +0000 (20:58 +0800)]
; * java/INSTALL (LOCATING NECESSARY FILES): New section.

13 months agoAvoid crashes in 'display_count_lines' when current buffer was killed
Eli Zaretskii [Sat, 12 Aug 2023 12:06:48 +0000 (15:06 +0300)]
Avoid crashes in 'display_count_lines' when current buffer was killed

* src/xdisp.c (Fformat_mode_line):
* src/fns.c (Fline_number_at_pos): Don't allow to count lines in a
dead buffer.  (Bug#65060)

13 months agoStop `use-package-report` from displaying an empty buffer
Stefan Kangas [Sat, 12 Aug 2023 10:43:19 +0000 (12:43 +0200)]
Stop `use-package-report` from displaying an empty buffer

* lisp/use-package/use-package-core.el (use-package-report): Signal
user-error if there are no statistics to display, instead of showing
an empty buffer.

13 months ago; * doc/emacs/mini.texi (Completion Commands): Fix a typo (bug#65242).
Daniel Martín [Sat, 12 Aug 2023 08:32:45 +0000 (10:32 +0200)]
; * doc/emacs/mini.texi (Completion Commands): Fix a typo (bug#65242).

13 months agoFix 'insert-file-contents' with non-regular files
Eli Zaretskii [Sat, 12 Aug 2023 08:02:52 +0000 (11:02 +0300)]
Fix 'insert-file-contents' with non-regular files

* src/fileio.c (Finsert_file_contents): Fix the doc string.  Erase
only the accessible portion of the buffer, not the entire buffer.
(Bug#65156)

13 months agoUpdate csharp tree-sitter support due to upstream changes
J M [Thu, 10 Aug 2023 22:23:20 +0000 (23:23 +0100)]
Update csharp tree-sitter support due to upstream changes

A change in tree-sitter-c-sharp grammar for csharp (commit
18a531), has removed the keyword void_keyword and advised
we should use predefined_type.
* lisp/progmodes/csharp-mode.el (csharp-ts-mode--font-lock-settings):
Support both old and new style of keywords in tree-sitter-c-sharp
grammar.  (Bug#65113)

13 months agoSubstitute command keys in 'ielm-header' at use time
Matthew Tromp [Thu, 10 Aug 2023 14:41:24 +0000 (10:41 -0400)]
Substitute command keys in 'ielm-header' at use time

Before, command keys were substituted into the ielm-header when
ielm.el was loaded, which resulted in the substitutions depending on
the user's current buffer instead of the ielm buffer.
For example, if the user was in an info-mode buffer, the key would
appear as 'H' instead of 'C-h m'.
Now, the command key is substituted after the ielm buffer has been
created.
* lisp/ielm.el (ielm-header): Remove substitute-command-keys.
(inferior-emacs-lisp-mode): Add substitute-command-keys.  (Bug#65213)

Copyright-paperwork-exempt: yes

13 months ago; * etc/PROBLEMS: Add entry about XIM problems (bug#65205).
Eli Zaretskii [Sat, 12 Aug 2023 07:04:55 +0000 (10:04 +0300)]
; * etc/PROBLEMS: Add entry about XIM problems (bug#65205).

13 months agoFix rare crashes in redisplay due to problems with fontsets
Eli Zaretskii [Sat, 12 Aug 2023 06:38:28 +0000 (09:38 +0300)]
Fix rare crashes in redisplay due to problems with fontsets

* src/xdisp.c (get_next_display_element): If we have no usable
face to display a character/composition, treat that as glyphless.
(produce_glyphless_glyph): If neither it->face nor its ASCII face
are usable, fall back to the frame's default font.  (Bug#65198)

13 months agoFix a typo in 'leuven-dark-theme.el'
Eli Zaretskii [Sat, 12 Aug 2023 06:27:23 +0000 (09:27 +0300)]
Fix a typo in 'leuven-dark-theme.el'

* etc/themes/leuven-dark-theme.el (leuven-dark): Fix a typo.
Reported by John Poole <saxcos@posteo.es>.  (Bug#65239)