* lisp/org/org.el (dnd-open-local-file):
* lisp/dired.el (tool-bar--image-expression):
* lisp/term/android-win.el (x-handle-args): Declare.
* lisp/w32-fns.el (w32-system-shells):
(w32-allow-system-shell):
* lisp/net/shr.el (image-scaling-factor):
* lisp/net/eww.el (image-scaling-factor):
* lisp/image.el (image-scaling-factor): Defvar.
(image-recompute-map-p): Move to before the first use.
Reported by Angelo Graziosi <angelo.g0@libero.it>.
(cherry picked from commit
7eb8596ff5f1964f91664a6b7cac3199a5af5ba7)
(declare-function Man-getpage-in-background "man" (topic))
(defvar Man-support-remote-systems) ; from man.el
(defvar manual-program) ; from man.el
+(declare-function tool-bar--image-expression "tool-bar" (icon))
(defun dired-do-man ()
"In Dired, run `man' on this file."
:type 'boolean
:version "27.1")
+(defcustom image-recompute-map-p t
+ "Recompute image map when scaling, rotating, or flipping an image."
+ :type 'boolean
+ :version "30.1")
+
(define-error 'unknown-image-type "Unknown image type")
(defvar-keymap image-slice-map
(declare (gv-setter image--set-property))
(plist-get (cdr image) property))
+(defvar image-scaling-factor)
(defun image-compute-scaling-factor (&optional scaling)
"Compute the scaling factor based on SCALING.
If a number, use that. If it's `auto', compute the factor.
;;; Map transformation
-(defcustom image-recompute-map-p t
- "Recompute image map when scaling, rotating, or flipping an image."
- :type 'boolean
- :version "30.1")
-
(defsubst image--compute-rotation (image)
"Return the current rotation of IMAGE, or 0 if no rotation.
Also return nil if rotation is not a multiples of 90 degrees (0, 90,
(declare-function imagep "image.c")
(defvar text-scale-mode)
(defvar text-scale-mode-amount)
+(defvar image-scaling-factor)
(defun eww--rescale-images ()
(let ((scaling (if text-scale-mode
(+ 1 (* text-scale-mode-amount 0.1))
nil
'imagemagick))
+(defvar image-scaling-factor)
(defun shr-rescale-image (data content-type width height
&optional max-width max-height)
"Rescale DATA, if too big, to fit the current buffer.
(put 'org--dnd-multi-local-file-handler 'dnd-multiple-handler t)
+(declare-function dnd-open-local-file "dnd" (uri action))
+
(defun org--dnd-local-file-handler (url action &optional separator)
"Handle file URL as per ACTION.
SEPARATOR is the string to insert after each link. It may be nil
(add-to-list 'display-format-alist '(".*" . android))
(declare-function android-get-connection "androidfns.c")
+(declare-function x-handle-args "common-win" (args))
;; Window system initialization. This is extremely simple because all
;; initialization is done in android_term_init.
(and (fboundp 'w32-using-nt) (w32-using-nt) "cmd.exe")
"command.com"))
+(defvar w32-system-shells) ;; defined in w32-vars.el
+(defvar w32-allow-system-shell) ;; defined in w32-vars.el
(defun w32-system-shell-p (shell-name)
(and shell-name
(member (downcase (file-name-nondirectory shell-name))