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

174524 Commits

Author SHA1 Message Date
Po Lu
142e5c66f3 Merge from savannah/emacs-30
6a512ab032 Fix a typo in Eglot manual
7b752a93a4 Fix dumping of Lisp profiles
bfe07eca59 Fix 'apropos-library' for 'define-symbol-props'
5c1bd99139 Fix 'forward-comment' in 'toml-ts-mode'
e966dd5ee2 Document spell-checking of multiple languages
8a072d1f05 Apply --display kluge for PGTK too
2024-08-17 21:53:50 +08:00
Eli Zaretskii
6a512ab032 Fix a typo in Eglot manual
* doc/misc/eglot.texi (Eglot and Buffers): Fix typo.  Patch by
david edmonds <edmonds.david.a@gmail.com>.  (Bug#72634)
2024-08-17 13:07:56 +03:00
Stefan Monnier
7b752a93a4 Fix dumping of Lisp profiles
* lisp/profiler.el (profiler-fixup-entry): New function.
(profiler-fixup-backtrace): Use it.  (Bug#72559)
2024-08-17 12:50:26 +03:00
Stefan Monnier
bfe07eca59 Fix 'apropos-library' for 'define-symbol-props'
* lisp/apropos.el (apropos-library): Sanitize data to avoid
signaling errors when 'define-symbol-props' is seen.  (Bug#72616)
2024-08-17 12:43:33 +03:00
Eli Zaretskii
5c1bd99139 Fix 'forward-comment' in 'toml-ts-mode'
* lisp/textmodes/toml-ts-mode.el (toml-ts-mode--syntax-table): Fix
syntax of newline.  Patch from Jostein Kjønigsen
<jostein@secure.kjonigsen.net>.  (Bug#72489)
2024-08-17 12:29:31 +03:00
Spencer Baugh
7811a7d38b Stop subprocesses from using inherited or default PAGER
At startup, set PAGER to "cat" so that any inherited or
default value of PAGER does not affect subprocesses of
Emacs.  Pagers generally won't work when a subprocess
runs under Emacs.
Users can use 'comint-pager' (or other customizations)
to tell subprocesses to use a different specific pager.
* lisp/startup.el (normal-top-level): Set PAGER to 'cat',
if 'cat' is available.  (Bug#72426)
2024-08-17 12:23:47 +03:00
Eli Zaretskii
e966dd5ee2 Document spell-checking of multiple languages
* doc/emacs/fixit.texi (Spelling): Document spell-checking
multi-lingual text with Hunspell.
2024-08-17 11:44:35 +03:00
Arash Esbati
ebac138442 Delete matching of whitespace in ispell's LaTeX env names
* lisp/textmodes/ispell.el (ispell-begin-tex-skip-regexp): Remove
matching of arbitrary whitespaces in LaTeX environment names when
wrapping them inside \begin{}.  (bug#72262)
2024-08-17 11:14:47 +03:00
Peter Oliver
8a072d1f05 Apply --display kluge for PGTK too
* src/emacs.c (main): The --display option needs the same handling
with the PGTK backend as it does with the X11 backends.  (Bug#72118)
2024-08-17 11:04:43 +03:00
Eli Zaretskii
c70ac0fef1 Fix script for characters in 3300..3357 range
* admin/unidata/blocks.awk: The characters in the 3300..3357 range
are Katakana according to Unicode's Scripts.txt.
2024-08-17 11:01:12 +03:00
Eli Zaretskii
661e5dec57 Merge from origin/emacs-30
5c9de704cc ; * admin/make-tarball.txt: Minor copyedits.
3fc1635783 ; * doc/lispref/strings.texi (Text Comparison): Improve i...
45a78ec6c5 * lisp/files.el (require-with-check): Improve error messa...
9a04b99b3d ; * src/data.c (Fsubrp): Improve docstring.
4f3e8c3b4e Improve documentation of ERT
ed8904937e Disambiguate minor-mode variable in its function docstring
505139e0ba Fix project-dired keybinding in manual
9bedb957be Improve documentation of time-parsing functions

# Conflicts:
#	doc/lispref/os.texi
#	lisp/calendar/iso8601.el
#	lisp/calendar/parse-time.el
2024-08-17 02:47:38 -04:00
Eli Zaretskii
982a7e8ce3 ; Merge from origin/emacs-30
The following commit was skipped:

7c588a0065 ; Backport gitlab-ci.yml from master (don't merge)
2024-08-17 02:40:33 -04:00
Eli Zaretskii
346a47f151 Merge from origin/emacs-30
4589f51c21 (project-find-regexp): Fix the temporary value of DEFAULT...
616a93d185 Tag test in typescript-ts-mode-tests.el as unstable
e9e7e3908a ; * lisp/files.el (require-with-check): Fix last change.
2024-08-17 02:40:32 -04:00
Eli Zaretskii
2c505c68b2 Add CJK Compatibility character to Han representative chars
* lisp/international/fontset.el (script-representative-chars): Add
U+3410 to Han characters, to represent the 3400..4DBF block.
2024-08-17 09:29:32 +03:00
Paul Eggert
ed305c4b98 Fix x_construct_mouse_click || vs | typo
* src/xterm.c (x_construct_mouse_click): ‘||’ → ‘|’.
Typo found by clang 18.1.6 -Wbool-operation.
2024-08-16 21:16:37 -07:00
Paul Eggert
8c81818673 Tune volatile in read_char
* src/keyboard.c (read_char): Optimize access to a local volatile.
2024-08-16 21:16:36 -07:00
Paul Eggert
a967efdd2a Don’t ignore -Wclobbered in keyboard.c
This fixes Emacs bug#71744.
* src/keyboard.c: Do not ignore -Wclobbered.
(read_char): Fix violation of the C standard, where setjmp
clobbered c.  Fix suggested by Pip Cet in
<https://debbugs.gnu.org/cgi/bugreport.cgi?bug=71744#38>
2024-08-16 21:16:36 -07:00
Paul Eggert
3b24ac5388 Don’t ignore -Wclobbered in image.c
This fix is also prompted by Emacs bug#71744.
* src/image.c: Do not ignore -Wclobbered.
(png_load_body): Fix violations of the C standard, where setjmp
clobbered c.  Move mask_img decl to pacify GCC.
(jpeg_load_body): Don’t make fp volatile; solve that problem in a
better way, via a new fp_volatile local.  Fix violations of the C
standard, where setjmp clobbered mgr, img, and ximg.  If __GNUC__
&& !__clang__, add useless assignments to pacify GCC.
2024-08-16 21:16:36 -07:00
Paul Eggert
1282714da5 Don’t ignore -Wclobbered in eval.c
This fix is also prompted by Emacs bug#71744.
* src/eval.c (CACHEABLE): Remove.  All uses removed.
Do not ignore -Wclobbered.
(internal_lisp_condition_case): Fix violations of the C standard,
where setjmp clobbered oldhandlerlist, var, and clauses.
Rewrite to pacify GCC, by using a sentinel rather than a count,
which GCC incorrectly complained about, and by coalescing some
duplicate code.  If GCC_LINT && __GNUC__ && !__clang__ add a useless
assignment to pacify GCC.
2024-08-16 21:16:35 -07:00
Paul Eggert
cfa5a634e9 Don’t ignore -Wclobbered in emacs-module.c
This fix is also prompted by Emacs bug#71744.
* src/emacs-module.c: Do not ignore -Wclobbered.
(MODULE_HANDLE_NONLOCAL_EXIT): Fix violations of the C standard,
where setjmp clobbered env and internal_cleanup.
(module_extract_big_integer) [GCC_LINT && __GNUC__ && !__clang__]:
Work around GCC -Wclobbered false positive for ‘sign’.
2024-08-16 21:16:35 -07:00
Paul Eggert
2169a9387a Don’t ignore -Wclobbered in bytecode.c
This fix is prompted by Emacs bug#71744.
The working hypothesis is that there are some bugs in Emacs,
and some in GCC’s diagnostics, and that this patch
fixes the Emacs bugs and works around the GCC diagnostic bugs.
The hypothesis is that GCC diagnostic bugs occur when GCC
coalesces variables or temporaries and some variables
are clobbered by setjmp and some vars/temps are not.
Part of this hypothesis involves GCC diagnosing the wrong variables.
Instead of ignoring the diagnostics, which the hypothesis suggests
indicate either problems in Emacs or in GCC, fix the Emacs bugs
and pacify the GCC false positives, with comments about the GCC bugs.
GCC’s true positives are helpful enough in squashing obscure bugs like
Emacs bug#71744, that it’s worth going to some effort to pacify
-Wclobbered instead of ignoring it.
* src/bytecode.c: Do not ignore -Wclobbered.
(exec_byte_code): Fix violations of the C standard, where setjmp
clobbered quitcounter and bc.  If GCC_LINT && __GNUC__ && !__clang__,
work around GCC -Wclobbered warnings for bytestr_data and vectorp.
2024-08-16 21:16:35 -07:00
Eli Zaretskii
5c9de704cc ; * admin/make-tarball.txt: Minor copyedits. 2024-08-16 21:55:37 +03:00
Po Lu
909d1d02db Remove Hangul character from `han' representative character list
* lisp/international/fontset.el (script-representative-chars):
U+3200 is a Hangul character that is predictably absent from CJK
fonts, such as are provided by Xiaomi devices.
2024-08-16 21:33:11 +08:00
Eli Zaretskii
3fc1635783 ; * doc/lispref/strings.texi (Text Comparison): Improve indexing. 2024-08-16 14:05:20 +03:00
Paul Eggert
40eecd594a Port better to NFS unlink
I found this problem while looking into Bug#72641.
* lib-src/etags.c (do_move_file):
* lib-src/update-game-score.c (unlock_file):
* src/androidvfs.c (android_hack_asset_fd_fallback):
* src/filelock.c (current_lock_owner):
Treat unlink as successful if it fails because the file wasn’t there.
This can happen with some NFS implementations, due to its
retrying over the network to get at-least-once semantics.
Although most of Emacs’s calls to unlink were already doing this,
a few instances were not.
2024-08-15 20:11:33 -07:00
Paul Eggert
8b36bfc553 Remove empty (& invalid) lock files
* src/filelock.c (current_lock_owner):
Remove empty lock files, as they are necessarily invalid
and can be caused by buggy file systems.
Problem reported by Michal Nazarewicz (bug#72641).
2024-08-15 13:31:31 -07:00
Paul Eggert
775fa8443f Refactor current_lock_owner
* src/filelock.c (current_lock_owner): Refactor to make further
changes easier.  This should not affect behavior.
2024-08-15 13:31:31 -07:00
Paul Eggert
4b6b9a7acd Avoid some GC when locking/unlocking files
* src/filelock.c (lock_file_1, current_lock_owner):
Don’t possibly invoke the garbage collector when
comparing lock file contents to host names.
2024-08-15 13:31:31 -07:00
Paul Eggert
cbacdca9e3 Fix unlikely lock file integer overflow
* src/filelock.c (within_one_second): Accept intmax_t first arg.
Avoid undefined behavior on integer overflow.
(current_lock_owner): Simplify based on within_one_second change.
2024-08-15 13:31:31 -07:00
Pip Cet
45a78ec6c5 * lisp/files.el (require-with-check): Improve error messages. 2024-08-15 16:28:07 +00:00
Mattias Engdegård
8db72a8d4b Replace some EQ with BASE_EQ
* src/eval.c (FletX, Flet, funcall_lambda)
(let_shadows_buffer_binding_p):
* src/data.c (set_blv_found, set_internal, default_value)
(set_default_internal, Flocal_variable_p):
* src/buffer.c (Fkill_buffer):
(mouse_face_overlay_overlaps, compare_overlays)
(report_overlay_modification):
BASE_EQ is safe because we don't actually compare symbols here.
2024-08-15 16:02:17 +02:00
Po Lu
03a791556a ; * etc/NEWS: Restore reference to Linux kernel. 2024-08-15 20:00:39 +08:00
Ulrich Müller
dcd5b80b09 ; * etc/NEWS: Fix typo. 2024-08-15 11:13:38 +02:00
Andrea Corallo
9a04b99b3d ; * src/data.c (Fsubrp): Improve docstring. 2024-08-15 10:54:26 +02:00
Eli Zaretskii
4f3e8c3b4e Improve documentation of ERT
* doc/misc/ert.texi (Running Tests Interactively)
(Test Selectors):
* lisp/emacs-lisp/ert.el (ert-select-tests)
(ert-run-tests-interactively, ert-run-tests-batch): Improve and
clarify the documentation of the main ERT functions.
2024-08-15 11:30:48 +03:00
Spencer Baugh
7b60a25328 Fix 'partial-completion' for candidates containing newlines
'partial-completion' tries to match a pattern containing wildcards
(such as `any' or `prefix') against completion candidates.
Wildcards are supposed to match any sequence of characters, but
'completion-pcm--pattern->regex' transformed the wildcards into
".*", which won't match sequences containing newlines.  Fix this to
properly match anything by using "[^z-a]*" instead.
(That's (rx (* anything)).)
* lisp/minibuffer.el (completion-pcm--pattern->regex): Fix
regex.  (Bug#72425)
2024-08-15 10:41:35 +03:00
Visuwesh
ed8904937e Disambiguate minor-mode variable in its function docstring
* lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring)
(easy-mmode--mode-docstring): Add "the variable" before the
GETTER if it is a symbol to properly link to minor-mode variable
in the *Help* buffer in the common case.  (bug#72405)
2024-08-15 10:37:36 +03:00
Ulrich Müller
62067d2ae7 ; * etc/NEWS: Update wording of last change 2024-08-15 09:28:48 +02:00
Ulrich Müller
49e7f1b92d Drop fallback code in date-to-time, update documentation
* lisp/calendar/time-date.el (date-to-time): Drop fallback code.
Document that the default timezone is local time, rather than GMT.
* test/lisp/calendar/time-date-tests.el (test-date-to-time):
Add more test cases.
* doc/lispref/os.texi (Time Parsing): Document that 'date-to-time'
defaults to local time.
* etc/NEWS: Announce the change.  (Bug#72570)
2024-08-15 08:17:15 +02:00
Paul Eggert
2533a60e42 * lisp/calendar/time-date.el: Add comment. 2024-08-14 20:37:12 -07:00
Arash Esbati
505139e0ba Fix project-dired keybinding in manual
* doc/emacs/maintaining.texi (Project File Commands): Fix the
keybinding for `project-dired'.  (Bug#72581)
2024-08-14 19:16:37 +02:00
Eli Zaretskii
9bedb957be Improve documentation of time-parsing functions
* doc/lispref/os.texi (Time Parsing):
* lisp/calendar/iso8601.el (iso8601-parse):
* lisp/calendar/parse-time.el (parse-time-string): Document that
these functions don't care about the distinction between local
time and UTC.  (Bug#72570)
2024-08-14 11:35:48 +03:00
Michael Albinus
7c588a0065 ; Backport gitlab-ci.yml from master (don't merge)
* test/infra/gitlab-ci.yml (.job-template): Remove cache:policy.
(.build-template, .test-template): Add job specific cache:policy.
(.tree-sitter-template): Adapt changes.
2024-08-14 09:47:59 +02:00
Michael Albinus
c0ccb18d25 Tag treesit-indirect-buffer as :unstable
* test/src/treesit-tests.el (treesit-indirect-buffer):
Tag it as :unstable on emba.
2024-08-14 09:34:52 +02:00
Dmitry Gutov
4589f51c21 (project-find-regexp): Fix the temporary value of DEFAULT-DIRECTORY
* lisp/progmodes/project.el (project-find-regexp): Make sure the
assigned value of DEFAULT-DIRECTORY ends with a slash.
read-directory-name returns the name without it in certain cases.
2024-08-13 15:14:18 +03:00
Michael Albinus
632e6c27a8 * test/infra/gitlab-ci.yml (.tree-sitter-template): Adapt changes. 2024-08-13 11:08:39 +02:00
Michael Albinus
616a93d185 Tag test in typescript-ts-mode-tests.el as unstable
* test/lisp/progmodes/typescript-ts-mode-tests.el
(typescript-ts-mode-test-indentation): Tag it as :unstable on emba.
2024-08-13 09:19:00 +02:00
Eli Zaretskii
e9e7e3908a ; * lisp/files.el (require-with-check): Fix last change. 2024-08-13 05:27:08 +03:00
Po Lu
6533fd65b6 Merge from savannah/emacs-30
b585826a65 ; * lisp/files.el (require-with-check): Fix doc string an...
6d55e94996 macOS: Wrong frame rectangle after wake (bug#71912)
c49724b964 ; Grammar fixes
5c3d340e00 Fix format 2 cmap handling in sfnt.c
2024-08-13 09:12:30 +08:00
Po Lu
cd66b84812 ; Merge from savannah/emacs-30
The following commit was skipped:

8e925d582a Fix coordinate transformations in sfnt.c
2024-08-13 09:12:30 +08:00