1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 12:20:39 -08:00
emacs/lisp/textmodes
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
..
artist.el Don't start docstrings with "This function" 2024-11-01 23:56:12 +01:00
bib-mode.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
bibtex-style.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
bibtex.el bibtex-mode: fix patch bibtex validation for non-file buffers 2024-09-24 23:14:27 -05:00
conf-mode.el (conf-toml-recognize-section): Fix bug#70383 2024-04-17 14:30:10 -04:00
css-mode.el Set treesit-primary-parser for tree-sitter modes 2024-10-14 20:26:23 -07:00
dns-mode.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
emacs-authors-mode.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
emacs-news-mode.el Mark if-let and when-let obsolete 2024-10-24 16:50:07 +08:00
enriched.el Fix decoding 'display' properties with SVG images in Enriched mode 2024-07-14 09:06:55 +03:00
fill.el Prefer defcustom :local specifier in textmodes 2024-10-02 12:19:22 +02:00
flyspell.el ; Fix documentation of 'flyspell-check-changes' 2024-03-15 10:44:23 +02:00
glyphless-mode.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
html-ts-mode.el Set treesit-primary-parser for tree-sitter modes 2024-10-14 20:26:23 -07:00
ispell.el Mark if-let and when-let obsolete 2024-10-24 16:50:07 +08:00
less-css-mode.el Prefer defcustom :local specifier in textmodes 2024-10-02 12:19:22 +02:00
makeinfo.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
mhtml-mode.el Checkdoc fixes in textmodes/*.el 2024-07-08 17:24:54 +02:00
nroff-mode.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
page-ext.el Update FSF's address 2024-09-02 21:02:09 +02:00
page.el ; * lisp/textmodes/page.el (page--what-page): Fix last change. 2024-01-13 12:45:10 +02:00
paragraphs.el Improve sentence-end-double-space docstring 2024-07-01 02:41:52 +02:00
picture.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
pixel-fill.el Avoid signaling errors from 'pixel-fill-region' 2024-02-03 11:09:36 +02:00
po.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
refbib.el Checkdoc fixes in textmodes/*.el 2024-07-08 17:24:54 +02:00
refer.el Prefer defcustom :local specifier in textmodes 2024-10-02 12:19:22 +02:00
refill.el ; * lisp/textmodes/refill.el (refill-fill-paragraph-at): Fix typo. 2024-01-27 13:28:32 +02:00
reftex-auc.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
reftex-cite.el Support biblatex field in `reftex-cite-format' 2024-05-07 15:50:03 +02:00
reftex-dcr.el ; Fix typos 2024-07-18 11:46:50 +02:00
reftex-global.el Prefer setq-local in reftex 2024-06-23 15:45:59 +02:00
reftex-index.el Merge from savannah/emacs-30 2024-07-09 09:33:09 +08:00
reftex-parse.el Move over optional arguments in parentheses correctly 2024-04-09 14:08:17 +02:00
reftex-ref.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
reftex-sel.el Prefer setq-local in reftex 2024-06-23 15:45:59 +02:00
reftex-toc.el Prefer setq-local in reftex 2024-06-23 15:45:59 +02:00
reftex-vars.el Mark unused reftex variable as obsolete 2024-11-01 23:56:07 +01:00
reftex.el Prefer defvar-local where possible 2024-10-01 21:31:02 +02:00
remember.el remember-data-file: Don't unconditionally call set-visited-file-name 2024-09-25 16:02:53 +01:00
rst.el Delete redundant declarations of 'electric' variables 2024-09-21 14:48:02 +02:00
sgml-mode.el Add support for 'yank-media' on MS-Windows 2024-11-03 15:12:20 +02:00
string-edit.el Prevent deletion of separator in *edit string* buffer 2024-06-15 11:37:34 +03:00
table.el Checkdoc fixes in textmodes/*.el 2024-07-08 17:24:54 +02:00
tex-mode.el Mark if-let and when-let obsolete 2024-10-24 16:50:07 +08:00
texinfmt.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
texinfo.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
texnfo-upd.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
text-mode.el ; Fix :type of text-mode-ispell-word-completion. 2024-02-28 17:04:20 +01:00
tildify.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
toml-ts-mode.el Set treesit-primary-parser for tree-sitter modes 2024-10-14 20:26:23 -07:00
two-column.el Prefer defcustom :local specifier in textmodes 2024-10-02 12:19:22 +02:00
underline.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
word-wrap-mode.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
yaml-ts-mode.el Set treesit-primary-parser for tree-sitter modes 2024-10-14 20:26:23 -07:00