]> git.eshelyaron.com Git - emacs.git/log
emacs.git
5 months agoFix movement to the left in picture-mode
Eli Zaretskii [Sun, 10 Nov 2024 08:56:40 +0000 (10:56 +0200)]
Fix movement to the left in picture-mode

* lisp/textmodes/picture.el (picture-insert): Measure width by
counting columns on display, not by using 'string-width', because
the latter is inaccurate when TABs are involved.  (Bug#74255)

(cherry picked from commit 7dabfe9465c623043e4ea1abe618a6169c155d04)

5 months agoFix some meta-calls with constant arguments
Eshel Yaron [Fri, 15 Nov 2024 11:04:55 +0000 (12:04 +0100)]
Fix some meta-calls with constant arguments

5 months agoWarn about meta-calls with constant arguments
Eshel Yaron [Fri, 15 Nov 2024 10:59:20 +0000 (11:59 +0100)]
Warn about meta-calls with constant arguments

5 months agoSet 'project-vc-ignores' in .dir-locals.el
Eshel Yaron [Tue, 12 Nov 2024 18:02:29 +0000 (19:02 +0100)]
Set 'project-vc-ignores' in .dir-locals.el

5 months agoUpdate matches count when refreshing *xref* buffer
Eshel Yaron [Mon, 11 Nov 2024 18:39:32 +0000 (19:39 +0100)]
Update matches count when refreshing *xref* buffer

5 months agoWhen using Eshell's "du" implementation, deduplicate hard links
Jim Porter [Sun, 10 Nov 2024 00:06:34 +0000 (16:06 -0800)]
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.

(cherry picked from commit 1704fa4fb4164a15c7e258b922dbba190811d92d)

5 months agoDon't use dynamically-bound variables for Eshell's "du" command
Jim Porter [Tue, 30 Jan 2024 18:51:03 +0000 (10:51 -0800)]
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.

(cherry picked from commit 37c583a2c2f97c6fb0ed0433db9c74c6a1758e3e)

5 months agoUse the Lisp implemention of "du" in Eshell when querying remote dirs
Jim Porter [Sat, 9 Nov 2024 07:12:53 +0000 (23:12 -0800)]
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.

(cherry picked from commit f26fb25ec8ca12901db6224973c7fef29ce938f9)

5 months agoDon't pcomplete 'find -newerxy' flag
Stefan Kangas [Sun, 10 Nov 2024 00:29:18 +0000 (01:29 +0100)]
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>.

(cherry picked from commit f6a63e4b441424298f1239372ec50b528d343b65)

5 months agoFix kill-all-local-variables
Eshel Yaron [Mon, 11 Nov 2024 10:24:59 +0000 (11:24 +0100)]
Fix kill-all-local-variables

5 months ago; Skip commit daa42ddebea6a798648f03f41497fddfcb3e0de9
Eshel Yaron [Sat, 9 Nov 2024 15:50:49 +0000 (16:50 +0100)]
; Skip commit daa42ddebea6a798648f03f41497fddfcb3e0de9

5 months agoFix documentation and error message of adding local variables
Eli Zaretskii [Sat, 9 Nov 2024 12:02:06 +0000 (14:02 +0200)]
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)

(cherry picked from commit dbcd9d782c94e34baf9aabdaeaa70efb791d8a25)

5 months agoDocument the 'display-line-numbers-disable' property
Eli Zaretskii [Sat, 9 Nov 2024 11:33:21 +0000 (13:33 +0200)]
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.

(cherry picked from commit 94bf7ad797bb7a3c1faa72d2066a1e9b883c4547)

5 months agoAdd functions supported by GNU Make 4.3.
Ola Nilsson [Mon, 4 Nov 2024 22:33:09 +0000 (23:33 +0100)]
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)

(cherry picked from commit 0642d5f7da208e3237f17102858811c2d9c28990)

5 months ago; Skip commit 8ee14643d2c222d9dbf0e914d878c3da0c8f2386
Eshel Yaron [Sat, 9 Nov 2024 15:50:05 +0000 (16:50 +0100)]
; Skip commit 8ee14643d2c222d9dbf0e914d878c3da0c8f2386

5 months ago; Fix last changes
Eli Zaretskii [Sat, 9 Nov 2024 10:45:14 +0000 (12:45 +0200)]
; Fix last changes

* lisp/color.el (color-blend): Fix quoting of apostrophe.
(color-rgb-to-hex, color-blend): Autoload.

(cherry picked from commit 17f4f2dec95d93eae3aaf3c6e4c59955732f8f62)

5 months agoReplace vtable--color-blend with color-blend
Joseph Turner [Sat, 2 Nov 2024 05:21:34 +0000 (22:21 -0700)]
Replace vtable--color-blend with color-blend

