Commit graph

168304 commits

Author SHA1 Message Date
Dmitry Gutov
9dff654432 * src/fileio.c (Ffile_name_concat): Improve docstring. 2023-08-17 04:16:09 +03:00
Dmitry Gutov
155154f6f1 ; * lisp/progmodes/project.el (project-find-file-in): Update docstring. 2023-08-17 04:16:09 +03:00
Po Lu
4509cda5c9 Update Android port
* configure.ac (emacs_cv_tputs_lib): Only circumvent termcap if
Android windowing support is enabled.  (bug#65340)

* etc/PROBLEMS: Fix typo in section recouting problems with the
Anonymous Pro font.

* lisp/subr.el (event-start, event-end): Return the mouse
position list tied to touchscreen-begin and end events.
Reported by Stefan Monnier <monnier@iro.umontreal.ca>.

* lisp/version.el (emacs-build-system, emacs-build-time)
(emacs-repository-get-version, emacs-repository-get-branch):
Bypass Android specific code on non-GUI builds running on
Android.  (bug#65340)

* lisp/wid-edit.el (widget-event-point): Remove now redundant
code.
2023-08-17 08:45:57 +08:00
Po Lu
cbe6b48b36 Fix potential NULL pointer dereference
* java/org/gnu/emacs/EmacsDialog.java (display): Initialize
rc.thing to false.
2023-08-17 08:25:40 +08:00
Mattias Engdegård
898edb1816 tibetan.el: compute constants at compile time, optimise regexps
* lisp/language/tibetan.el (tibetan-subjoined-transcription-alist)
(tibetan-regexp, tibetan-precomposed-regexp)
(tibetan-precomposition-rule-regexp):
Evaluate at compile time.  Use regexp-opt.
2023-08-16 21:54:50 +02:00
Stefan Kangas
508d24c8b9 ; Silence byte-compiler
* test/src/comp-tests.el (native-comp-eln-load-path): Declare.
2023-08-16 21:34:11 +02:00
Stefan Kangas
d96dd127e3 Speed up dictionary--count-mode-buffers
* lisp/net/dictionary.el (dictionary--count-mode-buffers): Make
faster.  Patch by Visuwesh <visuweshm@gmail.com>.
2023-08-16 21:27:50 +02:00
Stefan Kangas
cf5ae0507e Add test for calculator-exp
* test/lisp/calculator-tests.el (calculator-expt): New test.
2023-08-16 21:27:50 +02:00
Stefan Kangas
33d3e5c545 Make term-mode non-interactive
* lisp/term.el (term-mode): Mark as non-interactive.
2023-08-16 21:27:49 +02:00
Michael Albinus
ebe8871794 ; * etc/NEWS: Fix typos. 2023-08-16 20:12:42 +02:00
Gregory Heytings
f09126bd90 Improve 'emake --quieter'
* admin/emake: Improve the output when the --quieter option is
used.
2023-08-16 17:47:34 +00:00
Michael Albinus
19513a654e ; Fix last change
* lisp/net/tramp-sh.el (tramp-bundle-read-file-names): Replace "echo -n"
by "printf", it isn't portable.  (Bug#65321)
2023-08-16 19:31:05 +02:00
Jim Porter
647bcec4f5 Show how to call an Elisp function of the same name as an Eshell built-in
* doc/misc/eshell.texi (Built-ins): Expand documentation.
2023-08-16 10:02:17 -07:00
Jim Porter
c4915678f3 Add 'compile' builtin command for Eshell
* lisp/eshell/em-unix.el (eshell-compile, eshell/compile): New
functions.
(eshell/make, eshell-grep): Use 'eshell-compile'.
(eshell/glimpse): It's no longer necessary to let-bind 'null-device';
'eshell-grep' no longer calls 'grep' (the Lisp function), which needed
'null-device' to be nil for this case.

* test/lisp/eshell/em-unix-tests.el: New file.

* doc/misc/eshell.texi (Built-ins): Document the 'compile' builtin.

* etc/NEWS: Announce this change (bug#65273).
2023-08-16 10:01:49 -07:00
Gregory Heytings
b73ab54ae6 Various improvements to 'emake'
* admin/emake: Highlight the result of 'check-maybe' in red.
Reindent a few lines.  Add a line in the filters.  Clarify the
documentation.
2023-08-16 16:06:45 +00:00
Gregory Heytings
1e2d077515 Add a target to byte-compile all tests without running them
* test/Makefile.in: Add a check-byte-compile target.
* Makefile.in: Add the check-byte-compile target to CHECK_TARGETS.
2023-08-16 16:06:40 +00:00
Gregory Heytings
c287a0fdc7 Simplify 'with-restriction' and 'without-restriction'
* lisp/subr.el (with-restriction, without-restriction): Merge the
bodies of the 'internal--with-restriction' and
'internal--without-restriction' function into the macros.  The
result is more efficient than a funcall.
(internal--with-restriction, internal--without-restriction):
Remove.
Suggested by Mattias Engdegård.
2023-08-16 16:06:38 +00:00
Gregory Heytings
9e9e11648d Simplify 'without-restriction'
This simplification is symmetrical to 01fb898420.

* src/editfns.c: (Finternal__labeled_widen): Add a call to
'Fwiden', and rename from 'internal--unlabel-restriction'.
(unwind_labeled_narrow_to_region): Use the renamed function, and
remove the call to 'Fwiden'.
(syms_of_editfns): Rename the symbol.

* lisp/subr.el (internal--without-restriction): Use the renamed
function.
2023-08-16 16:06:34 +00:00
Gregory Heytings
d622602452 Fix combine-change-call
* lisp/subr.el (combine-change-calls-1): Rewrite and document
the part which creates the undo-list element.  Fixes bug#60467
and bug#64989.
2023-08-16 16:06:31 +00:00
Mattias Engdegård
1ad318cf2a ob-tangle.el: fix unintended range in regexp
* lisp/org/ob-tangle.el (org-babel-interpret-file-mode):
Repair parts of regexp that should only match +, - and =.
* lisp/files.el (file-modes-symbolic-to-number):
Fix the same error in a doc string; this seems to be where
the mistake originated.
2023-08-16 16:55:38 +02:00
Mattias Engdegård
ca68783929 Fix Info parser regexp mistake
* lisp/info.el (Info-split-parameter-string):
The `\sX` syntax construct isn't valid inside character alternatives;
follow the obvious intention.
2023-08-16 16:55:38 +02:00
Mattias Engdegård
5b87950133 Remedy wrong-looking \(:?...\) regexp constructs
When we see \(:?...\) in a regexp it very much looks like a typo
for a \(?:...\) construct and often is, so do something about
all of these (one of which being another mistake).
Doing so silences an optional relint check.

* lisp/comint.el (comint-replace-by-expanded-history-before-point):
* lisp/term.el (term-replace-by-expanded-history-before-point):
Move :? out from capturing group where it does not need to be,
to avoid confusion.
* lisp/emacs-lisp/cl-indent.el (common-lisp-loop-part-indentation):
A capturing group isn't needed here; turn it into simple bracketing.
* lisp/progmodes/sql.el (sql--completion-table):
Change :? into ?: which was clearly meant here.
2023-08-16 16:55:38 +02:00
Po Lu
d6c473a91d * etc/PROBLEMS: Document a problem with the Anonymous Pro font. 2023-08-16 22:06:10 +08:00
Eli Zaretskii
dfe68f2a42 ; 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)
2023-08-16 16:10:55 +03:00
Eli Zaretskii
3d7041834f Revert "Fix slow "C-h f" in Emacs built without native compilation"
This reverts commit 545f95d1a3.
It is no longer needed, as comp.el and comp-cstr.el are now
byte-compiled even if native-compilation is not built-in.
2023-08-16 16:06:20 +03:00
Po Lu
5e9711fe58 ; * etc/MACHINES (Android): Clarify a minor point. 2023-08-16 20:35:08 +08:00
Po Lu
f2f2e6a082 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)
2023-08-16 20:32:38 +08:00
Michael Albinus
22d031f644 Fix infloop error in Tramp
* lisp/net/tramp-sh.el (tramp-find-file-exists-command): Do not
call `tramp-get-ls-command'.  (Bug#65321)
2023-08-16 11:48:28 +02:00
Andrea Corallo
2eaf1e3efc * lisp/Makefile.in (compile-targets): Always byte compile native comp. 2023-08-16 10:22:57 +02:00
Po Lu
3e51847801 Improve java/DEBUG
* etc/DEBUG: Significantly reword and expand section.
(bug#65268)
2023-08-16 16:13:19 +08:00
Po Lu
5e12f4c89c ; ChangeLog.android: Clean up more entries. 2023-08-16 14:33:47 +08:00
Po Lu
24886a2cc4 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.
2023-08-16 11:12:44 +08:00
Po Lu
6dacf5bce4 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.
2023-08-16 11:02:55 +08:00
Bob Rogers
612f25c24f 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).
2023-08-16 04:20:26 +03:00
F. Jason Park
98af493e0f 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)
2023-08-15 17:13:52 -07:00
F. Jason Park
4b17cc3147 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)
2023-08-15 16:47:20 -07:00
F. Jason Park
35a670a2f6 ; 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.
2023-08-15 16:47:20 -07:00
Paul Eggert
cc5649bd28 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.
2023-08-15 15:55:40 -07:00
Paul Eggert
63d8d65229 Update from Gnulib by running admin/merge-gnulib 2023-08-15 15:55:40 -07:00
Stefan Kangas
c9fbd8950b Fix typo in pcomplete/sha512sum alias
* lisp/pcmpl-unix.el (pcomplete/sha512sum): Rename from
'pcomplete/sha521sum'.
2023-08-15 21:32:59 +02:00
kobarity
1db7e8eba9 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'.
2023-08-15 17:07:10 +02:00
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