1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-29 07:58:28 +00:00
Commit Graph

173969 Commits

Author SHA1 Message Date
Po Lu
507a13f5a1 Merge from savannah/emacs-30
334d513220 (edebug--called-interactively-skip): Fix bug#71934
6e8b9ccaec ; * lisp/ibuffer.el (ibuffer-mode): Doc fix.
3eaf1abbff Fix MS-Windows build with native-compilation
fc375359ed Tag dbus-test05-register-signal-with-nils as unstable
99230d7080 ; * src/w32fns.c (funhook): Restore mistakenly lost line.
81a7358a33 Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/...
b085d68396 Fix treesit test (bug#71907)
f39cf0beb7 Focus more on MS-Windows than MS-DOS in FAQ
d64396b8e4 Autoload some string functions
bd482b745a Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/...
b534183135 * etc/NEWS: Fix typos.
850fc68481 ; (grep-read-files): Fix completion table
2853259935 Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/...
921d40759e Remove a reference to a non-existant variable from a doc-...
5d2a115ab0 ; * src/fns.c (value_cmp): ASCIIfy.
2024-07-05 10:05:23 +08:00
Pip Cet
d76eb23232 Fix dumping finalizers with pdumper
* src/pdumper.c (dump_finalizer): Use `out' (a pointer to a finalizer)
rather than `&out' (a pointer to a pointer to a finalizer).
2024-07-04 22:17:37 +00:00
Stefan Kangas
0e591a9112 Remove redundant requires
* lisp/gnus/canlock.el (sha1):
* lisp/international/utf7.el (base64):
* lisp/net/hmac-md5.el (md5):
* lisp/org/ob-processing.el (sha1):
* lisp/org/org-feed.el (sha1):
* test/lisp/net/rfc2104-tests.el (sha1, md5): Don't require features
that are built-in, and always provided.
2024-07-04 23:55:16 +02:00
Jim Porter
f91387cce8 In SHR, load from URL cache if possible when zooming images
* lisp/net/shr.el (shr-replace-image): New function extracted from...
(shr-image-fetched): ... here.
(shr-zoom-image): Check URL cache and call 'shr-replace-image' if we
can.
2024-07-04 12:14:37 -07:00
Jim Porter
208207c1c0 Fix the different image zoom levels in SHR to work as expected
* lisp/net/shr.el (shr-image-zoom-levels): New option.
(shr-image-zoom-level-alist): New variable.
(shr-zoom-image): Take POSITION and ZOOM-LEVEL arguments.  Consult
'shr-image-zoom-levels'.
(shr-put-image): Use 'shr-image-zoom-level-alist'.
(shr-rescale-image): Only reset width *or* height when either is too
large.
(shr--image-zoom-original-size, shr--image-zoom-image-size)
(shr--image-zoom-fill-height): New functions.

* etc/NEWS: Announce this change.
2024-07-04 12:14:37 -07:00
Jim Porter
6d082f3c79 In SHR, keep track of image sizes as specified by the HTML
Previously, these values got lost when zooming the image.

* lisp/net/shr.el (shr-tag-img): Set 'image-dom-size'...
(shr-zoom-image): ... use it.  Rename 'size' to 'zoom'.
(shr-image-fetched): Rename 'image-size' to 'image-zoom'.
(shr-put-image): Accept the zoom level as ':zoom' and document it.
Previously, FLAGS was a mix of alist and plist(!).

* test/lisp/net/shr-tests.el (shr-test/zoom-image): Rename "size" to
"zoom".
2024-07-04 12:14:37 -07:00
Jim Porter
3ce7e4ee3f Slice images based on their height in SHR, not their zoom level
* lisp/net/shr.el (shr-sliced-image-height): New option...
(shr-put-image): ... use it.  Compute the number of slices in relation
to the image height; this way, each slice is roughly the height of a
line of ordinary text.

* test/lisp/net/shr-tests.el (shr-test/zoom-image): Update test, since
zooming no longer necessarily triggers slicing.

* doc/misc/eww.texi (Advanced): Document 'shr-sliced-image-proportion'.

* etc/NEWS: Announce this change.
2024-07-04 12:14:37 -07:00
Mattias Engdegård
fa6f088a48 ; * src/fns.c (fixnum_float_cmp): Explain argument constraint.
Suggested by Pip Cet.
2024-07-04 17:48:16 +02:00
Stefan Monnier
334d513220 (edebug--called-interactively-skip): Fix bug#71934
* lisp/emacs-lisp/edebug.el (edebug--called-interactively-skip):
Adjust to new interpreted functions.
2024-07-04 11:47:01 -04:00
Mattias Engdegård
0b061ab2ed ; Strengthen value< tests slightly
* test/src/fns-tests.el (fns-value<-ordered, fns-value<-unordered):
Check equality and/or unordered results using lexicographic constructs.
2024-07-04 16:01:55 +02:00
Mattias Engdegård
f9f4f054bc Compare fixnums and floats accurately in value<
Make `value<` compare fixnums and floats by value, as `<` does, instead
of coercing the fixnum to a float first which is what C would do.
This matters when the fixnum cannot be represented as a float. For
example, C would evaluate

  72057594037927935 < 72057594037927936.0

to false since the operands are converted to the same floating-point
number.

* src/fns.c (fixnum_float_cmp): New.
(value_cmp): Use it.
* test/src/fns-tests.el (fns-value<-ordered, fns-value<-unordered):
New test cases.
2024-07-04 15:32:45 +02:00
Eli Zaretskii
6e8b9ccaec ; * lisp/ibuffer.el (ibuffer-mode): Doc fix. 2024-07-04 10:59:45 +03:00
Stefan Kangas
565f4e4ad1 ; Delete redundant comment in rst.el
* lisp/textmodes/rst.el: Delete redundant comment.
2024-07-03 22:23:19 +02:00
Eli Zaretskii
3eaf1abbff Fix MS-Windows build with native-compilation
* src/w32.c (globals_of_w32): Move re-initialization of
Vlibrary_cache from here...
* src/emacs.c (main): ...to here, as it must be after load_pdump.
(Bug#71916)
2024-07-03 22:13:42 +03:00
Andrea Corallo
fc375359ed Tag dbus-test05-register-signal-with-nils as unstable
* test/lisp/net/dbus-tests.el (dbus-test05-register-signal-with-nils):
Tag it as unstable.
2024-07-03 20:13:13 +02:00
Eli Zaretskii
99230d7080 ; * src/w32fns.c (funhook): Restore mistakenly lost line. 2024-07-03 21:06:27 +03:00
Spencer Baugh
f7725d85f3 Prefer to run find and grep in parallel in rgrep (bug#71094)
* lisp/progmodes/grep.el (grep-compute-defaults): Prefer `gnu' for
grep-find-use-xargs over `exec-plus', but not on Windows.  (bug#71094)
2024-07-03 15:39:23 +02:00
Eli Zaretskii
81a7358a33 Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30 2024-07-03 13:55:13 +03:00
Po Lu
65bd41d1cf Adapt doc-view-set-slice-using-mouse to touch-screen input
* doc/lispref/commands.texi (Touchscreen Events): Document means
of unconditionally enabling simple conversion.

* lisp/doc-view.el (doc-view-set-slice-using-mouse): Bind
touch-screen-simple-mouse-conversion to t, and read translated
mouse events with read-key rather than read-event.

* lisp/subr.el (read-key): Don't permit idle timer to interfere
with reporting of translated mouse events.

* lisp/touch-screen.el (touch-screen-simple-mouse-conversion):
New variable.
(touch-screen-handle-point-up, touch-screen-handle-touch):
Unconditionally enable `mouse-drag' translation if set.  Decide
whether to send drag or mouse events by the values of the two
touchpoints' XY positions and point and double-click-fuzz, as in
make_lispy_event.
2024-07-03 17:05:24 +08:00
Yuan Fu
b085d68396
Fix treesit test (bug#71907)
* test/src/treesit-tests.el (treesit-node-check): Re-parse buffer before
checking for node outdated-ness.
2024-07-03 00:31:16 -07:00
Stefan Kangas
f39cf0beb7 Focus more on MS-Windows than MS-DOS in FAQ
* doc/misc/efaq.texi (Editing Windows files): Rename section from
"Editing MS-DOS files", and update the text to focus on Windows.
* doc/misc/efaq.texi (Colors on a TTY)
(Emacs does not display 8-bit characters): Mention MS-Windows before
MS-DOS.
2024-07-03 02:08:19 +02:00
Stefan Kangas
d64396b8e4 Autoload some string functions
These functions are documented in both `(elisp) Creating Strings' and
'M-x shortdoc RET string RET', so users will expect them to be available
without having to require 'subr-x'.

* lisp/emacs-lisp/subr-x.el (string-fill, string-limit, string-pad)
(string-chop-newline): Autoload.
2024-07-03 02:08:19 +02:00
Stefan Monnier
667ca66481 (dump_interval_node): Remove unused arg offset
* src/pdumper.c (dump_interval_node): Remove unused arg `offset`.
(dump_overlay): Adjust call accordingly.
2024-07-02 16:29:07 -04:00
Stefan Monnier
0385c0c082 (buf_*pos_to_*pos): Fix minor off-by one
* src/marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
Slightly restructure the markers loop so we check `distance`
also before "consider"ing the first marker.
2024-07-02 16:28:08 -04:00
Eli Zaretskii
bd482b745a Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30 2024-07-02 17:41:48 +03:00
Po Lu
4c3e0c990c Merge from savannah/emacs-30
b534183135 * etc/NEWS: Fix typos.
850fc68481 ; (grep-read-files): Fix completion table
921d40759e Remove a reference to a non-existant variable from a doc-...
4c64b99087 ; * etc/NEWS: Fix level of several entrries.
459e635099 ; * etc/NEWS: Fix typo.
7050128cfe ; * src/search.c (Fmatch_beginning, Fmatch_end): Doc fix.

# Conflicts:
#	etc/NEWS
2024-07-02 20:55:22 +08:00
Michael Albinus
b534183135 * etc/NEWS: Fix typos. 2024-07-02 14:28:52 +02:00
Eshel Yaron
850fc68481
; (grep-read-files): Fix completion table
* lisp/progmodes/grep.el (grep-read-files): Cease returning
some completion candidates unconditionally.  Use
'completion-file-name-table' over 'read-file-name-internal'
because the latter uses 'completion-table-with-quoting', and
that doesn't blend well with other tables in
'completion-table-merge'.

https://lists.gnu.org/archive/html/emacs-devel/2024-06/msg01194.html
2024-07-02 14:12:40 +02:00
Eli Zaretskii
2853259935 Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30 2024-07-02 14:08:58 +03:00
Po Lu
6b5accdc05 Port seccomp acceleration to Linux 3.5.0
* etc/NEWS: Update correspondingly.

* exec/Makefile.in (config-mips.m4): Don't define rule
or predicate $(LOADOBJS) on it elsewhere than on MIPS.

* exec/README: Direct developers to GDB.

* exec/trace.c (finish_exec): Resume the tracee after reporting
an error in `exec'.
(after_fork): If seccomp is enabled on Android, and the kernel
is 4.7 or earlier, detect whether revisions to the sequencing of
seccomp events have been backported from 4.8.
(exec_waitpid): Resume the process with PTRACE_CONT after
receiving an unknown signal.
(exec_init): Cease disabling seccomp on Android kernels earlier
than 4.8.
2024-07-02 12:12:14 +08:00
Alan Mackenzie
921d40759e Remove a reference to a non-existant variable from a doc-string
* lisp/progmodes/cc-langs.el (c-opt-extra-label-key): Remove
reference to c-nonlabel-decl-prefix-re from the doc string.
2024-07-01 20:37:28 +00:00
Eli Zaretskii
5d2a115ab0 ; * src/fns.c (value_cmp): ASCIIfy. 2024-07-01 21:58:17 +03:00
Eli Zaretskii
4c64b99087 ; * etc/NEWS: Fix level of several entrries. 2024-07-01 20:33:52 +03:00
Eli Zaretskii
459e635099 ; * etc/NEWS: Fix typo. 2024-07-01 20:30:23 +03:00
Po Lu
e087d3009b * exec/exec.c (exec_0): Restore erroneously deleted statement. 2024-07-01 22:55:03 +08:00
Po Lu
085a813c33 * configure.ac: Provide for invocations where no cache file is set. 2024-07-01 21:44:40 +08:00
Po Lu
e64286f53c * configure.ac: Create a cache file for libexec. 2024-07-01 21:35:03 +08:00
Eli Zaretskii
7050128cfe ; * src/search.c (Fmatch_beginning, Fmatch_end): Doc fix. 2024-07-01 15:59:05 +03:00
Po Lu
5965614d3e ; * exec/trace.c (seccomp_system_call): Typo in commentary. 2024-07-01 18:22:01 +08:00
Po Lu
708c6d83fc ; * etc/NEWS: Announce last Android change. 2024-07-01 18:15:51 +08:00
Po Lu
71530ab1ae Merge from savannah/emacs-30
1647494c04 ; * etc/NEWS: Clarify.
b2c966f839 ; * src/treesit.c (Ftreesit_query_capture): Fix typo.
ae38579420 * java/res/mipmap-v26/emacs_icon.xml: Define monospace icon.
b2d99c0d0a Improve `sentence-end-double-space` docstring

# Conflicts:
#	etc/NEWS
2024-07-01 18:12:40 +08:00
Po Lu
311c677343 ; Merge from savannah/emacs-30
The following commit was skipped:

9d62dbc1f7 Backport file backup FAQ item to Emacs <28
2024-07-01 18:12:38 +08:00
Po Lu
d5cae5ea36 Merge from savannah/emacs-30
2f71460d52 More updates of documentation for Emacs 30
a9df581c40 ; * etc/NEWS: Copy-edit.
dfbdd38f70 Revert "; * etc/NEWS: Move items to "Incompatible Lisp Ch...

# Conflicts:
#	etc/NEWS
2024-07-01 18:12:38 +08:00
Po Lu
ebf5bcb9f0 Optimize process execution on Android
* exec/configure.ac (REENTRANT): Remove option for reentrancy.
(PROGRAM_COUNTER, HAVE_SECCOMP): Define register providing the
program counter and enable seccomp if its headers are available.

* exec/exec.c (write_load_command): Avoid defining unused
variable.
(exec_0): Remove code specific to REENTRANT configurations.

* exec/exec.h (struct exec_tracee) <exec_data, data_size>: New
fields for loader instructions and their size.

* exec/exec1.c (main): Call exec_init before forking.

* exec/mipsel-user.h (ELF_NGREG): Delete definition.
(struct mipsel_regs): Reduce number of gregs to 32, but
introduce separate fields for special registers.

* exec/trace.c (use_seccomp_p): New variable; defile to false if
!HAVE_SECCOMP.
(remove_tracee): Cease providing for non-reentrant
configurations.  Release executable data if present.
(handle_clone_prepare): Likewise.  Resume process with
PTRACE_CONT if seccomp-based interception is enabled.
(handle_clone, check_signal): Resume processes as above.
(handle_exec): Divide into two functions, with only rewriting
the system call and generating instructions for the loader
remaining in the first, and copying such instructions into the
loader's stack removed into a new function, `finish_exec'.
(finish_exec): New function.
(handle_readlinkat, handle_openat): Abolish non-REENTRANT
configurations.
(process_system_call): Divide exec system calls into two phases,
disambiguated by the value of tracee->waiting_for_syscall.  Typo
fixes.  Accommodate syscall-exit-stops where the signal was
initially intercepted by `seccomp_system_call'.
(interesting_syscalls): New array.
(ARRAYELTS): New macro.
(seccomp_system_call, establish_seccomp_filter): New function.
(tracing_execve) [HAVE_SECCOMP]: Establish a seccomp filter if
this is to be enabled.
(after_fork): Provide PTRACE_O_TRACESECCOMP.  Resume process
with PTRACE_CONT if seccomp-based interception is enabled.
(exec_waitpid): Resume process with PTRACE_CONT if seccomp-based
interception is enabled.  Dispatch stops identifying as
PTRACE_EVENT_SECCOMP to `seccomp_system_call'.
(exec_init): Establish whether it is possible to enable seccomp.
2024-07-01 18:11:58 +08:00
Mattias Engdegård
1647494c04 ; * etc/NEWS: Clarify. 2024-07-01 10:44:22 +02:00
Yuan Fu
b2c966f839
; * src/treesit.c (Ftreesit_query_capture): Fix typo. 2024-06-30 22:36:34 -07:00
Po Lu
ae38579420 * java/res/mipmap-v26/emacs_icon.xml: Define monospace icon. 2024-07-01 11:22:18 +08:00
Stefan Kangas
b2d99c0d0a Improve sentence-end-double-space docstring
* lisp/textmodes/paragraphs.el (sentence-end-double-space):
Improve and expand docstring.
2024-07-01 02:41:52 +02:00
Stefan Kangas
9d62dbc1f7 Backport file backup FAQ item to Emacs <28
* doc/misc/efaq.texi (Not writing files to the current directory):
Backport recommendation to Emacs 27 or older.
Problem reported by David Hedlund <davidh@gnu.org>.
2024-07-01 01:50:51 +02:00
Eli Zaretskii
2f71460d52 More updates of documentation for Emacs 30
* etc/NEWS: Improve wording and move/mark entries.

* doc/lispref/positions.texi (List Motion): Document
'forward-sentence-function'.
* doc/lispref/functions.texi (What Is a Function): Document
'primitive-function-p' and 'cl-functionp'.
* doc/emacs/misc.texi (Saving Emacs Sessions): Improve wording and
indexing.
* doc/lispref/tips.texi (Documentation Tips): Adapt to the new
value of 'emacs-lisp-docstring-fill-column'.
* doc/emacs/fixit.texi (Spelling): Document
'flyspell-check-changes'.
2024-06-30 22:25:31 +03:00