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

174205 Commits

Author SHA1 Message Date
Eli Zaretskii
dad0935cfc ; * doc/emacs/building.texi (Lisp Libraries): Update (bug#72961). 2024-09-05 09:23:23 +03:00
Eli Zaretskii
e4dc6711b0 Fix :hook in 'use-package'
* lisp/use-package/use-package-core.el
(use-package-handler/:hook): Support mode variables in :hook
declarations.  (Bug#72993)
2024-09-04 20:43:25 +03:00
Eli Zaretskii
c1cd036d27 ; * doc/lispref/modes.texi (Mode Line Data): Fox wording. 2024-09-04 17:14:25 +03:00
Eli Zaretskii
ae2463796f ; Caveats about using :eval in 'mode-line-format'
* doc/lispref/modes.texi (Mode Line Data): Warn against more
infinite-recursion cases in ':eval' in mode line.  Reported by
Nicolas P. Rougier <nicolas.rougier@inria.fr>.
2024-09-03 17:33:28 +03:00
Stefan Kangas
4047072c7d Update FSF's address
* doc/emacs/emacs.texi (Distrib):
* doc/lispintro/emacs-lisp-intro.texi:
* doc/lispref/elisp.texi:
* doc/misc/org.org (Link Abbreviations):
* etc/tutorials/TUTORIAL.eo:
* lisp/elide-head.el:
* lisp/textmodes/page-ext.el: Update the FSF address to 31 Milk Street.
2024-09-02 21:02:09 +02:00
Dmitry Gutov
24f12bdd77 Support the new option in ruby-ts-mode too
* etc/NEWS: Describe it here.

* lisp/progmodes/ruby-ts-mode.el (ruby-ts--parent-call-or-bol):
Support the option ruby-bracketed-args-indent here too (bug#60321).

* test/lisp/progmodes/ruby-ts-mode-tests.el: Include
ruby-bracketed-args-indent.rb as test examples.

* test/lisp/progmodes/ruby-mode-resources/ruby-bracketed-args-indent.rb:
Extend examples for better regression testing.
2024-09-02 21:57:35 +03:00
Aaron Jensen
6c15b7710d Add new option ruby-bracketed-args-indent
* lisp/progmodes/ruby-mode.el (ruby-bracketed-args-indent): New option.
(ruby-smie-rules): Use it (bug#60321).
* test/lisp/progmodes/ruby-mode-resources/ruby-bracketed-args-indent.rb:
New file.
* test/lisp/progmodes/ruby-mode-tests.el: Use it for new case.
2024-09-02 21:55:16 +03:00
Eli Zaretskii
7799ef4335 Fix Rmail base64 and qp decoding of MIME payloads
* lisp/mail/rmailmm.el (rmail-mime-insert-decoded-text)
(rmail-mime-insert-html): Remove ^M characters left from DOS EOLs.
This is what 'rmail-decode-region' does for non-MIME messages.
2024-09-02 17:14:29 +03:00
Kyle Meyer
0def396fa8 Update to Org 9.7.11 2024-09-01 17:51:22 -04:00
Eli Zaretskii
8c044bd972 ; Fix recent changes in documentation
* doc/lispref/positions.texi (List Motion): Fix indexing.
* doc/emacs/mini.texi (Completion Options): Fix wording.
2024-09-01 20:57:03 +03:00
Juri Linkov
e0d8879bcd * test/lisp/emacs-lisp/tabulated-list-tests.el: Add missing test.
(tabulated-list-groups-with-path): Add test for tabulated-list-groups.
2024-09-01 20:17:03 +03:00
Juri Linkov
4ff4b78f92 ; Small doc fixes
* doc/emacs/dired.texi (Operating on Files): Add indexed function
'dired-do-open' to the text.

* doc/emacs/mini.texi (Completion Options): Add indexed functions
'previous-line-completion' and 'next-line-completion' to the text.

* doc/lispref/minibuf.texi (Completion Variables): Remove self-reference.

* doc/lispref/positions.texi (List Motion): Add indexed function
'treesit-forward-sexp' to the text.  Add @vindex for
'forward-sexp-function'.

* etc/NEWS: Group tab-bar and tab-line items separately.
Move two Buffer-menu items to separate outline.
2024-09-01 19:53:52 +03:00
Sean Whitton
da980ad838 ; Reword some "allows Xing"
* doc/emacs/anti.texi (Antinews):
* etc/NEWS:
* etc/NEWS.29:
* lisp/tab-bar.el (tab-bar-select-restore-windows):
* lisp/vc/vc-git.el (vc-git-print-log-follow): Reword to avoid
"allows Xing".  This is reported to be better for non-native
readers.  Based on suggestions of Eli Zaretskii <eliz@gnu.org>.
2024-09-01 11:20:25 +01:00
Mattias Engdegård
2ca7d5649c ; More accurate text about how equal compares various objects
* doc/lispref/objects.texi (Equality Predicates):
Attempt at improving the text further (bug#72888).
2024-08-31 18:39:46 +02:00
Evgenii Klimov
5fd75133cf Make 'python-shell--with-environment' respect buffer-local vars
* lisp/progmodes/python.el (python-shell--with-environment):
Make `with-temp-buffer' respect buffer-local values of
`process-environment' and `exec-path', if set.  (Bug#72849)
2024-08-31 13:16:42 +03:00
Evgenii Klimov
e27849ecf6 Avoid ANSI escape characters in Python output (bug#45938)
* lisp/progmodes/python.el (python-shell-completion-native-setup):
Prevent Readline from emitting escape characters in comint output.
2024-08-31 13:12:50 +03:00
John Wiegley
4f521fa14c Fix handling of hook variables in 'use-package'
* lisp/use-package/use-package-core.el
(use-package-handler/:hook): Append "-hook" to the symbol's name
only if the named hook variable has no 'symbol-value'.
(Bug#72818)
2024-08-31 13:06:16 +03:00
Eli Zaretskii
bb5576fc90 Work around Gnuplot bug in displaying plots
* lisp/calc/calc-graph.el (calc-gnuplot-command): Prepend newline
to Gnuplot command.  Suggested by Visuwesh <visuweshm@gmail.com>.
(Bug#72778)
2024-08-31 12:58:39 +03:00
Eli Zaretskii
608526a91a Revert "* lisp/help-fns.el (help-definition-prefixes): Don't delete the hashtable"
This reverts commit 45ae4de0e7.
It did not fix a regression or even a user-visible bug, and
it caused bug#72787.

Do not merge to master.
2024-08-31 12:51:59 +03:00
kobarity
4b60267d83 Make Python skeletons available in 'python-ts-mode' as well
* lisp/progmodes/python.el (python-base-mode-abbrev-table):
Renamed from 'python-mode-abbrev-table' to be available for both
'python-mode' and 'python-ts-mode'.  (Bug#72298)
2024-08-31 12:42:42 +03:00
Eli Zaretskii
62dcbfb776 Merge branch 'emacs-30' of git.savannah.gnu.org:/srv/git/emacs into emacs-30 2024-08-30 20:33:11 +03:00
Michael Albinus
1baa62b2ac ; * etc/NEWS: Fix typos. 2024-08-30 14:00:47 +02:00
Eli Zaretskii
dfcfaa0ef5 More accurate documentation of 'equal' in ELisp Reference
* doc/lispref/objects.texi (Equality Predicates): Add lists and
conses.  (Bug#72888)
2024-08-30 13:57:29 +03:00
Sean Whitton
baaf97ce1a ; Fix some ungrammatical uses of "allows to"
* doc/emacs/anti.texi (Antinews):
* etc/NEWS:
* etc/NEWS.29:
* lib/cdefs.h:
* lisp/tab-bar.el (tab-bar-select-restore-windows):
* lisp/vc/vc-git.el (vc-git-print-log-follow):
* m4/gnulib-common.m4 (gl_CHECK_FUNCS_SET_RESULTS):
(gl_CHECK_FUNCS_ANDROID): Fix ungrammatical uses of "allows to".
2024-08-30 11:47:35 +01:00
Jim Porter
5fbbc3d0cd Support "/dev/null" as a target when creating Eshell handles
Previously, you could only use this when setting the handle afterwards.

Do not merge to master.

* lisp/eshell/esh-io.el (eshell-set-output-handle): Don't catch
'eshell-null-device' here...
(eshell-get-target): ... catch it here.
2024-08-29 21:51:25 -07:00
Jim Porter
4af1dc83ae Fix redirecting Eshell output to symbols in some places
Do not merge to master.

* lisp/eshell/esh-io.el (eshell-output-object-to-target): Don't require
TARGET to be bound.

* lisp/eshell/em-script.el (eshell-execute-file): Quote the output/error
targets.

* test/lisp/eshell/em-script-tests.el (eshell-execute-file-output): New
variable.
(em-script-test/execute-file/output-file)
(em-script-test/execute-file/output-symbol): New tests.

* test/lisp/eshell/esh-io-tests.el (eshell-test-file-string): Move to...
* test/lisp/eshell/eshell-tests-helpers.el (eshell-test-file-string):
... here.
2024-08-29 21:51:25 -07:00
Philip Kaludercic
a0f740c88d
; * lisp/progmodes/flymake.el: Fix "Maintainer" header
Functions such as 'lm-maintainer' assume there to be only a
single header, and won't return the second value.  By João's
request, this change fixes the issue by unmarking him as the
maintainer of Flymake.

See https://lists.gnu.org/archive/html/emacs-devel/2024-08/msg00943.html
2024-08-29 22:30:38 +02:00
Eli Zaretskii
a943385813 ; * etc/AUTHORS: Update. 2024-08-29 14:43:45 -04:00
Eli Zaretskii
762b85be27 ; Revert "; * admin/authors.el (authors-valid-file-names): Ignore Unicode files."
This reverts commit 6734b60c0c.
Existing files cannot be ignored.
2024-08-29 21:26:54 +03:00
Eli Zaretskii
e24d568b56 ; Revert "Revert "; * admin/authors.el (authors-ignored-files): Add removed files.""
This reverts commit 2d723a280b.
It mistakenly reverted the wrong commit.
2024-08-29 21:26:10 +03:00
Eli Zaretskii
2d723a280b Revert "; * admin/authors.el (authors-ignored-files): Add removed files."
This reverts commit d809d53afc.
Not useful, for the same reason as the previously reverted
commit.
2024-08-29 21:16:12 +03:00
Eli Zaretskii
2a5b129509 Revert "; * admin/authors.el (authors-ignored-files): Ignore Unicode files."
This reverts commit 0db53f14a2.
It doesn't help, since existing files are considered worthy
of mentioning regardless of the other lists.
2024-08-29 21:15:08 +03:00
Eli Zaretskii
0db53f14a2 ; * admin/authors.el (authors-ignored-files): Ignore Unicode files. 2024-08-29 20:59:37 +03:00
Eli Zaretskii
6734b60c0c ; * admin/authors.el (authors-valid-file-names): Ignore Unicode files. 2024-08-29 20:37:29 +03:00
Eli Zaretskii
d809d53afc ; * admin/authors.el (authors-ignored-files): Add removed files. 2024-08-29 19:40:55 +03:00
Kévin Le Gouguec
766f69bab1 ; * etc/NEWS: Announce VC-dir "Tracking" header. (bug#68183) 2024-08-29 17:36:21 +01:00
Eli Zaretskii
37a097d866 ; * admin/authors.el (authors-aliases): Fix regexps. 2024-08-29 19:22:11 +03:00
Eli Zaretskii
0fb50e2631 ; * admin/MAINTAINERS: Spencer Baugh maintains flymake.el. 2024-08-29 15:20:07 +03:00
George Huebner
d05d8c336c xwidget: Fix xwidget-at misinterpreting non-xwidget text-properties
'xwidget-open' wrongly assumed the the text-property at
min-position is an xwidget, if it exists; the fix is just
returning nil if the text-property isn't an xwidget.
* lisp/xwidget.el (xwidget-at): Use 'ignore-errors'.  (Bug#72848)

Copyright-paperwork-exempt: yes
2024-08-29 15:11:55 +03:00
Eli Zaretskii
13f69f254c Fix rare segfaults due to freed fontsets
* src/xfaces.c (recompute_basic_faces): Force complete
recalculation of non-ASCII faces and their fontsets if any
non-ASCII faces are in the frame's face cache.  (Bug#72692)
2024-08-29 12:56:27 +03:00
Eli Zaretskii
427fb319da ; * lisp/simple.el (use-region-beginning, use-region-end): Doc fix. 2024-08-29 12:33:30 +03:00
Stefan Kangas
e6c72aec9d ; Fix typos 2024-08-29 00:17:10 +02:00
Dmitry Gutov
9ffa38d392 Eglot: fix completion highlighting (bug#72824)
* lisp/progmodes/eglot.el (eglot-completion-at-point):
Make sure to refer to 'completion-ignore-case' in the
'all-completions' method.
2024-08-28 02:20:33 +03:00
Eli Zaretskii
d6880bc24d ; * admin/make-tarball.txt: Document gotcha. 2024-08-27 15:50:14 +03:00
Sean Whitton
afee71273b Discuss commit log messages on feature branches
* admin/notes/git-workflow (Long-lived feature branches): New
section, discussing commit log messages on feature branches.
2024-08-27 12:22:01 +08:00
Sean Whitton
77302ccb6a * admin/authors.el (authors-fixed-entries): Update docstring. 2024-08-27 12:13:59 +08:00
Yuan Fu
3a4839d142
More consistent treesit-forward-sexp around comments (bug#72525)
* lisp/treesit.el (treesit-forward-sexp): Check if point is strictly
inside a comment or string, only then use the default forward-sexp
function; otherwise use tree-sitter's forward-sexp routine.
2024-08-26 19:45:33 -07:00
Vincenzo Pupillo
3129315587
Improve php-ts-mode font lock and support latest grammar (bug#72796)
* lisp/progmodes/php-ts-mode.el:
(php-ts-mode--language-source-alist): Update the parser version.
(php-ts-mode--parent-html-heuristic): Fix commentary.
(php-ts-mode--keywords): Add "exit" keyword.
(php-ts-mode--predefined-constant): Added math constant.
(php-ts-mode--font-lock-settings): New and improved rules.
2024-08-26 00:48:35 -07:00
Yuan Fu
b8c05d73a1
Fix tree-sitter local parser overlay cleanup routine
Sorry for sneaking in a sizable commit so late.  But I just found out
about this bug and it has to be fixed.  Before this change, we weren't
properly cleaning up overlays that store local parsers.  And in the case
of doxygen local parser in C files, the doxygen local parser overlay
sometimes bleeds out of comments and into other code, and interferes
with font-lock and indentation.

This commit adds a cleanup function that'll cleanup any overlays that
aren't being used.  I tested with doxygen in C files and everything
works smoothly now, including tricky tests like removing the ending "*/"
of a doxygen comment and adding it back.

The idea is simple, at the end of each call to (treesit-update-ranges
BEG END), we remove any overlay within BEG and END that wasn't touched
by the range setting code.

* lisp/treesit.el (treesit--cleanup-local-range-overlays): New function.
(treesit--update-ranges-local): Remove code for cleaning up zero-length
overlays since we have the cleanup function now.
(treesit-update-ranges): Wrap the function body inside a let form, which
defines modified-tick; and add a call to
treesit--cleanup-local-range-overlays at the very end.
2024-08-25 18:15:06 -07:00
Stefan Kangas
aa6ed7f67e Fix copyright years by hand (Bug#72809)
These are dates that admin/update-copyright did not update.
2024-08-26 02:50:24 +02:00