Commit graph

168263 commits

Author SHA1 Message Date
Stefan Monnier
7ba76dc9c3 lisp/help-fns.el: Revert commit c12838c73e
* lisp/help-fns.el (help-fns--describe-function-or-command-prompt):
Don't allow specifying a non-existing function.
2023-08-15 10:21:51 -04:00
Michael Albinus
5c101b1ada 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.
2023-08-15 15:23:20 +02:00
Michael Albinus
425c998a11 Fix test in files-tests.el
* test/lisp/files-tests.el
(files-tests-file-name-non-special-unhandled-file-name-directory):
Fix test.
2023-08-15 12:02:03 +02:00
Po Lu
80ceb24632 Merge remote-tracking branch 'savannah/master' into master-android-1 2023-08-15 14:21:42 +08:00
Po Lu
6684d3af3b 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)
2023-08-15 14:19:56 +08:00
Stefan Monnier
eba0f091d9 * lisp/emacs-lisp/pp.el (pp-fill): Fix bug#65159 2023-08-14 23:11:27 -04:00
Jim Porter
046b5eb90d ; * admin/MAINTAINERS: Add myself as Eshell maintainer. 2023-08-14 19:58:40 -07:00
Stefan Monnier
70c8f80046 * doc/lispref/commands.texi (Adjusting Point): Document the adjustment 2023-08-14 22:48:57 -04:00
Stefan Monnier
be5917c2ea 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).
2023-08-14 22:38:01 -04:00
Po Lu
a8365aa841 Micro-optimize GXAXIS
* src/sfnt.c (GXAXIS): Check for the availability of naxis slot
elements in a single operation.
2023-08-15 08:59:03 +08:00
Po Lu
b1ee03a647 ; * lib/readutmp.h: Merge from Gnulib. 2023-08-15 08:50:43 +08:00
Stefan Kangas
17d3b70fbf 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.
2023-08-14 21:34:34 +02:00
Jim Porter
279e3723b1 ; 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.
2023-08-14 09:20:34 -07:00
Eli Zaretskii
ef3c410018 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2023-08-14 18:10:00 +03:00
Eli Zaretskii
545f95d1a3 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)
2023-08-14 18:08:54 +03:00
Mattias Engdegård
c868a737e4 ; * test/lisp/dired-tests.el (dired-test-bug27243-03): fix unwind 2023-08-14 17:03:44 +02:00
Mattias Engdegård
411f1bfc9f ; * test/src/syntax-tests.el (syntax-char-syntax): remove junk 2023-08-14 17:03:44 +02:00
Mattias Engdegård
3bc62bfa9a 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.
2023-08-14 17:03:44 +02:00
Mattias Engdegård
33bcd4f2d2 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.
2023-08-14 17:03:44 +02:00
Po Lu
31ee2ad5ac ; * ChangeLog.android: Clean up entries after the 11th of March. 2023-08-14 21:39:42 +08:00
Po Lu
d5afc8d935 ; * ChangeLog.android: Clean up entries after the 11th of March. 2023-08-14 21:39:02 +08:00
Po Lu
cca14e0253 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.
2023-08-14 16:45:44 +08:00
Po Lu
1c353ae371 ; * ChangeLog.android: Clean up entries after the 10th of July. 2023-08-14 16:45:44 +08:00
Mattias Engdegård
dcaf424cb6 Revert "* lisp/emacs-lisp/ert.el (ert-run-tests-batch-and-exit): Inhibit interaction"
This reverts commit bb9133f09d,
because it inadvertently made many tests fail.
2023-08-14 10:16:32 +02:00
Michael Albinus
b9b4d8689f Merge from origin/emacs-29
fdab7aaada ; * lisp/net/tramp.el (tramp-skeleton-write-region): Fix ...
3eff53b456 Update to Org 9.6.7-13-g99cc96
2023-08-14 09:45:07 +02:00
Michael Albinus
fdab7aaada ; * lisp/net/tramp.el (tramp-skeleton-write-region): Fix last change. 2023-08-14 09:42:43 +02:00
Po Lu
9fb00904f9 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.
2023-08-14 13:15:08 +08:00
Kyle Meyer
3eff53b456 Update to Org 9.6.7-13-g99cc96 2023-08-13 22:11:45 -04:00
Po Lu
3895f88233 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.
2023-08-14 09:16:24 +08:00
Po Lu
0e390f54fa ; 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.
2023-08-14 09:15:51 +08:00
Stefan Kangas
6412ba2f1a ; Delete commented out variable in png_load_body
* src/image.c (png_load_body): Delete commented out variable.
2023-08-14 01:59:10 +02:00
Stefan Monnier
4ff5bb3415 * etc/NEWS (cl-print-ellipsis): Mention backtrace-ellipsis 2023-08-13 15:23:26 -04:00
Stefan Monnier
bb9133f09d * lisp/emacs-lisp/ert.el (ert-run-tests-batch-and-exit): Inhibit interaction 2023-08-13 15:21:52 -04:00
LdBeth
14cd2a058e 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.
2023-08-13 18:31:47 +02:00
Michael Albinus
ba914bd9c9 Merge from origin/emacs-29
c42970d775 Handle last-coding-system-used in Tramp for all backends
ffafe38d03 Add 2 Welsh characters to iso-transl.el
2023-08-13 17:00:53 +02:00
Michael Albinus
c42970d775 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'.
2023-08-13 16:48:00 +02:00
Stefan Kangas
6504b02662 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.
2023-08-13 15:16:49 +02:00
Po Lu
305847f877 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)
2023-08-13 20:31:21 +08:00
Eli Zaretskii
0901dbb2f2 ; * lisp/loadup.el (native-comp-enable-subr-trampolines): Fix a typo. 2023-08-13 15:19:51 +03:00
Stefan Kangas
eea0116e86 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.
2023-08-13 12:52:54 +02:00
Mattias Engdegård
c51d1bce1e 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.
2023-08-13 11:51:03 +02:00
Mattias Engdegård
163e7dac5f ; * lisp/emacs-lisp/rx.el: slight modernisation of internal rx usage 2023-08-13 10:38:29 +02:00
Devon Sean McCullough
ffafe38d03 Add 2 Welsh characters to iso-transl.el
* lisp/international/iso-transl.el (iso-transl-char-map): Add two
Welsh characters.  (Bug#65248)
2023-08-13 09:43:32 +03:00
Eli Zaretskii
08bf8533bb 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)
2023-08-13 09:34:20 +03:00
Po Lu
7ca4c714cb ; * src/conf_post.h: Fix typo. 2023-08-13 13:05:38 +08:00
Po Lu
e09f60045e ; * src/conf_post.h: Fix typo. 2023-08-13 12:59:19 +08:00
Po Lu
0e44ab5f06 Temporary fixes for the Android build
* configure.ac:
* src/conf_post.h [__ANDROID__]: Define substitutes for functions
used by Gnulib that are occasionally absent.
2023-08-13 12:44:25 +08:00
Po Lu
748521ba34 Fix the MS-DOS build
* msdos/sed1v2.inp (TIMER_TIME_LIB): Define to empty string.
2023-08-13 11:23:14 +08:00
Po Lu
5e0c200608 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.
2023-08-13 11:10:50 +08:00
Po Lu
b7c194c1ea ; 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.
2023-08-13 11:04:29 +08:00