1. 27 Sep, 2012 1 commit
    • Stefan Monnier's avatar
      * lisp/image-mode.el: Use lexical-binding. · 83600dc8
      Stefan Monnier authored
      (image-mode-winprops): Use t to stand for the window of a buffer that's
      not displayed.
      * lisp/doc-view.el (doc-view-new-window-function): Handle t in winprops.
      (doc-view-enlarge): Make it a real nop if the size is not changed.
      (doc-view-display): Handle the case where the buffer is not (yet?)
      displayed in any window.
      (doc-view-saved-settings): New var.
      (doc-view-mode): Use it.
      (doc-view-fallback-mode): Set it.
      83600dc8
  2. 10 Jul, 2012 1 commit
    • Stefan Monnier's avatar
      Reduce use of (require 'cl). · f58e0fd5
      Stefan Monnier authored
      * admin/bzrmerge.el: Use cl-lib.
      * leim/quail/hangul.el: Don't require CL.
      * leim/quail/ipa.el: Use cl-lib.
      * vc/smerge-mode.el, vc/pcvs.el, vc/pcvs-util.el, vc/pcvs-info.el:
      * vc/diff-mode.el, vc/cvs-status.el, uniquify.el, scroll-bar.el:
      * register.el, progmodes/sh-script.el, net/gnutls.el, net/dbus.el:
      * msb.el, mpc.el, minibuffer.el, international/ucs-normalize.el:
      * international/quail.el, info-xref.el, imenu.el, image-mode.el:
      * font-lock.el, filesets.el, edmacro.el, doc-view.el, bookmark.el:
      * battery.el, avoid.el, abbrev.el: Use cl-lib.
      * vc/pcvs-parse.el, vc/pcvs-defs.el, vc/log-view.el, vc/log-edit.el:
      * vc/diff.el, simple.el, pcomplete.el, lpr.el, comint.el, loadhist.el:
      * jit-lock.el, international/iso-ascii.el, info.el, frame.el, bs.el:
      * emulation/crisp.el, electric.el, dired.el, cus-dep.el, composite.el:
      * calculator.el, autorevert.el, apropos.el: Don't require CL.
      * emacs-bytecomp.el (byte-recompile-directory, display-call-tree)
      (byte-compile-unfold-bcf, byte-compile-check-variable):
      * emacs-byte-opt.el (byte-compile-trueconstp)
      (byte-compile-nilconstp):
      * emacs-autoload.el (make-autoload): Use pcase.
      * face-remap.el (text-scale-adjust): Simplify pcase patterns.
      f58e0fd5
  3. 29 May, 2012 1 commit
  4. 14 May, 2012 2 commits
    • Wolfgang Jenkner's avatar
      * lisp/image-mode.el: Fit to width/height for rotated images. · 2d21d7f6
      Wolfgang Jenkner authored
      (image-transform-scale, image-transform-right-angle-fudge): New vars.
      (image-transform-width, image-transform-fit-width): New functions.
      (image-transform-properties): Use them.
      (image-transform-check-size): New function.
      (image-toggle-display-image): Use it (for testing).
      (image-transform-set-rotation): Reduce angle mod 360.
      Delete obsolete comment.
      
      Fixes: debbugs:11431
      2d21d7f6
    • Wolfgang Jenkner's avatar
      * lisp/image-mode.el: Fix scaling. · 7102e6d0
      Wolfgang Jenkner authored
      (image-transform-resize): Doc fix.
      (image-transform-properties): Default scale is 1 and height should
      be an integer.
      
      Fixes: debbugs:11399
      7102e6d0
  5. 08 Feb, 2012 2 commits
    • Glenn Morris's avatar
      Comment out the unimplemented image-transform-mode · b4ac6e8c
      Glenn Morris authored
      * lisp/image-mode.el (image-transform-minor-mode-map, image-transform-mode):
      Comment out (does nothing).
      
      * etc/NEWS: Related edits.
      
      * lisp/image.el: Comment.
      b4ac6e8c
    • Glenn Morris's avatar
      Minor-mode doc fixes for ARG behavior · e1ac4066
      Glenn Morris authored
      * lisp/completion.el (dynamic-completion-mode):
      * lisp/dirtrack.el (dirtrack-debug-mode):
      * lisp/electric.el (electric-layout-mode):
      * lisp/epa-mail.el (epa-mail-mode, epa-global-mail-mode):
      * lisp/face-remap.el (text-scale-mode, buffer-face-mode):
      * lisp/iimage.el (iimage-mode):
      * lisp/image-mode.el (image-transform-mode):
      * lisp/minibuffer.el (completion-in-region-mode):
      * lisp/scroll-lock.el (scroll-lock-mode):
      * lisp/simple.el (next-error-follow-minor-mode):
      * lisp/tar-mode.el (tar-subfile-mode):
      * lisp/tooltip.el (tooltip-mode):
      * lisp/vcursor.el (vcursor-use-vcursor-map):
      * lisp/wid-browse.el (widget-minor-mode):
      * lisp/emulation/tpu-edt.el (tpu-edt-mode):
      * lisp/emulation/tpu-extras.el (tpu-cursor-free-mode):
      * lisp/international/iso-ascii.el (iso-ascii-mode):
      * lisp/language/thai-util.el (thai-word-mode):
      * lisp/mail/supercite.el (sc-minor-mode):
      * lisp/net/goto-addr.el (goto-address-mode):
      * lisp/net/rcirc.el (rcirc-multiline-minor-mode, rcirc-track-minor-mode):
      * lisp/progmodes/cwarn.el (cwarn-mode):
      * lisp/progmodes/flymake.el (flymake-mode):
      * lisp/progmodes/glasses.el (glasses-mode):
      * lisp/progmodes/hideshow.el (hs-minor-mode):
      * lisp/progmodes/pascal.el (pascal-outline-mode):
      * lisp/textmodes/enriched.el (enriched-mode):
      * lisp/vc/smerge-mode.el (smerge-mode):
      Doc fixes (minor mode argument).
      
      * etc/NEWS: Related markup.
      e1ac4066
  6. 03 Feb, 2012 1 commit
    • Glenn Morris's avatar
      Document animated image API · eea14f31
      Glenn Morris authored
      * doc/lispref/display.texi (GIF Images): Mention animation.
      Remove commented-out old example of animation.
      (Animated Images): New subsection.
      * doc/lispref/elisp.texi (Top):
      * doc/lispref/vol1.texi (Top):
      * doc/lispref/vol2.texi (Top): Add Animated Images menu entry.
      
      * lisp/image-mode.el (image-animate-loop, image-toggle-animation): Doc fixes.
      
      * lisp/image.el (image-animated-p): Doc fix.  Use image-animated-types.
      (image-animate-timeout): Doc fix.
      
      * etc/NEWS: Markup.
      eea14f31
  7. 02 Feb, 2012 1 commit
  8. 11 Jan, 2012 1 commit
  9. 05 Jan, 2012 1 commit
  10. 14 Nov, 2011 1 commit
  11. 19 Oct, 2011 1 commit
    • Chong Yidong's avatar
      Fix minor mode docstrings for the new meaning of a nil ARG. · 06e21633
      Chong Yidong authored
      * abbrev.el (abbrev-mode):
      * allout.el (allout-mode):
      * autoinsert.el (auto-insert-mode):
      * autoarg.el (autoarg-mode, autoarg-kp-mode):
      * autorevert.el (auto-revert-mode, auto-revert-tail-mode)
      (global-auto-revert-mode):
      * battery.el (display-battery-mode):
      * composite.el (global-auto-composition-mode)
      (auto-composition-mode):
      * delsel.el (delete-selection-mode):
      * desktop.el (desktop-save-mode):
      * dired-x.el (dired-omit-mode):
      * dirtrack.el (dirtrack-mode):
      * doc-view.el (doc-view-minor-mode):
      * double.el (double-mode):
      * electric.el (electric-indent-mode, electric-pair-mode):
      * emacs-lock.el (emacs-lock-mode):
      * epa-hook.el (auto-encryption-mode):
      * follow.el (follow-mode):
      * font-core.el (font-lock-mode):
      * frame.el (auto-raise-mode, auto-lower-mode, blink-cursor-mode):
      * help.el (temp-buffer-resize-mode):
      * hilit-chg.el (highlight-changes-mode)
      (highlight-changes-visible-mode):
      * hi-lock.el (hi-lock-mode):
      * hl-line.el (hl-line-mode, global-hl-line-mode):
      * icomplete.el (icomplete-mode):
      * ido.el (ido-everywhere):
      * image-file.el (auto-image-file-mode):
      * image-mode.el (image-minor-mode):
      * iswitchb.el (iswitchb-mode):
      * jka-cmpr-hook.el (auto-compression-mode):
      * linum.el (linum-mode):
      * longlines.el (longlines-mode):
      * master.el (master-mode):
      * mb-depth.el (minibuffer-depth-indicate-mode):
      * menu-bar.el (menu-bar-mode):
      * minibuf-eldef.el (minibuffer-electric-default-mode):
      * mouse-sel.el (mouse-sel-mode):
      * msb.el (msb-mode):
      * mwheel.el (mouse-wheel-mode):
      * outline.el (outline-minor-mode):
      * paren.el (show-paren-mode):
      * recentf.el (recentf-mode):
      * reveal.el (reveal-mode, global-reveal-mode):
      * rfn-eshadow.el (file-name-shadow-mode):
      * ruler-mode.el (ruler-mode):
      * savehist.el (savehist-mode):
      * scroll-all.el (scroll-all-mode):
      * scroll-bar.el (scroll-bar-mode):
      * server.el (server-mode):
      * shell.el (shell-dirtrack-mode):
      * simple.el (auto-fill-mode, transient-mark-mode)
      (visual-line-mode, overwrite-mode, binary-overwrite-mode)
      (line-number-mode, column-number-mode, size-indication-mode)
      (auto-save-mode, normal-erase-is-backspace-mode, visible-mode):
      * strokes.el (strokes-mode):
      * time.el (display-time-mode):
      * t-mouse.el (gpm-mouse-mode):
      * tool-bar.el (tool-bar-mode):
      * tooltip.el (tooltip-mode):
      * type-break.el (type-break-mode-line-message-mode)
      (type-break-query-mode):
      * view.el (view-mode):
      * whitespace.el (whitespace-mode, whitespace-newline-mode)
      (global-whitespace-mode, global-whitespace-newline-mode):
      * xt-mouse.el (xterm-mouse-mode): Doc fix.
      
      * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Fix
      autogenerated docstring.
      06e21633
  12. 19 Sep, 2011 1 commit
  13. 11 Sep, 2011 1 commit
  14. 14 Jul, 2011 1 commit
  15. 07 Jun, 2011 1 commit
    • Chong Yidong's avatar
      Some changes and re-organization for animated gif support. · 18af70d0
      Chong Yidong authored
      * lisp/image.el (image-animate-max-time): Moved to image-mode.el.
      (create-animated-image): Remove unnecessary function.
      (image-animate): Rename from image-animate-start.  New arg.
      (image-animate-stop): Removed; just use image-animate-timer.
      (image-animate-timer): Use car-safe.
      (image-animate-timeout): Rename argument.
      
      * lisp/image-mode.el (image-toggle-animation): New command.
      (image-mode-map): Bind it to RET.
      (image-mode): Update message.
      (image-toggle-display-image): Avoid a spurious cache flush.
      (image-transform-rotation): Doc fix.
      (image-transform-properties): Return quickly in the normal case.
      (image-animate-loop): Rename from image-animate-max-time.
      18af70d0
  16. 29 May, 2011 1 commit
    • Chong Yidong's avatar
      Fix animated gifs (Bug#6981). · e8cbec34
      Chong Yidong authored
      * lisp/image-mode.el (image-toggle-display-image): Ensure that the
      image spec passed to the animate timer is the same object as in
      the the buffer's display property.
      (image-transform-properties): Doc fix.
      
      * lisp/image.el (image-animate-max-time): Default to nil.
      
      * lisp/image.el (image-animate-max-time): Allow nil and t values.
      Default to nil.
      (create-animated-image): Doc fix.
      (image-animate-start): Remove second arg; just use
      image-animate-max-time.
      (image-animate-timeout): Doc fix.  Args changed.
      e8cbec34
  17. 21 May, 2011 1 commit
  18. 13 Apr, 2011 1 commit
  19. 09 Apr, 2011 2 commits
    • Chong Yidong's avatar
      Cleanups to the ImageMagick code and docstrings. · a32d4040
      Chong Yidong authored
      * lisp/image-mode.el (image-toggle-display-image): Signal an error if
      not in Image mode.
      (image-transform-mode, image-transform-resize)
      (image-transform-set-rotation): Doc fix.
      (image-transform-set-resize): Deleted.
      (image-transform-set-scale, image-transform-fit-to-height)
      (image-transform-fit-to-width): Handle image-toggle-display-image
      and image-transform-resize directly.
      
      * src/image.c (Fimagemagick_types): Doc fix, and comment cleanup.
      a32d4040
    • Chong Yidong's avatar
      Image mode doc fixes (Bug#8098). · 71d73c9c
      Chong Yidong authored
      * lisp/image-mode.el (image-type, image-mode-map, image-minor-mode-map)
      (image-toggle-display): Doc fixes.
      71d73c9c
  20. 18 Feb, 2011 2 commits
  21. 01 Feb, 2011 1 commit
    • Sam Steingold's avatar
      * lisp/simple.el (special-mode-map): Bind "h" to `describe-mode'; · abef340a
      Sam Steingold authored
      bind "z" to `kill-this-buffer'.
      (completion-list-mode-map): Bind "z" to `kill-this-buffer'.
      * lisp/apropos.el (apropos-mode-map): Inherit from `special-mode-map'.
      (apropos-mode): Inherit from `special-mode'.
      * lisp/arc-mode.el (archive-mode-map): Inherit from `special-mode-map'.
      * lisp/bookmark.el (bookmark-bmenu-mode): Define using
      `define-derived-mode' inheriting from `special-mode'.
      * lisp/dired.el (dired-mode-map): Inherit from `special-mode-map'.
      * lisp/image-mode.el (image-mode-map): Ditto.
      * lisp/replace.el (occur-mode): Define using
      `define-derived-mode' inheriting from `special-mode'.
      * lisp/tar-mode.el (tar-mode): Inherit from `special-mode'.
      * lisp/calendar/diary-lib.el (diary-fancy-display-mode):
      Inherit from `special-mode-map'.
      * lisp/emacs-lisp/ert.el (ert-simple-view-mode, ert-results-mode):
      Inherit from `special-mode'.
      * lisp/emacs-lisp/package.el (package-menu-mode-map): Copy from
      `special-mode-map'.
      (package-menu-mode): Define using `define-derived-mode'
      inheriting from `special-mode'.
      * erc/erc-list.el (erc-list-menu-mode): Inherit from `special-mode'.
      * lisp/net/xesam.el (xesam-mode): Inherit from `special-mode'.
      (xesam-mode-map): Define separately.
      * lisp/play/solitaire.el (solitaire-mode): Inherit from `special-mode'.
      * lisp/progmodes/compile.el (compilation-minor-mode-map)
      (compilation-mode-map): Inherit from `special-mode-map'.
      * lisp/vc/diff-mode.el (diff-mode-shared-map):
      Inherit from `special-mode-map'.
      * lisp/vc/log-view.el (log-view-mode-map): Add a comment.
      abef340a
  22. 28 Jan, 2011 1 commit
  23. 25 Jan, 2011 1 commit
  24. 15 Jan, 2011 1 commit
  25. 02 Jan, 2011 1 commit
  26. 24 Sep, 2010 1 commit
    • Glenn Morris's avatar
      Move some autoloaded auto-mode-alist entries to files.el. · 5e339ee2
      Glenn Morris authored
      * image-mode.el, progmodes/compile.el, progmodes/gud.el:
      * progmodes/mixal-mode.el, textmodes/bibtex-style.el:
      * textmodes/css-mode.el, textmodes/dns-mode.el:
      Move autoloaded auto-mode-alist entries to files.el.
      * files.el (auto-mode-alist): Move entries here.
      5e339ee2
  27. 29 Aug, 2010 1 commit
  28. 17 Jul, 2010 2 commits
  29. 14 Jul, 2010 1 commit
    • Karl Fogel's avatar
      Preparation for setting bookmarks in Gnus article buffers (Bug#5975). · e44fa724
      Karl Fogel authored
      * lisp/bookmark.el (bookmark-make-record-default): Allow unneeded
        information to be omitted from the record.
      
      Adjust declarations and calls:
      
      * lisp/info.el (bookmark-make-record-default): Adjust declaration.
        (Info-bookmark-make-record): Adjust call.
      
      * lisp/woman.el (bookmark-make-record-default): Adjust declaration.
        (woman-bookmark-make-record): Adjust call.
      
      * lisp/man.el (bookmark-make-record-default): Adjust declaration.
        (Man-bookmark-make-record): Adjust call.
      
      * lisp/image-mode.el (bookmark-make-record-default): Adjust declaration.
      
      * lisp/doc-view.el (bookmark-make-record-default): Adjust declaration.
      
      * lisp/gnus/gnus-sum.el (bookmark-make-record-default): Adjust declaration.
      e44fa724
  30. 10 Jul, 2010 1 commit
  31. 27 Jun, 2010 1 commit
  32. 26 Jun, 2010 1 commit
  33. 14 Jun, 2010 1 commit
  34. 25 May, 2010 1 commit
  35. 22 May, 2010 1 commit
    • Chong Yidong's avatar
      Rename image-refresh to image-flush. · 110683ad
      Chong Yidong authored
      * image.c (Fimage_flush): Rename from image-refresh.
      
      * image.el (image-refresh): Define as an alias for image-flush.
      
      * image-mode.el (image-toggle-display-image): Caller changed.
      
      * display.texi (Image Cache): Update documentation about image
      caching.
      110683ad