* lisp/emacs-lisp/vtable.el (vtable--face-color): Use `color-blend'.
(vtable--color-blend): Remove unused function.

(cherry picked from commit fdab542a56201b1581abdc0df940e0c50abde1c7)

5 months agoAdd color-blend to blend two RGB lists
Joseph Turner [Sat, 2 Nov 2024 04:58:07 +0000 (21:58 -0700)]
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.

(cherry picked from commit bf312529def48bc6fdf72d43d5be158d125f52f6)

5 months ago; Skip commit e1e8da5e4f1951744d26b99b000c7f746a9ca8c6
Eshel Yaron [Sat, 9 Nov 2024 15:49:39 +0000 (16:49 +0100)]
; Skip commit e1e8da5e4f1951744d26b99b000c7f746a9ca8c6

5 months ago; Skip commit 5def10ad944a6f6fe5e09b153c3cb4f0ce78e415
Eshel Yaron [Sat, 9 Nov 2024 15:49:36 +0000 (16:49 +0100)]
; Skip commit 5def10ad944a6f6fe5e09b153c3cb4f0ce78e415

5 months agoUpdate vtable documentation
Joost Kremers [Mon, 14 Oct 2024 11:10:57 +0000 (13:10 +0200)]
Update vtable documentation

* doc/misc/vtable.texi: Document creation of empty vtables.
* etc/NEWS: Announce empty vtables.  (Bug#73775)

(cherry picked from commit ac91d190d623f6fef186b035373cdb72347cc99d)

5 months agovtable: allow resetting column alignment when table data changes
Joost Kremers [Thu, 30 May 2024 23:38:54 +0000 (01:38 +0200)]
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)

(cherry picked from commit 35e1ab970c1cfc6a1b62fbb920e0d2bb031765da)

5 months agoEnable inserting new objects into empty vtable
Joost Kremers [Thu, 30 May 2024 21:20:00 +0000 (23:20 +0200)]
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)

(cherry picked from commit 425f244738e784fbf46e3fcc3461759340cfb928)

5 months agoAllow empty vtable
Joost Kremers [Wed, 6 Nov 2024 08:46:00 +0000 (09:46 +0100)]
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)

(cherry picked from commit d94bb481ba1bcf8602fc600572e5779b25cd896d)

5 months agoAdd dark color scheme to emacs.metainfo.xml
Eli Zaretskii [Sat, 9 Nov 2024 10:02:05 +0000 (12:02 +0200)]
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).

(cherry picked from commit 764db76072847d2650f5b07349723a2802ccd45e)

5 months agoAdd more fields to AppStream metadata in emacs.metainfo.xml
Peter Oliver [Wed, 30 Oct 2024 22:15:59 +0000 (22:15 +0000)]
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)

(cherry picked from commit 1f3434a84c13d3fbc55e8a7ace53bdfd61748db5)

5 months agoDocument issues with 'use-package's ':custom' and byte compilation
Eli Zaretskii [Sat, 9 Nov 2024 09:55:49 +0000 (11:55 +0200)]
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)

(cherry picked from commit b1be0f2ba6b05b7644080638ae26e619cbeac75c)

5 months agoTramp: Support different proxies for the same destination
Michael Albinus [Sat, 9 Nov 2024 09:29:42 +0000 (10:29 +0100)]
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)

(cherry picked from commit 6cde51f1bbcfd55fe8d189b045247b9d80dee4ea)

5 months agoFix 'internal_equal' so that it uses at most one hash table
Ethan Kong [Sat, 19 Oct 2024 04:43:27 +0000 (12:43 +0800)]
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)

(cherry picked from commit 200214ca68f00722bf906bbf2a2afa81d139d5dc)

5 months agotime-stamp: minor adjustments to %P and modifier characters
Stephen Gildea [Fri, 8 Nov 2024 18:42:30 +0000 (10:42 -0800)]
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

(cherry picked from commit 766ec1f9e08e6f2c7c22b514a6f2e65f79341023)

5 months ago; Insert "Stealing lock" at the beginning of a message
Philip Kaludercic [Sat, 26 Oct 2024 07:39:00 +0000 (09:39 +0200)]
; 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)

(cherry picked from commit 551d1a2cd73bb3df2cad0f1f5b5d1628bb138483)

5 months agoUpdate special attributes for Python 3.13
Stefan Kangas [Fri, 8 Nov 2024 13:21:12 +0000 (14:21 +0100)]
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.

(cherry picked from commit 11954a3a0ac67d02c18441658c1f250c9ced75de)

5 months ago; * src/ftcrfont.c (ftcrhbfont_end_hb_font): Improve commentary (bug#73752).
Eli Zaretskii [Fri, 8 Nov 2024 08:03:35 +0000 (10:03 +0200)]
; * src/ftcrfont.c (ftcrhbfont_end_hb_font): Improve commentary (bug#73752).

(cherry picked from commit 775970a7831de930cd25ee592fb40004b1c2bc24)

5 months agoFix display of compositions when font style changes (Cairo backend)
Tim Ruffing [Thu, 7 Nov 2024 02:09:09 +0000 (03:09 +0100)]
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)

(cherry picked from commit 9149aa89ee860627cc91e27c8659ad6f4efcfcd8)

5 months ago; * src/xdisp.c (face_before_or_after_it_pos): Fix thinko (bug#74241).
Eli Zaretskii [Thu, 7 Nov 2024 17:34:43 +0000 (19:34 +0200)]
; * src/xdisp.c (face_before_or_after_it_pos): Fix thinko (bug#74241).

(cherry picked from commit 3bf00777be1e28d3d0e49692071825580f472037)

5 months agoImprove 'open-network-stream' documentation.
Robert Pluim [Tue, 5 Nov 2024 12:51:21 +0000 (13:51 +0100)]
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'.

(cherry picked from commit 3231af3727b450404efd6f49ddf5c95c5a8cbb0f)

5 months ago; Fix typos in case-conversion descriptions
Robert Pluim [Tue, 5 Nov 2024 11:33:49 +0000 (12:33 +0100)]
; Fix typos in case-conversion descriptions

* doc/lispref/nonascii.texi (Character Properties): Fix typos.
* doc/lispref/strings.texi (Case Conversion): Fix typos.
(Case Tables): Fix typos.

(cherry picked from commit fb55431c44ec00b05122eaa09d310c1dcf2684b1)

5 months ago; Fix typo and indexing in the ELisp manual
Eli Zaretskii [Mon, 4 Nov 2024 19:34:25 +0000 (21:34 +0200)]
; Fix typo and indexing in the ELisp manual

* doc/lispref/display.texi (Image Descriptors): Fix typo and indexing.
(Defining Images): Fix indexing.

(cherry picked from commit 83f095d1fd4be8be5db61fd6a94fc6203cc78b2f)

5 months ago; Instrument proced-tests.el further
Michael Albinus [Mon, 4 Nov 2024 13:24:21 +0000 (14:24 +0100)]
; Instrument proced-tests.el further

* test/lisp/proced-tests.el
(proced--assert-process-valid-cpu-refinement): Explain also Lisp errors.

(cherry picked from commit 37b1799c9e5677db35ac509729a29fb7cd44cf39)

5 months agoImprove Tramp documentation on direct async processes
Michael Albinus [Sun, 3 Nov 2024 14:48:19 +0000 (15:48 +0100)]
Improve Tramp documentation on direct async processes

* doc/misc/tramp.texi (Remote processes): Add another example
enabling direct async processes based on method name.  (Bug#74105)

* etc/NEWS: Rephrase Tramp entry on direct async processes.

(cherry picked from commit 03fa832b4dcc47276894d90f3323bca31eb0633e)

5 months ago* search.el: Support changing search context regex
Eshel Yaron [Sat, 9 Nov 2024 15:06:28 +0000 (16:06 +0100)]
* search.el: Support changing search context regex

5 months ago; Fix quoting style in comments in itree.[ch] files
Eli Zaretskii [Fri, 8 Nov 2024 07:17:50 +0000 (09:17 +0200)]
; Fix quoting style in comments in itree.[ch] files

* src/itree.c:
* src/itree.h: Fix quoting style in comments.

(cherry picked from commit e8b8a1121a8d1826f0ff8874e38594bfaedddfac)

5 months agoAlways print the expanded directory name for Eshell's "pwd" command
Jim Porter [Thu, 7 Nov 2024 21:57:35 +0000 (13:57 -0800)]
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.

(cherry picked from commit ef440f59a170c3c69948fca863f368e397d503b4)

5 months agoEnsure `move-frame-functions' trigger on macOS frame resize
Robert Pluim [Thu, 7 Nov 2024 20:03:20 +0000 (21:03 +0100)]
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)

