Po Lu
ecf08f0621
Merge from savannah/emacs-29
...
dc4e6b1329
; Update copyright years in more files
64b3777631
; Run set-copyright from admin.el
8e1c56ae46
; Add 2024 to copyright years
# Conflicts:
# doc/misc/modus-themes.org
# doc/misc/texinfo.tex
# etc/NEWS
# etc/refcards/ru-refcard.tex
# etc/themes/modus-operandi-theme.el
# etc/themes/modus-themes.el
# etc/themes/modus-vivendi-theme.el
# lib/alloca.in.h
# lib/binary-io.h
# lib/c-ctype.h
# lib/c-strcasecmp.c
# lib/c-strncasecmp.c
# lib/careadlinkat.c
# lib/cloexec.c
# lib/close-stream.c
# lib/diffseq.h
# lib/dup2.c
# lib/filemode.h
# lib/fpending.c
# lib/fpending.h
# lib/fsusage.c
# lib/getgroups.c
# lib/getloadavg.c
# lib/gettext.h
# lib/gettime.c
# lib/gettimeofday.c
# lib/group-member.c
# lib/malloc.c
# lib/md5-stream.c
# lib/md5.c
# lib/md5.h
# lib/memmem.c
# lib/memrchr.c
# lib/nanosleep.c
# lib/save-cwd.h
# lib/sha1.c
# lib/sig2str.c
# lib/stdlib.in.h
# lib/strtoimax.c
# lib/strtol.c
# lib/strtoll.c
# lib/time_r.c
# lib/xalloc-oversized.h
# lisp/auth-source-pass.el
# lisp/emacs-lisp/lisp-mnt.el
# lisp/emacs-lisp/timer.el
# lisp/info-look.el
# lisp/jit-lock.el
# lisp/loadhist.el
# lisp/mail/rmail.el
# lisp/net/ntlm.el
# lisp/net/webjump.el
# lisp/progmodes/asm-mode.el
# lisp/progmodes/project.el
# lisp/progmodes/sh-script.el
# lisp/textmodes/flyspell.el
# lisp/textmodes/reftex-toc.el
# lisp/textmodes/reftex.el
# lisp/textmodes/tex-mode.el
# lisp/url/url-gw.el
# m4/alloca.m4
# m4/clock_time.m4
# m4/d-type.m4
# m4/dirent_h.m4
# m4/dup2.m4
# m4/euidaccess.m4
# m4/fchmodat.m4
# m4/filemode.m4
# m4/fsusage.m4
# m4/getgroups.m4
# m4/getloadavg.m4
# m4/getrandom.m4
# m4/gettime.m4
# m4/gettimeofday.m4
# m4/gnulib-common.m4
# m4/group-member.m4
# m4/inttypes.m4
# m4/malloc.m4
# m4/manywarnings.m4
# m4/mempcpy.m4
# m4/memrchr.m4
# m4/mkostemp.m4
# m4/mktime.m4
# m4/nproc.m4
# m4/nstrftime.m4
# m4/pathmax.m4
# m4/pipe2.m4
# m4/pselect.m4
# m4/pthread_sigmask.m4
# m4/readlink.m4
# m4/realloc.m4
# m4/sig2str.m4
# m4/ssize_t.m4
# m4/stat-time.m4
# m4/stddef_h.m4
# m4/stdint.m4
# m4/stdio_h.m4
# m4/stdlib_h.m4
# m4/stpcpy.m4
# m4/strnlen.m4
# m4/strtoimax.m4
# m4/strtoll.m4
# m4/time_h.m4
# m4/timegm.m4
# m4/timer_time.m4
# m4/timespec.m4
# m4/unistd_h.m4
# m4/warnings.m4
# nt/configure.bat
# nt/preprep.c
# test/lisp/register-tests.el
2024-01-02 10:28:14 +08:00
Po Lu
8e1c56ae46
; Add 2024 to copyright years
2024-01-02 09:47:10 +08:00
Eli Zaretskii
0273914921
Merge from origin/emacs-29
...
bc56da92d8
; Fix error in 'tex-recenter-output-buffer'
d17c5adc05
Fix regexp for recognizing PBM images
9e9f61866e
Improve wording in ELisp manual
7427efa033
Fix typo (Bug#65764)
59c6624408
; * lisp/ido.el (ido-completion-buffer): Fix :type (bug#6...
4ec4b18c2a
Fix libgccjit build on Haiku
80bdcf8f35
(regexp-tests-backtrack-optimization): Mark it as failing
8a9e653cc8
; Add regression test for bug#65726
6fad73d7cc
* src/regex-emacs.c (mutually_exclusive_p): Fix inf-loop ...
1d3d419607
; * lisp/files.el (save-some-buffers-functions): Doc fix ...
42b14c6e5b
Bump seq version to 2.24
ff5190a174
Add note on ELPA to admin/notes/bug-triage
f1e4cbe72a
; * etc/PROBLEMS: Minor wording fix.
fd5593c7f2
* etc/PROBLEMS: Mention bug#65432 and its remedy.
dd896ea1e6
Ignore errors when checking for object initializers (bug#...
3550f44c17
; Fix typos
5b246b9b81
* CONTRIBUTE: Document making ChangeLogs with Magit.
0bd4661941
Doc fixes for obsolete functions and variables
524c0c34f2
; * lisp/ffap.el (ffap-rfs-regexp): Fix :type (bug#65698).
f48dccc467
Merge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/...
71a85e2266
A revision to the Widget manual
dbbcf4a659
Fix fontification of " in edit-kbd-macro
# Conflicts:
# test/src/regex-emacs-tests.el
2023-09-09 04:32:45 -04:00
David Ponce
d17c5adc05
Fix regexp for recognizing PBM images
...
* lisp/image.el (image-type-header-regexps): Don't use [:space:],
as its meaning depends on the current buffer's syntax tables.
(Bug#65496)
2023-09-06 18:58:48 +03:00
Eli Zaretskii
7191318b71
Merge from origin/emacs-29
...
864a4dc236
Fix compilation of w32.c with old MinGW system headers
a22eb9ae0f
ruby-add-log-current-method: Reduce the use of 'nreverse'
17d803d0a7
Fix detection of WebP images by their signature
43290391ce
; Eglot: make version parseable by version-to-list
6e6e8b5c97
Add more documentation for the keys of `package-vc-select...
7972b76c2c
; vc-checkout: Wrap var lookup in 'bound-and-true-p'
e9fef1d70f
vc-checkout: Try to use the vc-dir's backend first
372e024acc
; Fix wallpaper-tests on XFCE
7055fd8e43
Improve documentation related to 'ispell-complete-word'
61fd017abd
* configure.ac: Add -lbsd on Haiku.
05971c4d9a
Add menu to 'c-ts-mode' and 'c++-ts-mode'
# Conflicts:
# lisp/progmodes/eglot.el
# lisp/progmodes/ruby-mode.el
2023-04-15 13:02:04 -04:00
Eli Zaretskii
5fecdbcd81
Merge from origin/emacs-29
...
5ef7ff0573
; Start a new ChangeLog.4 file.
11126c6d30
Fix 'C-h k' for "Paste from Kill Menu" in context menus
74ddfe811f
; * doc/misc/calc.texi (Rewrites Tutorial): Fix a typo (b...
08cda286c3
Improve the documentation of the XDS support
14d1c00e80
Allow reindentation of images inserted by 'mm-inline-image'
b63a9eda01
Fix "C-h k" and "C-h c" with Paste from Kill Menu
b36c21e27d
Change cursor color on NS port when it matches the face b...
96714c106b
Improve documentation of image-related commands
6a2863ca01
Fix handling of sliced images
5be79fd05a
; * etc/NEWS: Announce 'cyrillic-mongolian' IM.
ca1a0fda98
; Fix last change.
ce63462dbd
Add cyrillic-mongolian input method
5880179270
; Minor addition to the Emacs FAQ
88847dee12
Jsonrpc: don't bind inhibit-read-only to t so early
cb8c87a423
Allow active region when IM is used
# Conflicts:
# etc/NEWS
2023-04-15 12:43:37 -04:00
Visuwesh
17d803d0a7
Fix detection of WebP images by their signature
...
* lisp/image.el (image-type-header-regexps): The 4 characters
between "RIFF" and "WEBP" in WebP images can also be newlines.
(Bug#62790)
2023-04-12 20:04:26 +03:00
Eli Zaretskii
96714c106b
Improve documentation of image-related commands
...
* lisp/image.el (image-map): Make it inherit from
'image-slice-map' instead of repeating the bindings.
* doc/emacs/files.texi (Image Mode): Document the key bindings set
by 'insert-image'. Add indexing.
* doc/lispref/display.texi (Showing Images): Make the description
of user commands more concise. Add index entries and
cross-reference to the Emacs manual.
* etc/NEWS: Rearrange entries relevant to image commands.
2023-04-08 14:33:06 +03:00
Eli Zaretskii
6a2863ca01
Fix handling of sliced images
...
* lisp/image.el (image-slice-map): New keymap, without some
bindings that make no sense with sliced images.
(insert-image, insert-sliced-image): Use it.
(insert-sliced-image): Make the 'keymap' property rear-nonsticky,
to prevent calling image commands when point is to the right of
the slice. (Bug#62679)
* lisp/image/image-crop.el (image-cut, image-crop): Doc fixes.
(image-crop): Don't try using stock MS-Widows convert.exe
program. Use 'image--get-image' to support sliced images.
2023-04-08 12:43:34 +03:00
Eli Zaretskii
2d1a96e878
Merge from origin/emacs-29
...
305246d972
Add emoji-zoom-reset
470d269ec1
Make emoji-zoom-{increase,decrease} set text properties c...
63d4a86f8d
Fix transforming sliced images
5e1953a8f8
; * etc/NEWS: Minor copyedits of entry for 'keymap-*' fun...
6b9f9df945
; Improve documentation of 'declare-function'
81d1f46d0f
; Avoid compiler warning in eglot.el.
38cdfcb212
; Fix description of new 'keymap-*' functions
257090b872
Adapt EMBA scripts.
90c07d3fdd
Another terminology fix in ELisp reference manual
a832bc7090
Correct terminology in Elisp Reference Manual
db308233cb
Comment out GNUSTEP jobs on EMBA (again)
8c1b102243
; * lisp/image.el (put-image): Doc fix.
eda88c63ad
; * doc/emacs/trouble.texi (Checklist): Minor grammar fix.
728bc09cf3
Fix regexp string escaping mistake in vhdl-mode.el (bug#6...
479626dbac
Update to Org 9.6.3-2-gf2949d
5a1c9aace7
; Add a bit more docstring to tsx-ts-mode (bug#62429)
86cf9fd932
Eglot: don't watch directories that don't exist
82d0b6c64e
; * lisp/subr.el (use-dialog-box-p): Fix last change.
3619663f98
Preserve peer information for web page in eww-readable
cb8d6ab648
* lisp/subr.el (use-dialog-box-p): Fix conditions for GUI...
fb2c440920
; * lisp/progmodes/c-ts-mode.el (c++-ts-mode): Add some n...
# Conflicts:
# etc/NEWS
2023-04-06 14:38:20 -04:00
Eli Zaretskii
63d4a86f8d
Fix transforming sliced images
...
* lisp/image.el (image--get-image): Support sliced images
(bug#62679). Doc fix.
(image-mouse-decrease-size, image-mouse-increase-size)
(image-decrease-size, image-increase-size): Doc fixes.
2023-04-06 12:35:17 +03:00
Eli Zaretskii
8c1b102243
; * lisp/image.el (put-image): Doc fix.
2023-04-03 19:32:46 +03:00
Mattias Engdegård
0bece4d33f
Data argument to signal
should be a list
...
* lisp/calendar/iso8601.el (iso8601-parse, iso8601-parse-date)
(iso8601-parse-time, iso8601-parse-zone, iso8601-parse-duration)
(iso8601-parse-interval):
* lisp/emacs-lisp/cl-lib.el (cl-values-list):
* lisp/emacs-lisp/comp.el (comp-decrypt-arg-list)
(comp-spill-lap-function, comp-emit-switch)
(comp-compute-dominator-tree, comp-final):
* lisp/image.el (image-type):
* lisp/image/exif.el (exif--parse-jpeg, exif--parse-exif-chunk)
(exif--parse-directory, exif--read-chunk, exif--read-number-be)
(exif--read-number-le):
* lisp/vc/vc.el (vc-default-last-change):
Wrap obvious non-list data arguments to `signal` in a list.
2023-01-03 14:03:58 +01:00
Eli Zaretskii
cae528457c
; Add 2023 to copyright years.
2023-01-01 05:31:12 -05:00
Lars Ingebrigtsen
9565f45876
Move image commands to the 'i' sub map
...
* doc/lispref/display.texi (Showing Images): Adjust.
* lisp/image.el (image-map): Move all keys under the "i" prefix.
(image--repeat-map): New map.
(image-increase-size, image-rotate, image-decrease-size): Make
repeatable.
(image--delayed-change-size): New function.
2022-10-04 15:09:33 +02:00
Stefan Kangas
d5cccca945
Merge from origin/emacs-28
...
64e8cc14b5
; * lisp/image.el (create-image): Fix last change in doc s...
f3e3632394
Update some Gnus documentation in the Emacs manual
2022-09-30 06:30:41 +02:00
Eli Zaretskii
64e8cc14b5
; * lisp/image.el (create-image): Fix last change in doc string.
2022-09-29 16:27:59 +03:00
Stefan Kangas
339945c05a
Merge from origin/emacs-28
...
cf38e1c393
Clarify image file search
fc212364ce
; Fix typo.
2022-09-29 06:30:58 +02:00
Eli Zaretskii
cf38e1c393
Clarify image file search
...
* doc/lispref/display.texi (Defining Images, Image Descriptors):
* lisp/image.el (create-image): Clarify that non-absolute image
files are searched along 'image-load-path'. (Bug#52931)
2022-09-28 22:03:27 +03:00
Lars Ingebrigtsen
e0ab4e3612
Rename image-elide' to
image-cut' and add more bindings
...
* doc/lispref/display.texi (Showing Images): Update.
* lisp/image.el (image-map): Move binding to mirror Gimp bindings.
* lisp/image/image-crop.el (image-crop-cut-command): Rename.
(image-cut-color): New user option.
(image-cut): Rename and remove prefix.
(image-crop): Remove prefix.
(image-crop--crop-image-update): Add commands to switch to
move/square modes.
2022-09-16 11:03:42 +02:00
Lars Ingebrigtsen
07c0e090bd
Add new commands 'image-crop' and 'image-elide'
...
* doc/lispref/display.texi (Showing Images): Document it.
* lisp/image.el (image-map): Bind commands.
* lisp/image/image-crop.el: New file (bug#51331).
2022-09-13 15:53:42 +02:00
Lars Ingebrigtsen
06d7161476
Fix some no-X build warnings
...
* lisp/cus-edit.el (fringe-bitmap-p): Autoload.
* lisp/image.el (clear-image-cache): Declare.
* lisp/mouse.el (dnd-begin-file-dram): Autoload.
* lisp/thumbs.el (image-supported-file-p): Declare (bug#57342).
* lisp/mail/rmailmm.el (rmail-mime-set-bulk-data):
* lisp/emacs-lisp/icons.el (icons--create): Avoid warnings on no-X
builds.
2022-08-22 19:22:33 +02:00
Stefan Kangas
1137219c97
Make compat alias image-refresh obsolete
...
* lisp/image.el (image-refresh): Make compat alias obsolete.
Update callers.
2022-08-09 14:04:39 +02:00
Visuwesh
e802171902
* lisp/image.el (put-image): Fix typo.
...
* lisp/image.el (put-image): Actually use the image-map keymap
(bug#56554).
2022-07-14 19:34:43 +02:00
Lars Ingebrigtsen
564f6c171e
Prune animation cache when images are no longer reachable
...
* lisp/image.el (image-animate-timeout): Eject cached animated
images that are no longer reachable (bug#56546).
* src/image.c (Fclear_image_cache): Allow specifying a cached
animated image to eject.
(gif_load, webp_load): Adjust what to use as the caching key --
the identity of the list itself is apparently changed by some
callers.
2022-07-14 18:59:09 +02:00
Stefan Kangas
739e3dbe05
Remove many items obsolete since 24.1
...
* lisp/allout.el (allout-abbreviate-flattened-numbering)
(allout-mode-deactivate-hook):
* lisp/ansi-color.el (ansi-color-unfontify-region):
* lisp/auth-source.el (auth-source-hide-passwords)
(auth-source-user-or-password)
(auth-source-forget-user-or-password):
* lisp/cedet/data-debug.el (data-debug-map):
* lisp/cedet/semantic/grammar.el (semantic-grammar-syntax-table)
(semantic-grammar-map):
* lisp/chistory.el (command-history-map):
* lisp/comint.el (comint-dynamic-complete)
(comint-dynamic-complete-as-filename)
(comint-dynamic-simple-complete):
* lisp/dired-x.el (read-filename-at-point)
(dired-x-submit-report):
* lisp/dos-fns.el (register-name-alist, make-register)
(register-value, set-register-value, intdos, mode25, mode4350):
* lisp/emacs-lisp/bytecomp.el (byte-compile-disable-print-circle):
* lisp/emacs-lisp/chart.el (chart-map):
* lisp/emacs-lisp/package.el (package-menu-view-commentary):
* lisp/emacs-lock.el (toggle-emacs-lock, emacs-lock-from-exiting):
* lisp/erc/erc.el (erc-complete-word):
* lisp/eshell/em-cmpl.el (eshell-cmpl-suffix-list):
* lisp/eshell/esh-util.el (eshell-for):
* lisp/files.el (inhibit-first-line-modes-regexps)
(inhibit-first-line-modes-suffixes):
* lisp/gnus/gnus-msg.el (gnus-outgoing-message-group)
(gnus-debug-files, gnus-debug-exclude-variables):
* lisp/gnus/gnus-registry.el (gnus-registry-user-format-function-M):
* lisp/gnus/gnus.el (gnus-local-domain, gnus-carpal):
* lisp/gnus/nnimap.el (nnimap-split-rule):
* lisp/iimage.el (turn-on-iimage-mode):
* lisp/image.el (image-extension-data, image-library-alist):
* lisp/mail/emacsbug.el (report-emacs-bug-pretest-address):
* lisp/mail/mail-utils.el (rmail-dont-reply-to):
* lisp/mail/mailalias.el (mail-complete-function)
(mail-completion-at-point-function):
* lisp/mail/rmail.el (rmail-dont-reply-to-names)
(rmail-default-dont-reply-to-names):
* lisp/mail/sendmail.el (mail-mailer-swallows-blank-line)
(mail-sent-via):
* lisp/menu-bar.el (menu-bar-kill-ring-save):
* lisp/minibuffer.el (completion-annotate-function)
(minibuffer-local-filename-must-match-map):
* lisp/msb.el (msb-after-load-hooks):
* lisp/obsolete/eieio-compat.el (eieio-defmethod)
(eieio-defgeneric):
* lisp/obsolete/info-edit.el (Info-edit-map):
* lisp/obsolete/starttls.el (starttls-any-program-available):
* lisp/progmodes/cfengine.el (cfengine-mode-abbrevs):
* lisp/progmodes/cwarn.el (turn-on-cwarn-mode):
* lisp/progmodes/make-mode.el (makefile-complete):
* lisp/progmodes/meta-mode.el (meta-complete-symbol)
(meta-mode-map):
* lisp/progmodes/pascal.el (pascal-toggle-completions)
(pascal-last-completions, pascal-show-completions):
* lisp/progmodes/prolog.el (prolog-char-quote-workaround):
* lisp/progmodes/which-func.el (which-func-mode): [FUNCTION]
* lisp/simple.el (count-lines-region, minibuffer-completing-symbol):
* lisp/speedbar.el (speedbar-syntax-table, speedbar-key-map):
* lisp/strokes.el (strokes-report-bug):
* lisp/subr.el (condition-case-no-debug):
* lisp/term/ns-win.el (ns-alternatives-map)
(ns-store-cut-buffer-internal):
* lisp/term/w32-win.el (w32-default-color-map):
* lisp/term/x-win.el (x-cut-buffer-or-selection-value):
* lisp/textmodes/bibtex.el (bibtex-complete)
(bibtex-entry-field-alist):
* lisp/textmodes/reftex-index.el (reftex-index-map)
(reftex-index-phrases-map):
* lisp/textmodes/reftex-sel.el (reftex-select-label-map)
(reftex-select-bib-map):
* lisp/textmodes/reftex-toc.el (reftex-toc-map):
* lisp/textmodes/rst.el (rst-block-face, rst-external-face)
(rst-definition-face, rst-directive-face, rst-comment-face)
(rst-emphasis1-face, rst-emphasis2-face, rst-literal-face)
(rst-reference-face):
* lisp/vc/vc-hooks.el (vc-toggle-read-only):
* lisp/view.el (view-return-to-alist)
(view-return-to-alist-update): Remove many functions and variables
obsolete since 24.1.
* lisp/textmodes/bibtex.el (bibtex-entry-alist): Don't use above
removed variable 'bibtex-entry-field-alist'.
* lisp/cedet/data-debug.el (data-debug-edebug-expr)
(data-debug-eval-expression):
* lisp/emacs-lisp/trace.el (trace--read-args):
* lisp/files-x.el (read-file-local-variable-value):
* lisp/simple.el (read--expression): Don't use above removed variable
'minibuffer-completing-symbol'.
* lisp/textmodes/rst.el (rst-font-lock-keywords): Don't use above
removed variables.
* src/w32fns.c (Fw32_default_color_map): Delete obsolete function.
(syms_of_w32fns): Delete defsubr for above defun.
* src/keyboard.c (syms_of_keyboard) <Vdeferred_action_list>
<Vdeferred_action_function>: Delete DEFVARs.
<Qdeferred_action_function>: Delete DEFSYM.
(syms_of_keyboard_for_pdumper): Adjust for above change.
(command_loop_1): Don't run deferred-action-function hook.
* lisp/subr.el (deferred-action-list, deferred-action-function):
Delete obsoletion statements.
* lisp/emacs-lisp/ert-x.el (ert-simulate-command): Don't run
'deferred-action-list' hook.
* doc/lispref/hooks.texi (Standard Hooks): Delete
'deferred-action-function'.
* lisp/emacs-lisp/lisp.el (field-complete):
* lisp/eshell/em-cmpl.el (eshell-cmpl-initialize):
* lisp/gnus/gnus-msg.el (gnus-inews-insert-gcc):
* lisp/gnus/nnmail.el (nnmail-fancy-expiry-target):
* lisp/mail/mail-utils.el (mail-dont-reply-to):
* lisp/mail/sendmail.el (sendmail-send-it):
* lisp/mail/smtpmail.el (smtpmail-send-it):
* lisp/minibuffer.el (minibuffer-completion-help):
* lisp/progmodes/python.el: Don't use above removed items.
* lisp/emacs-lisp/eieio-core.el:
* lisp/mail/mailalias.el (mail-complete-alist): Doc fixes; don't refer
to above removed items.
; * etc/NEWS: List removed items.
2022-07-08 14:10:38 +02:00
Timo Taipalus
6fbea946bf
Add support for image flipping
...
* lisp/image.el (image-map): Keybindings for flipping functions.
(image-flip-horizontally): New function that toggles image flipping
property.
(image-flip-vertically): New function that toggles image flipping
property and rotates image 180 degrees.
* src/image.c (syms_of_image): Add property.
(image_set_transform): Modify image rotation code to also horizontally
flip the image when the property is set.
* etc/NEWS: Add description.
* doc/lispref/display.texi (Image Descriptors): Document :flip
(bug#47095).
2022-06-24 14:44:02 +02:00
Eli Zaretskii
3642f37872
; * lisp/image.el (find-image): Fix typos.
2022-06-20 15:42:48 +03:00
David Ponce
c1453cd6f6
Make images found through find-image' be handled like
create-image'
...
* lisp/image.el (find-image): Use `create-image' so that we get
auto-scaling of images (bug#40978).
2022-06-20 11:39:56 +02:00
Lars Ingebrigtsen
fa55708b55
Add new function image-supported-file-p
...
* lisp/image.el (image-type-from-file-name): Make obsolete.
(image-supported-file-p): New function that has a more sensible
value.
(image-type): Adjust caller.
* lisp/thumbs.el (thumbs-file-size, thumbs-show-image-num): Adjust
callers.
* lisp/mail/rmailmm.el (rmail-mime-set-bulk-data): Adjust caller
and logic.
2022-03-22 15:02:08 +01:00
Lars Ingebrigtsen
c9c3d5d830
Revert "Allow using image-convert to view .bmp images"
...
This reverts commit ede8ad507d
.
This leads to failures for usages of the function where
Emacs doesn't have support for the formats.
2022-03-22 14:45:19 +01:00
Lars Ingebrigtsen
61d34c6a50
Allow specifying the intermediate format
...
* lisp/image/image-converter.el (image-convert-to-format): New
user format (bug#54494).
(image-convert, image-converter--convert-magick)
(image-converter--convert): Use it.
2022-03-21 17:51:21 +01:00
Lars Ingebrigtsen
ede8ad507d
Allow using image-convert to view .bmp images
...
* lisp/image.el (image-type-from-file-name): Allow Emacs to fall
back on image-convert to display .bmp images (bug#54492).
2022-03-21 17:19:03 +01:00
Stefan Kangas
d464454f45
* lisp/image.el (image-map): Use defvar-keymap.
2022-01-31 07:32:03 +01:00
Stefan Kangas
ff63787ea1
Merge from origin/emacs-28
...
c34d06e3d7
* configure.ac (LIBSECCOMP): Bump minimum version for facc...
335a5a9e0f
Make the `f' command work in image-mode again
2022-01-25 06:31:03 +01:00
Lars Ingebrigtsen
335a5a9e0f
Make the `f' command work in image-mode again
...
* lisp/image.el (image-show-frame): Protect against not having
computed the animation data yed (bug#53489).
2022-01-24 11:22:57 +01:00
Eli Zaretskii
dcd76bd48d
Merge from origin/emacs-28
...
836be7a112
; * etc/refcards/ru-refcard.tex: Update Copyright year.
86cbc6ee4a
* lisp/net/tramp-sh.el: Adapt copyright year
ebe8772f65
; Minor fixes related to copyright years
23c1ee6989
; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye...
8d3fc7ec89
* src/xfaces.c (face_for_font): Make 'hash' be uintptr_t.
19dcb237b5
; Add 2022 to copyright years.
# Conflicts:
# etc/NEWS
# etc/refcards/ru-refcard.tex
# lib/cdefs.h
# lisp/erc/erc-dcc.el
# lisp/erc/erc-imenu.el
# lisp/erc/erc-replace.el
# lisp/image-dired.el
# lisp/progmodes/xref.el
# m4/alloca.m4
# m4/byteswap.m4
# m4/errno_h.m4
# m4/getopt.m4
# m4/gnulib-common.m4
# m4/inttypes.m4
# m4/stddef_h.m4
# m4/stdint.m4
# m4/sys_socket_h.m4
2022-01-01 07:03:03 -05:00
Eli Zaretskii
19dcb237b5
; Add 2022 to copyright years.
2022-01-01 02:45:51 -05:00
Alan Third
ec1312d76a
Add native HEIC support on macOS (bug#51381)
...
* lisp/image.el (image-type-header-regexps):
(image-type-file-name-regexps):
(image-type-auto-detectable): Add auto-detect code for heic.
* src/image.c (syms_of_image): Add heic as an image type under NS.
* src/nsimage.m (ns_can_use_native_image_api): Add heic to list of
possible image types in the native image support lookup.
2021-12-22 20:48:19 +00:00
Paul Eggert
186637314d
Fix image load timekeeping bug
...
* lisp/image.el (image-animate-timeout): Fix bug that caused the
local variable time-to-load-image to be practically zero, instead
of the time it actually took to load the image. I think
this bug was introduced in 2013-02-16T03:29:30Z!rgm@gnu.org.
2021-12-05 23:24:09 -08:00
Stefan Kangas
756c2099bf
* lisp/image.el (image): Add :prefix and :link.
2021-12-03 15:42:10 +01:00
Lars Ingebrigtsen
a204b29d5b
Allow stopping animations automatically when the image disappears
...
* lisp/image.el (image-animate): Allow the animation to be stopped
automatically when the image is removed from the buffer.
(image-animate-timeout): Stop the animation if the image is
removed (and that has been requested).
* lisp/net/shr.el (shr-put-image): Stop animations if the image is
removed.
2021-11-12 03:31:53 +01:00
Lars Ingebrigtsen
5ba738eb0a
Make image-compute-scaling-factor argument optional
...
* lisp/image.el (image-compute-scaling-factor): Make the argument
optional.
2021-11-09 05:55:32 +01:00
Lars Ingebrigtsen
61ae7bef50
Allow 'insert-image' to inhibit isearches or not
...
* doc/lispref/display.texi (Showing Images): Mention it.
* lisp/image.el (insert-image): Take an optional parameter to
inhibit isearch of the STRING argument.
2021-11-06 05:18:32 +01:00
Lars Ingebrigtsen
c8acc5fd92
Introduce a new 'inhibit-isearch' text property
...
* doc/lispref/text.texi (Special Properties): Mention it.
* lisp/image.el (insert-image): Make `C-s' skip over the image data.
* lisp/isearch.el (isearch--search-skip-inhibited): New function.
(isearch-search-string): Use it.
(isearch--invisible-p): New function.
(isearch-range-invisible): Use it.
2021-11-06 04:59:05 +01:00
Stefan Kangas
203279a024
Add new function image-at-point-p
...
* lisp/image.el (image-at-point-p): New defun.
* doc/lispref/display.texi (Showing Images): Document above new defun.
2021-10-27 03:27:08 +02:00
Stefan Kangas
bc2a5c1127
Add WebP image format support (Bug#51296)
...
* configure.ac (--with-webp): New option.
(HAVE_WEBP): New variable.
(emacs_config_features): Add webp.
* src/image.c (enum webp_keyword_index) [HAVE_WEBP]: New enum.
(webp_format) [HAVE_WEBP]: New variable.
(webp_image_p, init_webp_functions, webp_load) [HAVE_WEBP]: New
functions for WebP support.
(image_types) [HAVE_WEBP]: Define WebP format.
(syms_of_image) <Qwebp> [HAVE_WEBP]: New DEFSYM. Add image type Qwebp.
* src/Makefile.in (LIBIMAGE): Add WEBP_LIBS.
* lisp/files.el (auto-mode-alist):
* lisp/image-file.el (image-file-name-extensions):
* lisp/image.el (image-type-header-regexps)
(image-type-file-name-regexps, image-type-auto-detectable): Add WebP
support.
* lisp/term/w32-win.el (dynamic-library-alist): Add the libwebp DLL.
* INSTALL:
* admin/CPP-DEFINES:
* doc/lispref/display.texi (Image Formats, Other Image Types):
* nt/INSTALL: Document WebP support.
* test/lisp/image-tests.el (image-find-image)
(image-type-from-file-name): Expand tests.
* test/src/image-tests.el (image-tests--files): Add WebP.
(image-tests-image-size/webp, image-tests-image-mask-p/webp)
(image-tests-image-metadata/webp): New tests.
* test/data/image/black.webp: New file.
2021-10-22 10:59:01 +02:00
Lars Ingebrigtsen
3b3211c023
Mark def* macros for indentation
...
* lisp/widget.el (define-widget-keywords):
* lisp/vc/pcvs.el (defun-cvs-mode):
* lisp/subr.el (defvar-local):
(defvar-keymap):
* lisp/skeleton.el (define-skeleton):
* lisp/simple.el (define-alternatives):
* lisp/progmodes/gud.el (gdb-script-mode):
* lisp/progmodes/gdb-mi.el (def-gdb-preempt-display-buffer):
(def-gdb-auto-update-trigger):
(def-gdb-auto-update-handler):
(def-gdb-trigger-and-handler):
(def-gdb-thread-buffer-command):
(def-gdb-thread-buffer-simple-command):
(def-gdb-thread-buffer-gud-command):
(def-gdb-set-positive-number):
(def-gdb-memory-format):
(def-gdb-memory-unit):
(def-gdb-memory-show-page):
* lisp/progmodes/compile.el (define-compilation-mode):
* lisp/progmodes/cc-vars.el (defcustom-c-stylevar):
* lisp/obsolete/cl.el (define-setf-expander):
(defsetf):
(define-modify-macro):
* lisp/obsolete/cl-compat.el (defkeyword):
* lisp/net/hmac-def.el (define-hmac-function):
* lisp/international/mule-conf.el (define-iso-single-byte-charset):
* lisp/international/ccl.el (define-ccl-program):
* lisp/image.el (defimage):
* lisp/gnus/gmm-utils.el (defun-gmm):
* lisp/ezimage.el (defezimage):
* lisp/erc/erc.el (define-erc-module):
* lisp/emacs-lisp/shortdoc.el (define-short-documentation-group):
* lisp/emacs-lisp/eieio.el (defclass):
* lisp/emacs-lisp/eieio-compat.el (defgeneric):
(defmethod):
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode):
(define-globalized-minor-mode):
* lisp/emacs-lisp/derived.el (define-derived-mode):
* lisp/emacs-lisp/byte-run.el (defsubst):
(define-obsolete-function-alias):
(define-obsolete-variable-alias):
* lisp/custom.el (defcustom):
(defface):
(defgroup):
(deftheme):
* lisp/cedet/semantic/wisent.el (define-wisent-lexer):
* lisp/cedet/semantic/lex.el (define-lex):
(define-lex-analyzer):
(define-lex-regex-analyzer):
(define-lex-simple-regex-analyzer):
(define-lex-block-analyzer):
(define-lex-keyword-type-analyzer):
(define-lex-sexp-type-analyzer):
(define-lex-regex-type-analyzer):
(define-lex-string-type-analyzer):
(define-lex-block-type-analyzer):
* lisp/cedet/semantic/lex-spp.el
(define-lex-spp-macro-declaration-analyzer):
(define-lex-spp-macro-undeclaration-analyzer):
(define-lex-spp-include-analyzer):
* lisp/cedet/semantic/dep.el
(defcustom-mode-local-semantic-dependency-system-include-path):
* lisp/cedet/semantic/decorate/mode.el
(define-semantic-decoration-style):
* lisp/cedet/mode-local.el (define-child-mode):
(define-overloadable-function):
(define-mode-local-override):
* lisp/calc/calc.el (defcalcmodevar):
(defmath): Explicitly mark all macros that have names that start
with "def" that should indent defunly-like (bug#43329).
2021-10-13 21:52:57 +02:00
Stefan Kangas
63f419f133
; Minor stylistic fixes found by checkdoc
2021-09-16 19:37:07 +02:00
Lars Ingebrigtsen
82c6327555
`image-save' doc string clarification
...
* lisp/image.el (image-save): Clarify what's being saved
(bug#49347).
2021-07-05 14:50:02 +02:00