emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r117901: * image-mode.el: Move defvars earlier to av


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] trunk r117901: * image-mode.el: Move defvars earlier to avoid a byte-compilation warning.
Date: Thu, 18 Sep 2014 18:38:08 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 117901
revision-id: address@hidden
parent: address@hidden
committer: Lars Magne Ingebrigtsen <address@hidden>
branch nick: trunk
timestamp: Thu 2014-09-18 20:38:05 +0200
message:
  * image-mode.el: Move defvars earlier to avoid a byte-compilation warning.
modified:
  lisp/ChangeLog                 changelog-20091113204419-o5vbwnq5f7feedwu-1432
  lisp/image-mode.el             
imagemode.el-20091113204419-o5vbwnq5f7feedwu-3391
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2014-09-18 18:34:59 +0000
+++ b/lisp/ChangeLog    2014-09-18 18:38:05 +0000
@@ -4,6 +4,8 @@
        `fit-width' or a `fit-height', don't limit the size of the image
        to the window size, because that doesn't preserve the aspect
        ratio.
+       * image-mode.el: Move defvars earlier to avoid a byte-compilation
+       warning.
 
 2014-09-17  Reuben Thomas  <address@hidden>
 

=== modified file 'lisp/image-mode.el'
--- a/lisp/image-mode.el        2014-09-18 18:34:59 +0000
+++ b/lisp/image-mode.el        2014-09-18 18:38:05 +0000
@@ -49,6 +49,26 @@
   "Special hook run when image data is requested in a new window.
 It is called with one argument, the initial WINPROPS.")
 
+;; FIXME this doesn't seem mature yet. Document in manual when it is.
+(defvar image-transform-resize nil
+  "The image resize operation.
+Its value should be one of the following:
+ - nil, meaning no resizing.
+ - `fit-height', meaning to fit the image to the window height.
+ - `fit-width', meaning to fit the image to the window width.
+ - A number, which is a scale factor (the default size is 1).")
+
+(defvar image-transform-scale 1.0
+  "The scale factor of the image being displayed.")
+
+(defvar image-transform-rotation 0.0
+  "Rotation angle for the image in the current Image mode buffer.")
+
+(defvar image-transform-right-angle-fudge 0.0001
+  "Snap distance to a multiple of a right angle.
+There's no deep theory behind the default value, it should just
+be somewhat larger than ImageMagick's MagickEpsilon.")
+
 (defun image-mode-winprops (&optional window cleanup)
   "Return winprops of WINDOW.
 A winprops object has the shape (WINDOW . ALIST).
@@ -905,26 +925,6 @@
 ;;   nil "image-transform" image-transform-minor-mode-map)
 
 
-;; FIXME this doesn't seem mature yet. Document in manual when it is.
-(defvar image-transform-resize nil
-  "The image resize operation.
-Its value should be one of the following:
- - nil, meaning no resizing.
- - `fit-height', meaning to fit the image to the window height.
- - `fit-width', meaning to fit the image to the window width.
- - A number, which is a scale factor (the default size is 1).")
-
-(defvar image-transform-scale 1.0
-  "The scale factor of the image being displayed.")
-
-(defvar image-transform-rotation 0.0
-  "Rotation angle for the image in the current Image mode buffer.")
-
-(defvar image-transform-right-angle-fudge 0.0001
-  "Snap distance to a multiple of a right angle.
-There's no deep theory behind the default value, it should just
-be somewhat larger than ImageMagick's MagickEpsilon.")
-
 (defsubst image-transform-width (width height)
   "Return the bounding box width of a rotated WIDTH x HEIGHT rectangle.
 The rotation angle is the value of `image-transform-rotation' in degrees."


reply via email to

[Prev in Thread] Current Thread [Next in Thread]