1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-11 05:51:21 -08:00
Commit graph

173866 commits

Author SHA1 Message Date
Stefan Kangas
fcd6403d8e Complete to "nil" in directory local variables skeleton
* lisp/autoinsert.el (auto-insert-alist): Make "nil" a completion
candidate for the directory local variables skeleton.  The "nil" value
means "any mode" in the context of directory local variable files.
2024-06-29 21:59:39 +02:00
Stefan Kangas
bc2e9210bf Support grep.el better in python-base-mode
* lisp/progmodes/python.el (python-base-mode): When mode is first
enabled, add *.py alias to 'grep-files-aliases', and add common Python
tooling directories to 'grep-find-ignored-directories'.
2024-06-29 21:37:24 +02:00
Eshel Yaron
2119cd52cd
Inherit text props in Completion Preview insertion commands
When completing with Completion Preview mode commands,
inherit text properties from surrounding text similarly to
other completion commands, such as 'completion-at-point'.

* lisp/completion-preview.el (completion-preview-insert)
(completion-preview-partial-insert)
(completion-preview-complete): Use 'insert-and-inherit'
instead of 'insert' to insert text for completion.
* test/lisp/completion-preview-tests.el
(completion-preview-insert-inherits-text-properties): New
test.
2024-06-29 15:14:18 +02:00
Eli Zaretskii
3088b06759 ; * etc/NEWS: Fix last change (bug#71499). 2024-06-29 16:04:32 +03:00
Björn Lindström
2a7a7c6f69 Make whitespace.el's cleanup add missing final newline
* lisp/whitespace.el (whitespace-cleanup-region): If cleaning
up at end of file, add missing newline if indicated by
'whitespace-style'.  (Bug#71499)

* etc/NEWS: Announce the change in behavior.
2024-06-29 16:01:50 +03:00
Po Lu
c4709d6bcd Merge from origin/emacs-30
2d8881d526 Fix typo incurring leaks of face structures
219501dd62 ; Fix use of @footnote in cc-mode.texi
c7be2dcac4 Merge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs ...
f0a4879975 Sync with Tramp 2.7.1
53dcf2b949 ; * etc/NEWS: Move the mwheel entry to a better place.
a5726782d0 ; Sort tree-sitter modes in NEWS
daa89dc939 ; * etc/NEWS: Rearrange "New Modes and Packages in Emacs ...
4ddbf4f70e ; * etc/NEWS: Move many items.
437b1ced26 ; * etc/NEWS: Copy-edits.
7372b2eb30 Expand docstring of which-key-mode
df0eb5be1e Improve documentation of 'remove-overlays' in ELisp manual
73c1252bb6 Fix link to major mode variable in docstring
c4ad54812a Make `shell-mode' more robust

# Conflicts:
#	etc/NEWS
2024-06-29 20:04:05 +08:00
Po Lu
2d8881d526 Fix typo incurring leaks of face structures
* src/xfaces.c (free_realized_face): Always free realized face
structures, and avoid sending X requests when the display is not
available, not when it is.
2024-06-29 20:02:54 +08:00
Eli Zaretskii
219501dd62 ; Fix use of @footnote in cc-mode.texi
* doc/misc/cc-mode.texi (Comment Commands, Minor Modes)
(Hungry WS Deletion): Move @footnote's out of @item's, to avoid
warnings from makeinfo.
2024-06-29 11:55:08 +03:00
Michael Albinus
c7be2dcac4 Merge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs into emacs-30 2024-06-29 10:14:01 +02:00
Michael Albinus
f0a4879975 Sync with Tramp 2.7.1
* doc/misc/trampver.texi:
* lisp/net/trampver.el (tramp-version): Adapt Tramp versions.
(customize-package-emacs-version-alist): Add Tramp version
integrated in Emacs 30.1.

* lisp/net/tramp-compat.el:
* lisp/net/tramp-message.el (tramp-warning): Use `lwarn'.

* test/lisp/net/tramp-tests.el
(tramp--test-deftest-without-file-attributes): New defmacro.
(tramp-test18-file-attributes-without-file-attributes)
(tramp-test19-directory-files-and-attributes-without-file-attributes)
(tramp-test18-file-attributes-without-file-attributes)
(tramp-test42-utf8-without-file-attributes): New tests.
2024-06-29 10:13:32 +02:00
Eli Zaretskii
53dcf2b949 ; * etc/NEWS: Move the mwheel entry to a better place. 2024-06-29 11:12:07 +03:00
Jules Tamagnan
d3b100d419 Flag checkdoc-package-keywords-flag as a :safe variable
* lisp/emacs-lisp/checkdoc.el: Mark 'checkdoc-package-keywords-flag'
as a safe local variable.  (Bug#71812)
2024-06-29 05:32:49 +02:00
Stefan Kangas
a5726782d0 ; Sort tree-sitter modes in NEWS
* etc/NEWS: Sort tree-sitter modes alphabetically.
2024-06-29 05:22:55 +02:00
Stefan Kangas
daa89dc939 ; * etc/NEWS: Rearrange "New Modes and Packages in Emacs 30.1".
This places new modes and packages in rough order of
importance (relevance to users) with most important first.
Feel free to amend.
2024-06-29 05:12:09 +02:00
Stefan Kangas
4ddbf4f70e ; * etc/NEWS: Move many items.
This moves items to more logical places in the hierarchy.
We might want to give this another pass or three.
2024-06-29 05:12:01 +02:00
Stefan Kangas
437b1ced26 ; * etc/NEWS: Copy-edits. 2024-06-29 04:35:47 +02:00
Stefan Kangas
7372b2eb30 Expand docstring of which-key-mode
* lisp/which-key.el (which-key-mode): Expand docstring.
2024-06-29 00:57:10 +02:00
john muhl
8198a14437 ; Use 'keymap-set' in 'lua-ts-mode'
* lisp/progmodes/lua-ts-mode.el (lua-ts-mode-map): Replace 'define-key'
with 'keymap-set'.  (Bug#71736)
2024-06-28 21:54:51 +02:00
Eli Zaretskii
df0eb5be1e Improve documentation of 'remove-overlays' in ELisp manual
* doc/lispref/display.texi (Managing Overlays): Update
documentation of 'remove-overlays'.  (Bug#57534)  (Bug#13648)
2024-06-28 14:52:05 +03:00
Eshel Yaron
5e3b94e1be
; (completion-preview-partial-insert): Avoid no-op undo entries
* lisp/completion-preview.el
(completion-preview-partial-insert): Abort change group
rather than deleting entire temporary insertion, so as to
avoid recording no-op undo entries.  Move 'deactivate-mark'
let-binding outside of 'catch' form.
2024-06-28 13:07:33 +02:00
Stefan Kangas
73c1252bb6 Fix link to major mode variable in docstring
* lisp/emacs-lisp/easy-mmode.el (easy-mmode--arg-docstring): Fix link to
major mode variable in docstring.  (Bug#71815)
2024-06-28 12:18:04 +02:00
Michael Albinus
c4ad54812a Make `shell-mode' more robust
* lisp/shell.el (shell-mode): Ensure that
`comint-input-ring-file-name' is non-nil when calling `file-truename'.
2024-06-28 11:28:33 +02:00
Po Lu
48f9dde133 Merge from savannah/emacs-30
c4ec905c9a Correct ommissions in rmc.el
bf862fc277 * lisp/hi-lock.el: More fixes related to revert-buffer.
6cc8ffae9a Update to Org 9.7.5-9-ga091ca
c477443ab8 ; Fix typo in lua-ts-mode.el
6e5e4d6193 ; Add 'eglot-ensure' option to 'lua-ts-mode-hook'
58a2f36a8b ; * etc/NEWS: Copy edit.
df53ef176a Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/...
039e6ffd86 Write Antinews for Emacs 30 ELisp Reference
bf8c9f702b (eval-last-sexp): Fix bug#71774
6d94090cad * lisp/hi-lock.el: More fixes for revert-buffer (bug#57534)
280c91782a * lisp/hi-lock.el (hi-lock-revert-buffer-rehighlight): Im...
339310d020 * lisp/tab-bar.el (tab-bar-select-restore-windows): Impro...
c1e7569a92 Write Antinews for Emacs 30 user manual
233f683da8 ; * lisp/erc/erc-backend.el (erc-server-reconnect-timeout...

# Conflicts:
#	etc/NEWS
2024-06-28 14:46:58 +08:00
Po Lu
dd40bf6bbb ; Merge from savannah/emacs-30
The following commit was skipped:

20a672b3b2 Change ERC version for Emacs 30 to 5.6.0.30.1
2024-06-28 14:46:53 +08:00
Po Lu
5c09557df3 Merge from savannah/emacs-30
6f9f9a2155 Fix two tests for --without-all build
2024-06-28 14:46:53 +08:00
Po Lu
c4ec905c9a Correct ommissions in rmc.el
* lisp/emacs-lisp/rmc.el (touch-screen-scroll)
(touch-screen-pinch): Declare functions.
(read-multiple-choice--short-answers): Call the same functions
directly and prevent the on-screen keyboard from being
deactivated immedately before it is reopened.
2024-06-28 14:44:28 +08:00
Juri Linkov
bf862fc277 * lisp/hi-lock.el: More fixes related to revert-buffer.
(hi-lock-set-pattern): Use the same propertized string
for 'overlay-put' property to allow 'remove-overlays'
to remove it while using 'eq' on the property value.
https://lists.gnu.org/archive/html/emacs-devel/2024-06/msg01001.html
2024-06-28 09:42:43 +03:00
Kyle Meyer
6cc8ffae9a Update to Org 9.7.5-9-ga091ca 2024-06-27 23:55:35 -04:00
john muhl
c477443ab8 ; Fix typo in lua-ts-mode.el
* lisp/progmodes/lua-ts-mode.el: Fix typo.  (Bug#71736)
2024-06-28 01:01:38 +02:00
john muhl
6e5e4d6193 ; Add 'eglot-ensure' option to 'lua-ts-mode-hook'
* lisp/progmodes/lua-ts-mode.el (lua-ts-mode-hook): Add an option to
enable Eglot from the lua-ts-mode-hook.  (Bug#71736)
2024-06-28 00:59:36 +02:00
Stefan Kangas
58a2f36a8b ; * etc/NEWS: Copy edit. 2024-06-28 00:59:36 +02:00
Stefan Monnier
b595b4598e (buf_bytepos_to_charpos): Fix mixup introduced in commit b300052fb4
* src/marker.c (buf_bytepos_to_charpos): Don't compare byte-positions
with char-positions.
2024-06-27 15:36:28 -04:00
Eli Zaretskii
df53ef176a Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30 2024-06-27 21:55:54 +03:00
Eli Zaretskii
039e6ffd86 Write Antinews for Emacs 30 ELisp Reference
* doc/lispref/anti.texi (Antinews):
* doc/lispref/elisp.texi (Top): Rewrite "Antinews" for Emacs 30.
2024-06-27 21:54:52 +03:00
Stefan Monnier
bf8c9f702b (eval-last-sexp): Fix bug#71774
* lisp/progmodes/elisp-mode.el (eval-last-sexp): Set `values` only
when `eval-expression-debug-on-error` is nil.
2024-06-27 14:43:32 -04:00
Juri Linkov
6d94090cad * lisp/hi-lock.el: More fixes for revert-buffer (bug#57534)
(hi-lock-set-pattern): Put the text property 'regexp' on the lighter string.
(hi-lock-revert-buffer-rehighlight): Get the real regexp from the
text property 'regexp'.  This fixes the case when the original
regexp gets lost after e.g. 'M-s . M-s h r'.
2024-06-27 21:08:28 +03:00
Juri Linkov
280c91782a * lisp/hi-lock.el (hi-lock-revert-buffer-rehighlight): Improve (bug#57534).
Instead of detecting invalidated overlays, use the same condition
as in 'hi-lock-set-pattern', and always re-highlight overlays,
because even when overlays stays on their original positions,
there is a need to highlight more matches possibly added after revert.
2024-06-27 20:05:58 +03:00
Juri Linkov
339310d020 * lisp/tab-bar.el (tab-bar-select-restore-windows): Improve the docstring.
Suggested by Kévin Le Gouguec <kevin.legouguec@gmail.com> in bug#71779.
2024-06-27 19:58:27 +03:00
Eli Zaretskii
c1e7569a92 Write Antinews for Emacs 30 user manual
* doc/emacs/anti.texi (Antinews):
* doc/emacs/emacs.texi (Top): Rewrite "Antinews" for Emacs 30.
2024-06-27 19:36:39 +03:00
F. Jason Park
233f683da8 ; * lisp/erc/erc-backend.el (erc-server-reconnect-timeout): Doc (bug#71756). 2024-06-27 06:43:18 -07:00
F. Jason Park
20a672b3b2 Change ERC version for Emacs 30 to 5.6.0.30.1
* doc/misc/erc.texi: Change ERCVER to 5.6.0.30.1.
* lisp/erc/erc.el: Change Version package header to 5.6.0.30.1.  Don't
bother updating the `customize-package-emacs-version-alist' entry
because no user options are yet affected.
(erc-version): Change version to 5.6.0.30.1.
Do not merge to master.
2024-06-27 06:43:17 -07:00
F. Jason Park
2531721621 Change ERC version to 5.6.1-git
* doc/misc/erc.texi: Change ERCVER to 5.6.1.
* lisp/erc/erc.el: (erc-version): Change working version to 5.6.1-git.
Do the same for the package Version header.  Don't bother updating
`customize-package-emacs-version-alist' until needed.
2024-06-27 06:36:18 -07:00
Andrea Corallo
6f9f9a2155 Fix two tests for --without-all build
* test/src/image-tests.el
(image-tests-image-mask-p/error-on-nongraphical-display)
(image-tests-image-metadata/error-on-nongraphical-display): xpm images
are not supported in all configurations so use xbm for non graphical
display tests.
2024-06-27 15:32:51 +02:00
Po Lu
a67928c6ba Merge from savannah/emacs-30
98daa10f06 ; * etc/PROBLEMS (PGTK): Remove redundant 2nd PGTK section.
ced33bc239 Fix handling of non-nil 'dired-movement-style'
b1e9b6fd67 ; * lisp/gnus/message.el (message-idna-to-ascii-rhs): Doc...
5eb9a0d2c7 ; * etc/NEWS: Fix last change (bug#71720).
6ec77f580d Do not prematurely truncate python eldoc string
f475a1a254 ; Fix simple-tests as fallout of last change
aa10d0c5ac Add tests for `kill-whole-line' (bug#65734)
058bb4ca25 kill-whole-line: Honor visibility; fix kill-ring when rea...
e45173d114 * lisp/hi-lock.el (hi-lock-file-patterns-policy): Add val...
d6afb017de * lisp/progmodes/xref.el (xref-revert-buffer-restore-poin...
82125b1a66 Use 'revert-function' in *xref* buffer

# Conflicts:
#	etc/NEWS
2024-06-27 20:32:08 +08:00
Eli Zaretskii
98daa10f06 ; * etc/PROBLEMS (PGTK): Remove redundant 2nd PGTK section. 2024-06-27 13:34:21 +03:00
Eli Zaretskii
ced33bc239 Fix handling of non-nil 'dired-movement-style'
* lisp/dired.el (dired--move-to-next-line): Treat any non-nil
value of 'dired-movement-style' except 'cycle' as 'bounded'.
(dired-movement-style): Mention this in the doc string.
(Bug#71770)
2024-06-27 12:42:43 +03:00
Eli Zaretskii
b1e9b6fd67 ; * lisp/gnus/message.el (message-idna-to-ascii-rhs): Doc fix (bug#71757). 2024-06-27 12:33:47 +03:00
Eli Zaretskii
5eb9a0d2c7 ; * etc/NEWS: Fix last change (bug#71720). 2024-06-27 11:55:29 +03:00
James Thomas
6ec77f580d Do not prematurely truncate python eldoc string
'eldoc-echo-area-use-multiline-p' is there for that.
* lisp/progmodes/python.el (python-eldoc-setup-code):
Make the change.  (Bug#71720)

* etc/NEWS: Announce the change in behavior.
2024-06-27 11:53:29 +03:00
Eli Zaretskii
f475a1a254 ; Fix simple-tests as fallout of last change
* test/lisp/simple-tests.el
(simple-execute-extended-command--shorter): Fix test broken by new
kill-whole-line tests.  (Bug#65734)
2024-06-27 11:37:15 +03:00