(cherry picked from commit 3e36267b25ea9730e4acd8b0f47c5e967cea9e94)

5 months ago; * lisp/net/eww.el (eww-submit): Fix last change (bug#65973).
Eli Zaretskii [Thu, 7 Nov 2024 19:51:56 +0000 (21:51 +0200)]
; * lisp/net/eww.el (eww-submit): Fix last change (bug#65973).

(cherry picked from commit 4b4ca233675b7a820feca5893e5279327ab76795)

5 months agoWhen submitting files in EWW, only send the file's basename
Daniel Watson [Tue, 12 Sep 2023 07:06:14 +0000 (00:06 -0700)]
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
(cherry picked from commit f6b55678d76a7b549993d629672a4f33d269dbd8)

5 months ago* lisp/net/newst-plainview.el: Fix Bug#74198
Ulf Jasper [Thu, 7 Nov 2024 15:45:13 +0000 (16:45 +0100)]
* 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)

(cherry picked from commit acce03eb549ec102dc2bda2e509551f03dc60175)

5 months agoEnable guidance for Northern Iroquoian input methods
Kierin Bell [Thu, 7 Nov 2024 12:55:01 +0000 (07:55 -0500)]
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)

(cherry picked from commit 63d4c4b9ce469c596de9b38977ad7bf6e28349eb)

5 months agoNew input methods for Northern Iroquoian languages
Kierin Bell [Sun, 3 Nov 2024 20:19:09 +0000 (15:19 -0500)]
New input methods for Northern Iroquoian languages

