Merge from origin/emacs-28

c34d06e3d7 * configure.ac (LIBSECCOMP): Bump minimum version for facc...
335a5a9e0f Make the `f' command work in image-mode again
This commit is contained in:
Stefan Kangas 2022-01-25 06:31:03 +01:00
commit ff63787ea1
2 changed files with 4 additions and 3 deletions

View file

@ -4651,7 +4651,7 @@ AC_CHECK_HEADERS(
]])])
AC_SUBST([HAVE_SECCOMP])
EMACS_CHECK_MODULES([LIBSECCOMP], [libseccomp >= 2.4.0])
EMACS_CHECK_MODULES([LIBSECCOMP], [libseccomp >= 2.5.2])
AC_SUBST([HAVE_LIBSECCOMP])
AC_SUBST([LIBSECCOMP_LIBS])
AC_SUBST([LIBSECCOMP_CFLAGS])

View file

@ -894,8 +894,9 @@ Frames are indexed from 0. Optional argument NOCHECK non-nil means
do not check N is within the range of frames present in the image."
(unless nocheck
(if (< n 0) (setq n 0)
(setq n (min n (1- (car (plist-get (cdr image)
:animate-multi-frame-data)))))))
(setq n (min n (1- (car (or (plist-get (cdr image)
:animate-multi-frame-data)
(image-multi-frame-p image))))))))
(plist-put (cdr image) :index n)
(force-window-update (plist-get (cdr image) :animate-buffer)))