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

175466 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Eli Zaretskii
8a7910fb67 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.
2024-11-05 14:29:02 +02:00
Stefan Kangas
a0f8fb806f 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.
2024-11-05 04:29:23 +01:00
Jim Porter
9cfd13ff44 ; * test/lisp/eshell/esh-cmd-tests.el: Fix last change. 2024-11-03 20:21:12 -08:00
Jim Porter
ee87af4f16 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.
2024-11-03 20:18:14 -08:00
Jim Porter
ed9ea57e57 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.
2024-11-03 20:18:14 -08:00
Jim Porter
4d69d3778a 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.
2024-11-03 20:18:14 -08:00
Jim Porter
08d5994b43 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.
2024-11-03 15:42:26 -08:00
Stefan Kangas
b3c82f939c Mark IDLWAVE as obsolete
* lisp/obsolete/idlw-complete-structtag.el:
* lisp/obsolete/idlw-help.el:
* lisp/obsolete/idlw-shell.el:
* lisp/obsolete/idlw-toolbar.el:
* lisp/obsolete/idlwave.el: Mark as obsolete.  (Bug#71157)

* lisp/files.el (auto-mode-alist): Remove IDLWAVE entry.
* doc/emacs/programs.texi (Program Modes): Remove IDLWAVE from
list of supported languages.
2024-11-03 16:29:40 +01:00
Stefan Kangas
75c5aaae89 Move IDLWAVE to lisp/obsolete
* lisp/progmodes/idlw-complete-structtag.el:
* lisp/progmodes/idlw-help.el:
* lisp/progmodes/idlw-shell.el:
* lisp/progmodes/idlw-toolbar.el:
* lisp/progmodes/idlwave.el: Move from here...
* lisp/obsolete/idlw-complete-structtag.el
* lisp/obsolete/idlw-help.el
* lisp/obsolete/idlw-shell.el
* lisp/obsolete/idlw-toolbar.el
* lisp/obsolete/idlwave.el: ...to here.  (Bug#71157)
2024-11-03 16:29:36 +01:00
Stefan Kangas
378661dcd6 ; Whitespace fix in idlwave.el 2024-11-03 16:27:16 +01:00
Andrea Corallo
53f0151518 * Remove warning introduced by 8e7f5f97db
* lisp/term/w32-win.el (w32--get-clipboard-data-media): Declare.
2024-11-03 15:35:33 +01:00
Cecilio Pardo
8e7f5f97db 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.
2024-11-03 15:12:20 +02:00
Eli Zaretskii
5ee56b8693 ; * etc/NEWS: Announce 'greek-polytonic'. (Bug#73909) 2024-11-03 09:25:51 +02:00
Thanos Apollo
d276f45320 Add greek-polytonic input method 2024-11-03 09:23:27 +02:00
Thanos Apollo
7cda5fa4cf 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)
2024-11-03 09:21:17 +02:00
Stefan Kangas
d1b67b4a1c * etc/symbol-releases.eld: Add 'set-transient-map'. 2024-11-03 07:25:29 +01:00
Stefan Kangas
2a41f4ae76 Remove Emacs 24.4 compat code from which-key
* lisp/which-key.el (which-key--show-page): Remove Emacs 24.4
compatibility code.
2024-11-03 07:25:29 +01:00
Stephen Gildea
d245fb3964 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.
2024-11-02 09:45:09 -07:00
Eli Zaretskii
435d7d4292 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.
2024-11-02 18:15:25 +02:00
Eli Zaretskii
99650746d9 Revert "Fix color-lighten-hsl logic"
This reverts commit 656c2dd66e.
That commit was mistaken, see bug#74055.
2024-11-02 17:36:02 +02:00
Eli Zaretskii
021c0ba116 ; * lisp/progmodes/c-ts-common.el: Fix merging snafu. 2024-11-02 08:42:35 -04:00
Eli Zaretskii
aac4a939f9 Merge from origin/emacs-30
f7b85fe986 Improve documentation of letter-case conversions
2024-11-02 08:38:11 -04:00