1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-21 06:55:39 +00:00
Commit Graph

175492 Commits

Author SHA1 Message Date
Jim Porter
1704fa4fb4 When using Eshell's "du" implementation, deduplicate hard links
* lisp/eshell/em-unix.el (eshell-du-sum-directory): Take SEEN-FILES.
(eshell/du): Create 'seen-files' hash table.
2024-11-09 17:01:34 -08:00
Jim Porter
37c583a2c2 Don't use dynamically-bound variables for Eshell's "du" command
* lisp/eshell/em-unix.el (block-size, by-bytes, dereference-links)
(grand-total, human-readable, max-depth, only-one-filesystem, show-all)
(eshell-du-size-string): Remove.
(eshell-du-sum-directory): Accept key arguments for adjusting behavior.
(eshell/du): Use 'block-size' of 1 instead of 'by-bytes', and define a
print function.
2024-11-09 17:01:34 -08:00
Jim Porter
f26fb25ec8 Use the Lisp implemention of "du" in Eshell when querying remote dirs
* lisp/eshell/em-unix.el (eshell/du): If all directories are local, use
the external "du" instead.
2024-11-09 17:01:33 -08:00
Stefan Kangas
f6a63e4b44 Don't pcomplete 'find -newerxy' flag
* lisp/pcmpl-gnu.el (pcomplete/find): Remove -newerxy flag.
This flag is not used verbatim like that, and we already complete
the "-newer" flag, which should be all that users need.
Problem reported by Juri Linkov <juri@linkov.net>.
2024-11-10 01:29:47 +01:00
Eli Zaretskii
daa42ddebe ; * etc/NEWS.30: Fix merge result. 2024-11-09 07:38:42 -05:00
Eli Zaretskii
61c8cc740e Merge from origin/emacs-30
dbcd9d782c Fix documentation and error message of adding local varia...
94bf7ad797 Document the 'display-line-numbers-disable' property
b1be0f2ba6 Document issues with 'use-package's ':custom' and byte co...
775970a783 ; * src/ftcrfont.c (ftcrhbfont_end_hb_font): Improve comm...
9149aa89ee Fix display of compositions when font style changes (Cair...
3bf00777be ; * src/xdisp.c (face_before_or_after_it_pos): Fix thinko...
2024-11-09 07:35:12 -05:00
Eli Zaretskii
6abe4feb73 ; Merge from origin/emacs-30
The following commit was skipped:

e88309eef3 Fix wrong value of `when` and `unless` with empty body (b...
2024-11-09 07:35:11 -05:00
Eli Zaretskii
96beaeab06 Merge from origin/emacs-30
3231af3727 Improve 'open-network-stream' documentation.
fb55431c44 ; Fix typos in case-conversion descriptions
83f095d1fd ; Fix typo and indexing in the ELisp manual
37b1799c9e ; Instrument proced-tests.el further
03fa832b4d Improve Tramp documentation on direct async processes

# Conflicts:
#	etc/NEWS
2024-11-09 07:34:57 -05:00
Eli Zaretskii
dbcd9d782c Fix documentation and error message of adding local variables
* lisp/files-x.el (add-file-local-variable)
(add-file-local-variable-prop-line): Doc fixes.
(add-file-local-variable): Improve the user-error text.  (Bug#74267)
2024-11-09 14:02:06 +02:00
Eli Zaretskii
94bf7ad797 Document the 'display-line-numbers-disable' property
* doc/lispref/display.texi (Overlay Properties):
* doc/lispref/text.texi (Special Properties): Document
'display-line-numbers-disable'.  Fix indexing.
2024-11-09 13:33:21 +02:00
Ola Nilsson
0642d5f7da Add functions supported by GNU Make 4.3.
* lisp/progmodes/make-mode.el (makefile-gnumake-functions-alist):
Add missing GNU Make functions, according to The GNU Make Manual
0.75 for GNU Make, and reorder the list of functions.  (Bug#74207)
2024-11-09 13:07:26 +02:00
David Ponce
8ee14643d2 Fix 'string-pixel-width' to not reset 'display-line-numbers'
* lisp/emacs-lisp/subr-x.el (string-pixel-width): Use the
'display-line-numbers-disable' property instead of setting the
variable 'display-line-numbers', to avoid global effects.
(Bug#73005)
2024-11-09 12:58:38 +02:00
Eli Zaretskii
17f4f2dec9 ; Fix last changes
* lisp/color.el (color-blend): Fix quoting of apostrophe.
(color-rgb-to-hex, color-blend): Autoload.
2024-11-09 12:45:14 +02:00
Joseph Turner
fdab542a56 Replace vtable--color-blend with color-blend
* lisp/emacs-lisp/vtable.el (vtable--face-color): Use `color-blend'.
(vtable--color-blend): Remove unused function.
2024-11-09 12:40:56 +02:00
Joseph Turner
bf312529de Add color-blend to blend two RGB lists
* lisp/color.el (color-blend): Blend two RGB lists.
* test/lisp/color-tests.el (color-tests-blend): Test color-blend.
* etc/NEWS: Announce color-blend.
2024-11-09 12:40:18 +02:00
Manuel Giraud
e1e8da5e4f Fix tmm "previous menu" shortcut
* lisp/tmm.el (tmm-clear-self-insert-and-exit): New function to
clear the minibuffer content then call `self-insert-and-exit'.
(tmm-define-keys): Use it.
(tmm-goto-completions): Explain why.  (Bug#74166)
2024-11-09 12:33:59 +02:00
Manuel Giraud
5def10ad94 `tmm-shortcut-inside-entry' docstring fix (bug#74111)
* lisp/tmm.el (tmm-shortcut-inside-entry): Doc fix.
2024-11-09 12:31:29 +02:00
Joost Kremers
ac91d190d6 Update vtable documentation
* doc/misc/vtable.texi: Document creation of empty vtables.
* etc/NEWS: Announce empty vtables.  (Bug#73775)
2024-11-09 12:14:39 +02:00
Joost Kremers
35e1ab970c vtable: allow resetting column alignment when table data changes
* lisp/emacs-lisp/vtable.el (vtable--compute-columns): If a column
was not created with an explicit 'align' property, allow changing
this property when the column data changes from numeric to
non-numeric (or vice versa).  This makes it possible to add data to
an empty table, because in a table without data all columns are
assumed to be numeric and right-aligned.  (Bug#73775)
2024-11-09 12:09:49 +02:00
Joost Kremers
425f244738 Enable inserting new objects into empty vtable
* lisp/emacs-lisp/vtable.el (vtable-insert-object): If the vtable
is empty, add the new object and recreate + redisplay the table.
(Bug#73775)
2024-11-09 12:09:09 +02:00
Joost Kremers
d94bb481ba Allow empty vtable
* lisp/emacs-lisp/vtable.el (vtable--compute-widths): Set default
width for columns that have no explicit width and no data.
(Bug#73775)
2024-11-09 12:08:18 +02:00
Eli Zaretskii
764db76072 Add dark color scheme to emacs.metainfo.xml
* etc/emacs.metainfo.xml: Add dark color scheme.  Patch by Peter
Oliver <p.d.oliver@mavit.org.uk> (bug#74123).
2024-11-09 12:02:05 +02:00
Peter Oliver
1f3434a84c Add more fields to AppStream metadata in emacs.metainfo.xml
* etc/emacs.metainfo.xml: Populate the vcs-browser and contribute URLs,
as well as the branding color.  (Bug#74123)
2024-11-09 11:59:41 +02:00
Eli Zaretskii
b1be0f2ba6 Document issues with 'use-package's ':custom' and byte compilation
* doc/misc/use-package.texi (User options): Warn against
byte-compiling init files that use ':custom'.  (Bug#73609)
2024-11-09 11:55:49 +02:00
Michael Albinus
6cde51f1bb Tramp: Support different proxies for the same destination
* doc/misc/tramp.texi (Ad-hoc multi-hops): New subsection "Using
different proxies for the same destination".

* etc/NEWS: Tramp supports different proxies for the same
destination host name in parallel.
Fix typos.

* lisp/net/tramp-cmds.el (tramp-cleanup-connection): Fix docstring.

* lisp/net/tramp.el (tramp-make-tramp-file-name): Don't call
`tramp-add-hops' during file name completion.
(tramp-handle-file-name-as-directory)
(tramp-handle-file-name-directory): Use `tramp-cache-undefined'
for an empty `tramp-default-proxies-alist'.
(tramp-add-hops): Extend.  Remove existing entries with same
target and different proxy, if needed.  (Bug#74219)
2024-11-09 10:29:42 +01:00
Ethan Kong
200214ca68 Fix 'internal_equal' so that it uses at most one hash table
The old implementation passed the hash table by value in
recursive tests, which would cause each recursive level to
initialize its own hash table, causing excess memory usage.
* src/fns.c (internal_equal): Delegate to 'internal_equal_1'.
(internal_equal_1): New function; body from old 'internal_equal'.
Pass the hash table argument by reference instead of by value.
(Bug#73883)
2024-11-09 10:56:54 +02:00
Stephen Gildea
766ec1f9e0 time-stamp: minor adjustments to %P and modifier characters
* lisp/time-stamp.el (time-stamp-string-preprocess): %P variations;
allow (and ignore) "*", "E", and "O" as modifier characters.
(time-stamp-inserts-lines): safe-local-variable only if booleanp
2024-11-08 10:45:55 -08:00
Philip Kaludercic
551d1a2cd7
; Insert "Stealing lock" at the beginning of a message
* lisp/vc/vc.el (vc-steal-lock): Use 'mail-text' instead of
jumping to 'point-max', to avoid inserting the message after
signatures.  (Bug#74027)
2024-11-08 11:29:41 -05:00
Stefan Kangas
11954a3a0a Update special attributes for Python 3.13
* lisp/progmodes/python.el (python-font-lock-keywords-level-2)
(python--treesit-special-attributes): Update special attributes,
making it current for Python 3.13.
2024-11-08 14:21:12 +01:00
Eli Zaretskii
775970a783 ; * src/ftcrfont.c (ftcrhbfont_end_hb_font): Improve commentary (bug#73752). 2024-11-08 10:03:35 +02:00
Tim Ruffing
9149aa89ee Fix display of compositions when font style changes (Cairo backend)
* src/ftcrfont.c (ftcrhbfont_end_hb_font): Don't persist the
result of 'cairo_ft_scaled_font_lock_face' in violation of the
API contract.  (Bug#73752)
2024-11-08 09:56:54 +02:00
Eli Zaretskii
e8b8a1121a ; Fix quoting style in comments in itree.[ch] files
* src/itree.c:
* src/itree.h: Fix quoting style in comments.
2024-11-08 09:17:50 +02:00
Jim Porter
ef440f59a1 Always print the expanded directory name for Eshell's "pwd" command
* lisp/eshell/em-dirs.el (eshell-pwd-convert-function): Default to
'expand-file-name' on all systems.

* etc/NEWS: Announce this change.
2024-11-07 13:57:35 -08:00
Robert Pluim
3e36267b25 Ensure `move-frame-functions' trigger on macOS frame resize
* src/nsterm.m ([EmacsView windowWillResize:toSize:]): Call
windowDidMove to ensure that MOVE_FRAME_EVENT events are
generated when a frame is resized.  (Bug#74074)
2024-11-07 21:12:06 +01:00
Eli Zaretskii
4b4ca23367 ; * lisp/net/eww.el (eww-submit): Fix last change (bug#65973). 2024-11-07 21:51:56 +02:00
Daniel Watson
f6b55678d7 When submitting files in EWW, only send the file's basename
* lisp/net/eww.el (eww-submit): Send the basename, not the full
filename (bug#65973).

Copyright-paperwork-exempt: yes
2024-11-07 10:55:16 -08:00
Eli Zaretskii
3bf00777be ; * src/xdisp.c (face_before_or_after_it_pos): Fix thinko (bug#74241). 2024-11-07 19:34:43 +02:00
Ulf Jasper
acce03eb54 * lisp/net/newst-plainview.el: Fix Bug#74198
* lisp/net/newst-plainview.el
(newsticker--do-mark-item-at-point-as-read): Save feed cache immediately
when item state is changed. (Bug#74198)
2024-11-07 16:47:39 +01:00
Kierin Bell
63d4c4b9ce Enable guidance for Northern Iroquoian input methods
* lisp/leim/quail/iroquoian.el: Set GUIDANCE argument of
'quail-define-package' forms to non-nil.  (Bug#74170)
2024-11-07 14:26:07 +01:00
Kierin Bell
04b055797a New input methods for Northern Iroquoian languages
* lisp/leim/quail/iroquoian.el: New file.  (Bug#74170)

* etc/NEWS: Announce the new input methods.
2024-11-07 11:11:33 +02:00
Eli Zaretskii
e8cf271e64 ; * etc/symbol-releases.eld: Add 'read-number'. 2024-11-07 09:35:56 +02:00
Stefan Kangas
19ce31ecab * etc/symbol-releases.eld: Add version=, version<, version<=. 2024-11-06 23:42:03 +01:00
Mattias Engdegård
e88309eef3 Fix wrong value of when and unless with empty body (bug#74215)
* lisp/subr.el (when, unless): Return nil when the body is empty.
Reported by Brennan Vincent.
* test/lisp/subr-tests.el (subr-test-when): Add test cases.

(cherry picked from commit 9ee9154247)
2024-11-06 15:27:33 +02:00
Ulf Jasper
b5845eb5ef * lisp/net/newst-plainview.el (newsticker--buffer-do-insert-text): Bug#74197
Use "[logo: <feed name>]" instead of "<feed name>" for the string
holding the logo image.
2024-11-06 14:18:21 +01:00
Mattias Engdegård
42fe3420e4 * lisp/term/w32-win.el (w32--textual-mime-types): Escape literal + 2024-11-06 13:41:39 +01:00
Mattias Engdegård
9ee9154247 Fix wrong value of when and unless with empty body (bug#74215)
Reported by Brennan Vincent.

* lisp/subr.el (when, unless): Return nil when the body is empty.
* test/lisp/subr-tests.el (subr-test-when): Add test cases.
2024-11-06 13:33:29 +01:00
Michael Albinus
1e3d72d962 Several Tramp cleanups
* lisp/net/tramp-adb.el (tramp-adb-maybe-open-connection):
Move setting of sentinel up.

* lisp/net/tramp-cache.el (tramp-get-connection-property)
(tramp-set-connection-property): Don't raise a debug message for
the `tramp-cache-version' key.

* lisp/net/tramp.el (tramp-convert-file-attributes): Don't cache
"file-attributes-ID-FORMAT".

* test/lisp/net/tramp-tests.el (tramp--test-enabled): Cleanup also
`tramp-compat-temporary-file-directory'.
(tramp-test32-shell-command): Use `async-shell-command-width' of 512.
(tramp-test36-vc-registered): Remove double let* entry.
2024-11-05 15:57:42 +01:00
Robert Pluim
3231af3727 Improve 'open-network-stream' documentation.
* doc/lispref/processes.texi (Network): Correct explanation of
':warn-unless-encrypted'.  Document ':error' return keyword.
* lisp/net/network-stream.el (open-network-stream): Improve
':return-list' documentation.  Document ':error'.  Correct
explanation of ':warn-unless-encrypted'.
2024-11-05 13:51:21 +01:00
Eli Zaretskii
3ff9205448 ; * etc/NEWS: Fix wording of last added entry. 2024-11-05 14:40:13 +02:00
Cecilio Pardo
4e8bf2977e Support :transform-smoothing on images (MS-Windows) (bug#57166)
* src/dispextern.h (struct image): Add field 'smoothing' for
NTGUI.
* src/image.c (image_set_transform): Assign the 'smoothing'
field of the image struct.
* src/w32gdiplus.h: Add references to more GDI+ functions.
* src/w32image.c (gdiplus_init): Add references to more GDI+
functions.
* src/w32term.c (w32_draw_image_foreground): If the image is
marked for smoothing and GDI+ is available, draw it with GDI+
bilinear interpolation.
* etc/NEWS: New entry for this change.
2024-11-05 14:37:07 +02:00