1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-04 08:47:11 +00:00
Commit Graph

165679 Commits

Author SHA1 Message Date
Eli Zaretskii
db7d70d3ca ; Add commentary to 'describe-function's completion
* lisp/help-fns.el
(help-fns--describe-function-or-command-prompt): Add a comment
(bug#64902).
2023-08-03 11:26:32 +03:00
Stefan Kangas
d005b2c89c Fix link to info node in prin1 docstring
* src/print.c (Fprin1): Fix linking to info node in docstring.

(cherry picked from commit 4b73edb8d1)
2023-08-03 10:33:02 +03:00
Eli Zaretskii
6eddbfe33f Clarify the meaning of the argument of ':align-to' space spec
* doc/lispref/display.texi (Specified Space): Clarify the meaning
and measurement of HPOS in ':align-to' space specs.  (Bug#65015)
2023-08-03 08:31:17 +03:00
Jim Porter
5c6a51668b ; * doc/misc/eshell.texi (Argument Modifiers): Fix typo in example. 2023-08-02 11:05:37 -07:00
Jim Porter
da5e05a50e Fix handling of ".elpaignore" file when compiling packages
* lisp/emacs-lisp/bytecomp.el (byte-recompile-directory): Treat
'byte-compile-ignore-files' as a list of regexps per its docstring
(bug#64985).
2023-08-01 18:14:35 -07:00
Amritpal Singh
608a8757d9 Support files compressed by 'pigz'
* src/decompress.c (md5_gz_stream): Check 'stream.avail_in' as
well.  (Bug#63832)

Copyright-paperwork-exempt: yes
(cherry picked from commit 46b6d17505)
2023-08-01 13:23:04 +02:00
Eli Zaretskii
0c29f53ab8 Fix 'string-pixel-width' under 'line-prefix'
* lisp/emacs-lisp/subr-x.el (string-pixel-width): Disable
'line-prefix' and 'wrap-prefix' to avoid their effect on the
calculated string width.  (Bug#64971)
2023-07-31 21:50:45 +03:00
Michael Albinus
7bbd7cae07 Fix find-dired-with-command for remote directories
* lisp/find-dired.el (find-dired-with-command):
Use `start-file-process-shell-command'.  (Bug#64897)
2023-07-31 17:49:21 +02:00
Michael Albinus
c4a8572025 ; * etc/HISTORY: Fix Emacs 28.3 entry. 2023-07-31 17:48:36 +02:00
Mattias Engdegård
3560dfdb86 ; Fix backport of help-fns--analyze-function bug fix
* lisp/help-fns.el (help-fns--analyze-function):
Add back the NOERROR argument to function-alias-p, needed because
Emacs 29 doesn't prevent the creation of circular function aliases.
This fixes a failure in help-fns-tests.
2023-07-31 16:14:07 +02:00
Eli Zaretskii
525d05c1b8 Merge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/emacs into emacs-29 2023-07-31 14:42:27 +03:00
Eshel Yaron
29ef215711 ; * lisp/textmodes/paragraphs.el: Remove leftover comment.
* lisp/textmodes/paragraphs.el: Remove a comment referring to code
that was removed in cf605d5.  (Bug#64947)
2023-07-31 14:41:11 +03:00
Kyle Meyer
80c9f491fc Update to Org 9.6.7-5-gd1d0c3 2023-07-30 16:52:11 -04:00
Eli Zaretskii
735f3700f6 ; * src/character.c (Fstring_width): Fix last change. 2023-07-30 22:09:05 +03:00
Eli Zaretskii
bf83fdba9e ; * src/character.c (Fstring_width, Fchar_width): Doc fixes. 2023-07-30 20:10:54 +03:00
Eli Zaretskii
1198cdb556 Merge branch 'emacs-29' of git.sv.gnu.org:/srv/git/emacs into emacs-29 2023-07-30 12:19:32 -04:00
Mattias Engdegård
2b8796eea1 Fix rx wrong-code bug: ranges starting with ^
(rx (in (?^ . ?a))) was incorrectly translated to "[^-a]".
Change it so that we get "[_-a^]" instead.

* lisp/emacs-lisp/rx.el (rx--generate-alt): Split ranges starting with
`^` occurring first in a non-negated character alternative.
* test/lisp/emacs-lisp/rx-tests.el (rx-any): Add and adapt tests.

(cherry picked from commit 5f5d668ac7)
2023-07-30 18:12:19 +02:00
Basil L. Contovounesios
ba60070b81 Backport: Fix some tree-sitter :match regexps
This was originally installed on 2023-06-17 in the emacs-29 release
branch and later reverted.  This backport follows the Emacs 29.1
release (bug#64019).

The shy groups were caught by modified versions of the GNU ELPA
packages xr and relint:
- https://github.com/mattiase/xr/pull/6
- https://github.com/mattiase/relint/pull/14

* lisp/progmodes/ruby-ts-mode.el (ruby-ts--s-p-query): Quote special
character in regexp.
* lisp/progmodes/java-ts-mode.el (java-ts-mode--font-lock-settings):
* lisp/progmodes/js.el (js--plain-method-re):
(js--treesit-font-lock-settings):
* lisp/progmodes/rust-ts-mode.el (rust-ts-mode--font-lock-settings):
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--font-lock-settings): Replace character
alternative [\\d], which matches '\' or 'd', with the most likely
intention [0-9].  Fix shy groups mistyped as optional colons.
Remove unneeded numbered :match group in rust-ts-mode.

(cherry picked from commit cd8d3f3379)
2023-07-30 17:39:34 +02:00
Eli Zaretskii
092a2ecb08 ; * admin/make-tarball.txt: Update based on latest experiences. 2023-07-30 18:08:27 +03:00
Eli Zaretskii
23fc479300 ; Fix admin/upload-manuals script
* admin/upload-manuals (html_mono): Chdir to the right directory
before committing.
(html_node): Avoid computing $stale in newly-created or empty
directories.
2023-07-30 11:05:00 -04:00
Po Lu
7b9e83d3cf Fix bug#64923
* src/xfns.c (Fx_create_frame): Prevent cairo surface from being
left without a desired size.  (bug#64923)
2023-07-30 21:18:54 +08:00
Ulrich Müller
0002d4f316 Avoid spurious whitespace in the modeline of emacsclient frames
* lisp/bindings.el (mode-line-client): Compute 'help-echotext
property in advance.  (Bug#58183)

(cherry picked from commit 8c3338f6ba)
2023-07-30 10:27:43 +03:00
Mattias Engdegård
96d52f8944 Fix function help for advised aliases (bug#64797)
* lisp/help-fns.el (help-fns--analyze-function):
For aliases, use the base function name if at the end of the chain.
This fixes a regression introduced in d30fde6b0c.

Reported by Michael Heerdegen.

(cherry picked from commit 024bd1f090)
2023-07-30 10:27:14 +03:00
Eli Zaretskii
71419a60c3 Avoid crashes due to invalid 'mode-line-format'
* src/xdisp.c (display_mode_element, redisplay_window_error):
Don't take XCAR of what can be Qnil.  (Bug#64893)

(cherry picked from commit 7ea3f39dee)
2023-07-30 10:24:10 +03:00
Eli Zaretskii
b2cb6e8216 ; Better documentation of HOME on MS-Windows
* doc/emacs/custom.texi (Find Init): Add footnote about HOME on
MS-Windows.  (Bug#64871)

(cherry picked from commit d59630e591)
2023-07-30 10:23:51 +03:00
Eli Zaretskii
54e98b5f9b ; Clarify documentation of 'server-after-make-frame-hook'
* doc/lispref/frames.texi (Creating Frames):
* lisp/server.el (server-after-make-frame-hook): Clarify
documentation of 'server-after-make-frame-hook'.  (Bug#64873)

(cherry picked from commit e650a14f64)
2023-07-30 10:23:32 +03:00
Eli Zaretskii
d13029cdcd Avoid crashes under 'which-key-mode'
* src/keyboard.c (Fthis_single_command_keys): Don't allow calls to
Fvector with negative first argument.  (Bug#64857)

(cherry picked from commit 65834b8f8d)
2023-07-30 10:23:05 +03:00
Eli Zaretskii
cb1f7db249 ; Minor documentation fixes
* src/character.c (Fstring_width): Doc fix.

* doc/emacs/trouble.texi (Understanding Bug Reporting): Fix typo
(bug#64854).

(cherry picked from commit f6e4e77d23)
2023-07-30 10:22:42 +03:00
Eli Zaretskii
4a687bcc20 Bump Emacs version
* README:
* configure.ac:
* nt/README.W32:
* msdos/sed2v2.inp:
* etc/NEWS: Bump Emacs version to 29.1.50.
2023-07-30 10:08:27 +03:00
Eli Zaretskii
a9b28224af ; Last-minute changes befor releasing 29.1
* ChangeLog.4:
* etc/HISTORY: Update.
2023-07-30 02:11:49 -04:00
Vincenzo Pupillo
7da1cee56b Update CMake support due to upstream changes (bug#64922)
A recent change in tree-sitter-cmake grammar support for CMake (commit
fe9b5e0), now put arguments are wrapped in a new argument_list node.
To support the old and new version of the grammar, a new function was
added on which string syntax highlighting now depends.

* lisp/progmodes/cmake-ts-mode.el
(cmake-ts-mode--font-lock-compatibility-fe9b5e0): Indent helper
function to handle different tree-sitter-cmake version.
* lisp/progmodes/cmake-ts-mode.el
(cmake-ts-mode--font-lock-settings): Use the new function to handle
the new argument_list node.
2023-07-29 21:10:57 +02:00
Theodor Thornhill
c2d95dd00e
Remove nullptr named node from c++-ts-mode (bug#64818)
The nullptr node was changed from a named node to an unnamed node
upstream[0], which caused font locking to break. As this is a small
enough regression, no compat code is required.

* lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Remove
node no longer in use.

[0]:
c75868f8b5
2023-07-24 20:18:09 +02:00
Theodor Thornhill
4e977136d3
Make compat check also check typescript
* lisp/progmodes/typescript-ts-mode.el
(tsx-ts-mode--font-lock-compatibility-bb1f97b):
Add argument so that we run the 'treesit-query-capture' when the
language is 'typescript', not only 'tsx'.

* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--font-lock-settings): Use supplied argument.
2023-07-24 16:22:07 +02:00
Eli Zaretskii
906ecf442c ; * etc/HISTORY: Fix the 28.3 entry. 2023-07-23 16:36:30 +03:00
Eli Zaretskii
31cef9a4ea ; * lisp/ldefs-boot.el: Regenerated for Emacs 29.1. 2023-07-23 04:18:31 -04:00
Eli Zaretskii
82d6bb66fe Update HISTORY and ChangeLog.4
* etc/HISTORY:
* ChangeLog.4: Update for the Emacs 29.1 release.
2023-07-23 03:54:44 -04:00
Eli Zaretskii
7d1737071f Bump Emacs version
* README:
* configure.ac:
* nt/README.W32:
* msdos/sed2v2.inp: Bump Emacs version to 29.1.
2023-07-23 03:40:46 -04:00
Eli Zaretskii
6b00e1a197 Update AUTHORS and ChangeLog.4
* ChangeLog.4:
* etc/AUTHORS: Update for Emacs 29.1 release.
2023-07-23 03:36:32 -04:00
Eli Zaretskii
76a142e265 ; * etc/NEWS: Prepare for Emacs 29.1 release.
Do not merge to master.
2023-07-23 03:16:35 -04:00
Eli Zaretskii
ee20b50dfe ; * lisp/progmodes/typescript-ts-mode.el (treesit-query-capture): Declare. 2023-07-23 08:16:14 +03:00
Vincenzo Pupillo
2215298d90 Update JSX support due to upstream changes (bug#64647)
A recent change in tree-sitter-javascript grammar support for
JSX (commit bb1f97b), changed two things:
1. renamed nested_identifier to member_expression
2. removed jsx_fragment, jsx_text is used instead

* lisp/progmodes/js.el (js-jsx--treesit-indent-compatibility-bb1f97b):
Indent helper function to handle different tree-sitter-javascript
version.
* lisp/progmodes/js.el (js--treesit-indent-rules): Use the new
function to handle both jsx_fragment and jsx_text.
* lisp/progmodes/js.el (js-jsx--treesit-font-lock-compatibility-bb1f97b):
Font lock helper function for handle different tree-sitter-javascript
version.
* lisp/progmodes/js.el (js--treesit-font-lock-settings): Use the new
function to handle both nested_identifier and member_expression.
2023-07-22 23:18:23 +02:00
Vincenzo Pupillo
235561a2cc Update TSX support due to upstream changes (bug#64647)
A recent change in tree-sitter-typescript grammar support for
TSX (commit b893426), changed two things:
1. renamed nested_identifier to member_expression
2. removed jsx_fragment, jsx_text is used instead

* lisp/progmodes/typescript-ts-mode.el
(tsx-ts-mode--indent-compatibility-b893426): Indent helper function
to handle different tree-sitter-typescript version.
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--indent-rules): use the new function to handle
both jsx_fragment and jsx_text.
* lisp/progmodes/typescript-ts-mode.el
(tsx-ts-mode--font-lock-compatibility-bb1f97b): Font lock helper
function for handle different tree-sitter-typescript version.
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--font-lock-settings): Use the new function to
handle both nested_identifier and member_expression.
2023-07-22 23:18:23 +02:00
Eli Zaretskii
12ab82d3b3 ; Fix customization form of 'bookmark-watch-bookmark-file'
* lisp/bookmark.el (bookmark-watch-bookmark-file): Fix the doc
string and the customization type.  (Bug#64790)
2023-07-22 15:45:40 +03:00
Eli Zaretskii
d149a4dc42 ; Improve documentation of automatic addition to minibuffer history
* doc/lispref/minibuf.texi (Minibuffer History)
(Minibuffer Commands, Text from Minibuffer)
(Minibuffer Completion): Document the behavior of 'M-n' and
"future history" when the value(s) in DEFAULT is/are exhausted.
(Bug#64656)
2023-07-22 11:02:04 +03:00
Eli Zaretskii
42a9962794 ; Improve documentation of 'last-command-event'
* doc/lispref/text.texi (Commands for Insertion):
* doc/lispref/commands.texi (Command Loop Info):
* src/cmds.c (syms_of_cmds) <post-self-insert-hook>: Improve the
documentation of 'last-command-event' and 'post-self-insert-hook'.
2023-07-22 09:34:15 +03:00
Eli Zaretskii
101455cb85 ; * lisp/subr.el (ignore, always): Doc fixes. (Bug#64776) 2023-07-22 08:36:08 +03:00
Philipp Stephani
6152a41190 Unbreak build with CHECK_STRUCTS.
The hash for the Lisp_Overlay structure has changed due to the (comment-only)
commit 7ac947f34c.

* src/pdumper.c (dump_overlay): Update struct hash.
2023-07-21 18:22:34 +02:00
Mattias Engdegård
c692bbc659 Revert "Improve commentary in nsfns.m"
This reverts commit 3af27a4b81,
because it missed the point completely.
Please talk to the original author next time.
2023-07-21 14:49:35 +02:00
Eli Zaretskii
bb885928d7 Fix NetBSD build --with-sound
* src/sound.c (alsa_write): Use ESTRPIPE only if defined.
(Bug#64698)
2023-07-20 19:09:42 +03:00
Mauro Aranda
39873d6d5d Fix typo in pre-filter for underline property
* lisp/cus-face.el (custom-face-attributes): Fix typo (Bug#64347)
2023-07-20 18:47:37 +03:00