* lisp/leim/quail/iroquoian.el: New file.  (Bug#74170)

* etc/NEWS: Announce the new input methods.

(cherry picked from commit 04b055797a4b51392658548e4847cb7513354c67)

5 months ago; * etc/symbol-releases.eld: Add 'read-number'.
Eli Zaretskii [Thu, 7 Nov 2024 07:35:56 +0000 (09:35 +0200)]
; * etc/symbol-releases.eld: Add 'read-number'.

(cherry picked from commit e8cf271e64e69852da983da432423396b5b01b2b)

5 months ago* etc/symbol-releases.eld: Add version=, version<, version<=.
Stefan Kangas [Wed, 6 Nov 2024 22:41:46 +0000 (23:41 +0100)]
* etc/symbol-releases.eld: Add version=, version<, version<=.

(cherry picked from commit 19ce31ecab8361ef8b44c8a1777d09cf9a902714)

5 months ago* lisp/net/newst-plainview.el (newsticker--buffer-do-insert-text): Bug#74197
Ulf Jasper [Wed, 6 Nov 2024 13:17:15 +0000 (14:17 +0100)]
* 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.

(cherry picked from commit b5845eb5ef54162da6f0735880b36315ca984852)

5 months ago* lisp/term/w32-win.el (w32--textual-mime-types): Escape literal `+`
Mattias Engdegård [Wed, 6 Nov 2024 12:41:39 +0000 (13:41 +0100)]
* lisp/term/w32-win.el (w32--textual-mime-types): Escape literal `+`

(cherry picked from commit 42fe3420e476045228a219579343f16da29256cf)

5 months agoFix wrong value of `when` and `unless` with empty body (bug#74215)
Mattias Engdegård [Wed, 6 Nov 2024 12:29:23 +0000 (13:29 +0100)]
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.

(cherry picked from commit 9ee9154247454c18f9f75d0d32592b817d7e977a)

5 months agoSeveral Tramp cleanups
Michael Albinus [Tue, 5 Nov 2024 14:57:42 +0000 (15:57 +0100)]
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.

(cherry picked from commit 1e3d72d962b8b736741747a5ec4595e08965ef49)

5 months ago; * etc/NEWS: Fix wording of last added entry.
Eli Zaretskii [Tue, 5 Nov 2024 12:40:13 +0000 (14:40 +0200)]
; * etc/NEWS: Fix wording of last added entry.

(cherry picked from commit 3ff92054483ff92b19d3fe4b1ccf65a513fe58ca)

5 months agoSupport :transform-smoothing on images (MS-Windows) (bug#57166)
Cecilio Pardo [Mon, 4 Nov 2024 17:58:40 +0000 (18:58 +0100)]
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.

(cherry picked from commit 4e8bf2977e6d1abf6d3cf82e9c1ae3dee5bfcda0)

5 months agoMake 'yank-media' on MS-Windows require native image APIs
Eli Zaretskii [Tue, 5 Nov 2024 12:29:02 +0000 (14:29 +0200)]
Make 'yank-media' on MS-Windows require native image APIs

* src/w32select.c (convert_dibv5_to_png) [!HAVE_NATIVE_IMAGE_API]:
Fail if GDI+ cannot be used.  Patch by Cecilio Pardo
<cpardo@imayhem.com>.  (Bug#71909)

* etc/NEWS: Mention this dependency.

(cherry picked from commit 8a7910fb67e3b89de430d3b3e5009b145ec0c602)

5 months agopcomplete/find: Support new GNU find expressions
Stefan Kangas [Tue, 5 Nov 2024 03:19:22 +0000 (04:19 +0100)]
pcomplete/find: Support new GNU find expressions

* lisp/pcmpl-gnu.el (pcomplete/find): Add expressions from new GNU find:
"-newerxy" (4.3.3) and "-files0-from" (4.9.0).  This list is now
complete as of GNU findutils 4.10.0, released on 2024-06-01.

(cherry picked from commit a0f8fb806ff5ce192671d90636aa14a12aa47b8a)

5 months ago; * test/lisp/eshell/esh-cmd-tests.el: Fix last change.
Jim Porter [Mon, 4 Nov 2024 04:21:12 +0000 (20:21 -0800)]
; * test/lisp/eshell/esh-cmd-tests.el: Fix last change.

(cherry picked from commit 9cfd13ff44e8d6f56a1025207c833ab45a7d51ba)

5 months agoAdd support for range objects in Eshell "for" loops
Jim Porter [Sun, 3 Nov 2024 19:56:15 +0000 (11:56 -0800)]
Add support for range objects in Eshell "for" loops

* lisp/eshell/esh-cmd.el (eshell-for-iterate): Add support for
'eshell-range' objects.

* test/lisp/eshell/esh-cmd-tests.el (esh-cmd-test/for-loop-range): New
test.

* doc/misc/eshell.texi (Control Flow): Update documentation.

* etc/NEWS: Announce this change.

(cherry picked from commit ee87af4f1603d2042afa641e74df0403a49af1c5)

5 months agoMove more of Eshell range handling to the parser phase
Jim Porter [Mon, 21 Oct 2024 01:01:10 +0000 (18:01 -0700)]
Move more of Eshell range handling to the parser phase

* lisp/eshell/esh-util.el (eshell-range): New struct.
(eshell--range-string-p, eshell--string-to-range): New functions.

* lisp/eshell/esh-arg.el (eshell-parse-integer)
(eshell-parse-range-token): New functions...
(eshell-parse-argument-hook): ... add them.
(eshell--after-range-token-regexp): New defsubst.
(eshell-concat-1): Don't remove the 'number' property; we use that when
handling range arguments.
(eshell--range-token): New constant.
(eshell-unmark-range-token): New function.

* lisp/eshell/esh-var.el (eshell-parse-index): Update implementation to
use parsed range argument.

* test/lisp/eshell/esh-var-tests.el (esh-var-test/interp-var-indices):
Test range index using variables.

(cherry picked from commit ed9ea57e57a915e743100591d7a71d44a4b4c0e9)

5 months agoAdd QUOTED argument to 'eshell-stringify'
Jim Porter [Sun, 20 Oct 2024 22:30:19 +0000 (15:30 -0700)]
Add QUOTED argument to 'eshell-stringify'

This will make it easier to reconstitute numbers that we converted to
strings.

* lisp/eshell/esh-util.el (eshell--numeric-string-p): New function.
(eshell-stringify, eshell-stringify-list): Add QUOTED argument.
(eshell-convert, eshell-list-to-string): Stringify as quoted.

* lisp/eshell/esh-arg.el (eshell--numberlike-p): Remove.
(eshell-concat-1): Pass along QUOTED.

* lisp/eshell/esh-cmd.el (eshell-lisp-command): Use
'eshell--numeric-string-p'.

* lisp/eshell/esh-var.el (eshell-parse-variable):
* lisp/eshell/em-cmpl.el (eshell-complete-parse-arguments): Stringify as
quoted.

(cherry picked from commit 4d69d3778a51427654965cbcc5bb03611034b656)

5 months agoImprove handling of Eshell "for" loops
Jim Porter [Sun, 3 Nov 2024 19:22:27 +0000 (11:22 -0800)]
Improve handling of Eshell "for" loops

This fixes some errors with more-complex string forms, and also allows
iterating over sequences other than just lists.

* lisp/eshell/esh-cmd.el (eshell-for-iterate): New function...
(eshell-rewrite-for-command): ... use it.

* test/lisp/eshell/esh-cmd-tests.el (esh-cmd-test/for-loop): Test
multiple values.
(esh-cmd-test/for-loop-string, esh-cmd-test/for-loop-vector): New tests.
(esh-cmd-test/for-loop-mixed-args): Rename.

* test/lisp/eshell/esh-proc-tests.el
(esh-proc-test/sentinel/change-buffer): Make sure all the processes get
cleaned up.

(cherry picked from commit 08d5994b435c119bde8b8ac8f7152810d1814d1e)

5 months ago; Skip commit b3c82f939c3ca35bd43e9a9a22b0f9d3e3fa29f2
Eshel Yaron [Fri, 8 Nov 2024 13:29:53 +0000 (14:29 +0100)]
; Skip commit b3c82f939c3ca35bd43e9a9a22b0f9d3e3fa29f2

5 months ago; Skip commit 75c5aaae893b932c122d8855b0908f2b76e28c1a
Eshel Yaron [Fri, 8 Nov 2024 13:29:48 +0000 (14:29 +0100)]
; Skip commit 75c5aaae893b932c122d8855b0908f2b76e28c1a

5 months ago; Skip commit 378661dcd6d49e16f653d3eb6b676f0bcea0923b
Eshel Yaron [Fri, 8 Nov 2024 13:29:40 +0000 (14:29 +0100)]
; Skip commit 378661dcd6d49e16f653d3eb6b676f0bcea0923b

5 months ago* Remove warning introduced by 8e7f5f97db6
Andrea Corallo [Sun, 3 Nov 2024 14:32:28 +0000 (15:32 +0100)]
* Remove warning introduced by 8e7f5f97db6

* lisp/term/w32-win.el (w32--get-clipboard-data-media): Declare.

(cherry picked from commit 53f0151518c767bb97dc90fea63efb37d8311dd2)

5 months agoAdd support for 'yank-media' on MS-Windows
Cecilio Pardo [Mon, 28 Oct 2024 21:18:13 +0000 (22:18 +0100)]
Add support for 'yank-media' on MS-Windows

Adds the capacity to handle types different from strings to the
clipboard management functions on MS-Windows, and some logic
required to convert media types names and content to be what
yank-media and the modes that use it expect (bug#71909).
* lisp/term/w32-win.el (w32--selection-target-translations): New
variable that holds the name translations for media types.
(w32--translate-selection-target): New function, translate the
name of a media type.
(w32--translate-reverse-selection-target): New function, reverse
translation.
(w32--get-selection): Modified to translate target names when
asked for targets, and retrieve media types when asked for them.
(w32--mime-type-textual-p): New function, checks if a MIME type
is textual.
* lisp/textmodes/sgml-mode.el (html-mode--image-yank-handler):
Fixed the image save mechanism, that added line feed characters
on MS-Windows, breaking binary formats.
* src/w32image.c (gdiplus_init): Modified to fetch more
functions fromm gdiplus.
(get_encoder_clsid): Renamed to 'w32_gdip_get_encoder_clsid'
and made nonstatic.
(gdiplus_startup): Renamed to 'w32_gdiplus_startup' and
made nonstatic.
* src/w32select.c (stdfmt_name): Made global, was static
function.
(convert_dibv5_to_png): New function to convert DIBV5 clipboard
format to PNG.
(get_clipboard_format_name): New function get the name of a
format given its index.
(Fw32__get_clipboard_data_media): New function, retrieves and
converts media content.
(syms_of_w32select): Export new lisp functions.
* src/w32gdiplus.h: New file, for definitions in w32image.c
* doc/lispref/frames.texi: Updated with MS-Windows support.
* etc/NEWS: Added entry about new feature.

(cherry picked from commit 8e7f5f97db647ce6e9606364dc15d8bbd7ef6016)

5 months ago; * etc/NEWS: Announce 'greek-polytonic'. (Bug#73909)
Eli Zaretskii [Sun, 3 Nov 2024 07:25:51 +0000 (09:25 +0200)]
; * etc/NEWS: Announce 'greek-polytonic'.  (Bug#73909)

(cherry picked from commit 5ee56b86938b7759dd92f507d03907280f48ffca)

5 months agoAdd greek-polytonic input method
Thanos Apollo [Sun, 3 Nov 2024 03:44:27 +0000 (05:44 +0200)]
Add greek-polytonic input method

(cherry picked from commit d276f45320b293a64f954e3e524a3718ddf87261)

5 months agoImprove greek input method
Thanos Apollo [Sun, 3 Nov 2024 03:45:19 +0000 (05:45 +0200)]
Improve greek input method

* lisp/leim/quail/greek.el ("greek"): Add sequences for DIALYTIKA
TONOS (U+0385) and add proper bindings for double angle quotation
marks.  (Bug#73909)

(cherry picked from commit 7cda5fa4cf6ecdfda108284717a1531cfc442fe4)

5 months ago* etc/symbol-releases.eld: Add 'set-transient-map'.
Stefan Kangas [Sun, 3 Nov 2024 03:18:29 +0000 (04:18 +0100)]
* etc/symbol-releases.eld: Add 'set-transient-map'.

(cherry picked from commit d1b67b4a1c75e0d94892babc30da8ffd689f9d9e)

5 months agoRemove Emacs 24.4 compat code from which-key
Stefan Kangas [Sun, 3 Nov 2024 03:14:56 +0000 (04:14 +0100)]
Remove Emacs 24.4 compat code from which-key

* lisp/which-key.el (which-key--show-page): Remove Emacs 24.4
compatibility code.

(cherry picked from commit 2a41f4ae766cf0b150cc8ec054b30e60e1a438d4)

5 months agoExpand manual section on Time Stamps
Stephen Gildea [Sat, 2 Nov 2024 16:42:25 +0000 (09:42 -0700)]
Expand manual section on Time Stamps

* doc/emacs/files.texi (Time Stamps): Add examples of enabling
time stamping with add-hook and setting time-stamp-pattern as a
file-local variable.

(cherry picked from commit d245fb3964dcb404dc35a6f985c473f1ca879b33)

5 months agoFix color-lightening and darkening calculations
Eli Zaretskii [Sat, 2 Nov 2024 16:15:25 +0000 (18:15 +0200)]
Fix color-lightening and darkening calculations

* lisp/color.el (color-lighten-hsl): Fix calculations (bug#74055).

* test/lisp/color-tests.el (color-tests-lighten-hsl)
(color-tests-lighten-name, color-tests-darken-hsl)
(color-tests-darken-name): Adjust test results.

(cherry picked from commit 435d7d4292e6803405c1ea65c73693f20eea2a58)

5 months agoRevert "Fix color-lighten-hsl logic"
Eli Zaretskii [Sat, 2 Nov 2024 15:36:02 +0000 (17:36 +0200)]
Revert "Fix color-lighten-hsl logic"

This reverts commit 656c2dd66e77a5fbeb99d358017e8327401fae05.
That commit was mistaken, see bug#74055.

(cherry picked from commit 99650746d916335bbe480c462af83009037632df)

5 months ago; Skip commit 021c0ba116e00d20cb006e7441c20d21315ec202
Eshel Yaron [Fri, 8 Nov 2024 13:28:08 +0000 (14:28 +0100)]
; Skip commit 021c0ba116e00d20cb006e7441c20d21315ec202

5 months ago; * lisp/net/eww.el (eww--html buffer-list): Fix comment style.
Eli Zaretskii [Sat, 2 Nov 2024 11:33:36 +0000 (13:33 +0200)]
; * lisp/net/eww.el (eww--html buffer-list): Fix comment style.

(cherry picked from commit 74d3232522f762742e9acaf9e62b9fd6d63ae380)

5 months agoMore lax doctype check in EWW (bug#73133)
Sebastián Monía [Thu, 24 Oct 2024 17:09:11 +0000 (13:09 -0400)]
More lax doctype check in EWW (bug#73133)

The regexp to match doctype tags was simplified and will match
more legacy entries; also correct binding of 'case-fold-search'.
* lisp/net/eww.el (eww--html buffer-list): Update function.

(cherry picked from commit 6a0c2b8729c436ef4dfecf07737c86936cb94bd5)

5 months ago; * src/nsterm.m (ns_draw_fringe_bitmap): Fix coding style.
Eli Zaretskii [Sat, 2 Nov 2024 11:16:41 +0000 (13:16 +0200)]
; * src/nsterm.m (ns_draw_fringe_bitmap): Fix coding style.

(cherry picked from commit 0a6d46228d62ec07cc55c6bd8eaf0ec8a1da9af5)

5 months agoFix inconsistency in bitmap overlay drawing for macOS
Daniel Pettersson [Mon, 24 Jun 2024 21:16:59 +0000 (23:16 +0200)]
Fix inconsistency in bitmap overlay drawing for macOS

* src/nsterm.m (ns_draw_fringe_bitmap): Respect 'overlay_p',
by not clearing fringe if set, as its done in xterm.  (Bug#71763)

(cherry picked from commit 87358e94047c7f86af1f1ac9d9469553dcd6a6e1)

5 months ago; Update ldefs-boot.el
Eshel Yaron [Fri, 8 Nov 2024 09:44:15 +0000 (10:44 +0100)]
; Update ldefs-boot.el

5 months agoDrop hippie-exp.el
Eshel Yaron [Fri, 8 Nov 2024 08:54:29 +0000 (09:54 +0100)]
Drop hippie-exp.el

5 months agoImprove eww-search-words
Eshel Yaron [Fri, 8 Nov 2024 08:54:05 +0000 (09:54 +0100)]
Improve eww-search-words

5 months agoRewrite dabbrev.el
Eshel Yaron [Wed, 6 Nov 2024 19:26:54 +0000 (20:26 +0100)]
Rewrite dabbrev.el

5 months agoImprove documentation of letter-case conversions
Eli Zaretskii [Fri, 1 Nov 2024 14:39:39 +0000 (16:39 +0200)]
Improve documentation of letter-case conversions

* doc/lispref/nonascii.texi (Character Properties):
* doc/lispref/strings.texi (Case Conversion, Case Tables):
Document that special-casing rules override the case-table
conversions.  (Bug#74155)

(cherry picked from commit f7b85fe986e74b649f8148ee407cf7a2327ff4a9)

5 months agoFix bugs in dabbrev-expand (bug#74090)
Stephen Berman [Thu, 31 Oct 2024 09:46:27 +0000 (10:46 +0100)]
Fix bugs in dabbrev-expand (bug#74090)

* lisp/dabbrev.el (dabbrev-expand): Use the buffer where the
expansion was found when setting the internal variables used to
determine the next expansion or a replacement expansion.

* test/lisp/dabbrev-tests.el (ert-x): Require for
'ert-with-temp-directory', 'ert-resource-directory' and
'ert-resource-file'.
(with-dabbrev-test): New macro.
(dabbrev-expand-test-same-buffer-{1,2,3,4})
(dabbrev-expand-test-other-buffer-{1,2,3,4})
(dabbrev-expand-test-minibuffer-{1,2,3,4}): New tests.

* test/lisp/dabbrev-resources/dabbrev-expand.el:
* test/lisp/dabbrev-resources/INSTALL_BEGIN: New test resources.

(cherry picked from commit f6c359cb66a0e9b851e3467b1ba9cab7efa8f744)
(cherry picked from commit 8113b5c562b88d4981231b0e332ced9fc20dc0b9)

5 months ago; Skip commit 3101c5031e6eae31ac64392f312091ffa9bbd777
Eshel Yaron [Tue, 5 Nov 2024 11:13:44 +0000 (12:13 +0100)]
; Skip commit 3101c5031e6eae31ac64392f312091ffa9bbd777

5 months agoFix c-ts-common-comment-indent-new-line (bug#73900)
Yuan Fu [Tue, 29 Oct 2024 07:27:34 +0000 (00:27 -0700)]
Fix c-ts-common-comment-indent-new-line (bug#73900)

* lisp/progmodes/c-ts-common.el:
(c-ts-common-comment-indent-new-line): Delete trailing
whitespace before inserting newline.  The insert-line-break
function is the same as in c-indent-new-comment-line.

(cherry picked from commit e6a8492fabc1e7065983fbf6506a2790c137cd9f)

5 months agoWork on proced-tests.el
Laurence Warne [Wed, 30 Oct 2024 14:12:13 +0000 (15:12 +0100)]
Work on proced-tests.el

* test/lisp/proced-tests.el
(proced--assert-process-valid-cpu-refinement-explainer): New function
for explaining refinement test failures in greater detail.

(cherry picked from commit 98796f95fa5ce7c38074429517c477cd01b0be37)

5 months ago; * doc/lispref/frames.texi (Yanking Media): Add index entry.
Eli Zaretskii [Tue, 29 Oct 2024 14:27:51 +0000 (16:27 +0200)]
; * doc/lispref/frames.texi (Yanking Media): Add index entry.

(cherry picked from commit 8a4d13e370cb816438816a4af77f70f4d0de9618)

5 months ago* lisp/files.el (require-with-check): Be a bit more lenient (bug74040)
Stefan Monnier [Tue, 29 Oct 2024 02:40:15 +0000 (22:40 -0400)]
* lisp/files.el (require-with-check): Be a bit more lenient (bug74040)

(cherry picked from commit 0aae02a3741c397d6952e3128d434827aca0f912)

5 months ago(with-peg-rules): Fix references to rulesets (bug#74018)
Stefan Monnier [Tue, 29 Oct 2024 02:14:10 +0000 (22:14 -0400)]
(with-peg-rules): Fix references to rulesets (bug#74018)

PEG rules get "compiled" to functions with name `peg-rule <RULE>`.
`define-peg-ruleset` instead defines it PEG rules with name
`peg-rule <RULESET> <RULE>`, so that they can be made visible
by `with-peg-rules` simply by adding local aliases from
`peg-rule <RULE>` to `peg-rule <RULESET> <RULE>`.

Apparently when I added `define-peg-ruleset` I somehow failed to
install some of the corresponding code in `with-peg-rules`, so
the aliases were not installed, making it "impossible" to use
rulesets.
[ I still have no idea how this happened and/or where
  the missing code went, so I "recreated" it.  ]

* lisp/progmodes/peg.el (with-peg-rules): Install the aliases
for the rulesets.
(peg--translate-rule-body): Try and preserve
location info when emitting a warning.

* test/lisp/progmodes/peg-tests.el (peg-test-myrules): New ruleset.
(peg-test-ruleset): New test.

(cherry picked from commit cc6a11f4832076acb7c0b5301eb1add026fabe4b)

5 months ago; * etc/NEWS: Fix typo (bug#74066).
Eli Zaretskii [Mon, 28 Oct 2024 19:11:50 +0000 (21:11 +0200)]
; * etc/NEWS: Fix typo (bug#74066).

(cherry picked from commit 70f084db2ff36be2eb183a5c7f6aa88a44ff0d5e)

5 months agoTweak doc w.r.t to "void function" (bug#73886)
Stefan Monnier [Sun, 27 Oct 2024 18:52:25 +0000 (14:52 -0400)]
Tweak doc w.r.t to "void function" (bug#73886)

* doc/lispref/functions.texi (Function Cells): Avoid talking
about the function cell being void.

* src/data.c (Fboundp, Ffmakunbound, Fsymbol_function):
Don't suggest that "void" can be considered as a kind of value.

(cherry picked from commit 9e1abf11fc1c3285cfa631ec71f3836d54e2c8d8)

5 months agoFix flakey proced refine tests (Bug#73441)
Laurence Warne [Sun, 27 Oct 2024 15:50:20 +0000 (16:50 +0100)]
Fix flakey proced refine tests (Bug#73441)

* test/lisp/proced-tests.el (proced-refine-test)
(proced-refine-with-update-test): Use the much simpler CPU refinement
for testing 'proced-refine'.  The previous tests made the incorrect
assumption that refining on the PID of process A only filtered the
buffer to contain process A and its children, whereas in actuality
the children of process A's children, their children, and so on will
also be shown.
(proced-update-preserves-pid-at-point-test): Mark as unstable.

(cherry picked from commit 7a8ca202c5eeb810e5f86510c3ea46d3ec519222)

5 months agoAnother 'void' update
Eli Zaretskii [Sun, 27 Oct 2024 14:07:08 +0000 (16:07 +0200)]
Another 'void' update

* doc/lispref/symbols.texi (Symbol Components): Another update due
to the change in 'void' function implementation.  (Bug#73886)

(cherry picked from commit 55a8cec013e8879da2c79cd8fbe387d8d2822166)

5 months agoDon't start docstrings with "This function"
Stefan Kangas [Fri, 1 Nov 2024 22:56:12 +0000 (23:56 +0100)]
Don't start docstrings with "This function"

* lisp/calculator.el (calculator-add-operators):
* lisp/erc/erc-log.el (erc-generate-log-file-name-with-date)
(erc-generate-log-file-name-short):
* lisp/eshell/esh-mode.el (eshell-begin-on-new-line):
* lisp/progmodes/hideif.el (hif-merge-ifdef-region):
* lisp/tab-bar.el (tab-bar--event-to-item):
* lisp/textmodes/artist.el (artist-no-rb-unset-point2)
(artist-no-rb-unset-points):
* lisp/which-key.el (which-key--hide-popup): Don't start function
docstrings with "This function".

(cherry picked from commit 4df832750c811abc5ccbe7bfcefe1ad8f144af8e)

5 months agoMark unused reftex variable as obsolete
Stefan Kangas [Fri, 1 Nov 2024 21:54:11 +0000 (22:54 +0100)]
Mark unused reftex variable as obsolete

* lisp/textmodes/reftex-vars.el
(reftex-toc-split-windows-horizontally-fraction): Mark unused variable
as obsolete in favor of 'reftex-toc-split-windows-fraction'.

(cherry picked from commit 471716c67d0d00a2e90dd7dfbc2bb88820a248a2)