Commit graph

142 commits

Author SHA1 Message Date
Chong Yidong
2f224f0b1a * image-mode.el (image-display-size): Doc fix (Bug#7820). 2011-01-28 14:13:01 -05:00
Glenn Morris
73b0cd5003 Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
Glenn Morris
0d9f702fd0 Nuke arch-tags. 2011-01-15 15:16:57 -08:00
Stefan Monnier
77ab81d054 Merge from emacs-23 2011-01-14 12:18:41 -05:00
Glenn Morris
5df4f04cd3 Add 2011 to FSF/AIST copyright years. 2011-01-02 15:50:46 -08:00
Glenn Morris
5e339ee2a3 Move some autoloaded auto-mode-alist entries to files.el.
* 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.
2010-09-23 20:06:33 -07:00
Chong Yidong
bd78fa1d54 Add "Package:" file headers to denote built-in packages. 2010-08-29 12:17:13 -04:00
Joakim Verona
a8101f663e merge from trunk 2010-08-17 23:19:11 +02:00
Juanma Barranquero
0ed082fedf Merge from emacs-23 2010-07-27 04:10:05 +02:00
Shyam Karanatt
c9088194ea Fix size calculation for sliced images in image-mode (Bug#6639).
* lisp/image-mode.el (image-display-size): New function.
(image-forward-hscroll, image-next-line, image-eol, image-eob)
(image-mode-fit-frame): Use it (Bug#6639).
2010-07-17 17:51:04 -04:00
Thierry Volpiatto
f12492c863 Do not set bookmark context for images (Bug#6650).
* lisp/image-mode.el (image-bookmark-make-record): Do not set context
in an image (Bug#6650).
2010-07-17 17:35:19 -04:00
Karl Fogel
e44fa724e4 Preparation for setting bookmarks in Gnus article buffers (Bug#5975).
* 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.
2010-07-14 11:57:54 -04:00
Joakim Verona
fe72c5b465 some more docs and polish 2010-07-10 22:35:42 +02:00
Joakim Verona
3a50be5108 support for fit-width 2010-06-27 02:18:55 +02:00
Joakim Verona
c7f514b5f1 image-mode changes. removed the imagemagick specific :geometry and :crop interface that wasnt very good. 2010-06-26 23:17:02 +02:00
Stefan Monnier
d8b0cdddb3 * lisp/image-mode.el (image-mode-map): Remap left-char and right-char. 2010-06-13 23:19:46 -04:00
Juri Linkov
0fb1193d6c * image-mode.el (image-mode): Add image-after-revert-hook to after-revert-hook.
(image-after-revert-hook): New function.  (Bug#5669)
2010-05-25 19:03:53 +03:00
Chong Yidong
110683addc Rename image-refresh to image-flush.
* 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.
2010-05-22 12:48:01 -04:00
Stefan Monnier
0235128c15 Merge from emacs-23 2010-05-08 14:47:07 -04:00
Juri Linkov
316d12fb81 Fix typo in docstring. 2010-04-23 19:35:57 +03:00
Juri Linkov
3212974649 Bind C-v' to scroll-up-command' and M-v' to scroll-down-command'.
http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00403.html

* window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
`scroll-up-command' and `M-v' from `scroll-down' to
`scroll-down-command'.

* tutorial.el (tutorial--default-keys): Rebind `C-v' to
`scroll-up-command' and `M-v' to `scroll-down-command'.

* emulation/cua-rect.el (cua--init-rectangles):
* forms.el (forms--change-commands):
* image-mode.el (image-mode-map):
Remap scroll-down-command and scroll-up-command
in addition to scroll-down and scroll-up.
2010-04-14 03:33:32 +03:00
Stefan Monnier
b41460aede Merge pending branch 2010-03-10 00:18:51 -05:00
Kim F. Storm
0608aa457f Animated image API.
http://lists.gnu.org/archive/html/emacs-devel/2010-03/msg00211.html

* image.el (image-animate-max-time): New defcustom.
(image-animated-types): New defconst.
(create-animated-image, image-animate-timer)
(image-animate-start, image-animate-stop, image-animate-timeout)
(image-animated-p): New functions.

* image-mode.el (image-toggle-display-image):
Replace `create-image' with `create-animated-image'.
2010-03-07 21:02:20 +02:00
Juri Linkov
0d17c4b987 * doc-view.el (doc-view-mode):
* image-mode.el (image-mode): Put property mode-class=special.
(Bug#4896)
2010-02-06 00:36:20 +02:00
Glenn Morris
114f9c9679 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
Juri Linkov
9b9debd1fb Change roles of modes and functions in image-mode.el (Bug#5062).
* image-mode.el: Replace `image-mode-maybe' with `image-mode'
in `auto-mode-alist'.
(image-mode-previous-major-mode): New variable.
(image-minor-mode-map): Rename from `image-mode-text-map'.
(image-mode): Move graceful error-handling code from
`image-minor-mode' to here.  On errors call `image-mode-as-text'.
(image-minor-mode): Remove all image-handling code.
Replace `image-mode-text-map' with `image-minor-mode-map'.
Check for `image-type' in mode-line format string.
(image-mode-maybe): Make obsolete with an alias to `image-mode'.
(image-mode-as-text): New function with most code from
`image-mode-maybe'.
(image-toggle-display-text): Move code that removes image
properties from `image-toggle-display' to here.
(image-toggle-display-image): New function with code that adds
image properties copied from `image-toggle-display'.
(image-toggle-display): Remove most code with leaving only code
that toggles between `image-mode-as-text' and `image-mode'.
2009-12-04 21:43:07 +00:00
Stefan Monnier
26224fafa0 (image-minor-mode): Exit more gracefully when the image
cannot be displayed (e.g. when doing C-x C-f some-new-file.svg RET).
2009-11-28 20:45:19 +00:00
Dan Nicolaescu
6bdad9ae02 * term/x-win.el (x-gtk-stock-map):
* progmodes/vera-mode.el (auto-mode-alist):
* progmodes/inf-lisp.el (inferior-lisp-filter-regexp)
(inferior-lisp-program, inferior-lisp-load-command):
* progmodes/hideshow.el (hs-special-modes-alist):
* progmodes/gud.el (same-window-regexps):
* progmodes/grep.el (grep-program, find-program, xargs-program):
* net/telnet.el (same-window-regexps):
* net/rlogin.el (same-window-regexps):
* language/ethiopic.el (font-ccl-encoder-alist):
* vc-sccs.el (vc-sccs-master-templates):
* vc-rcs.el (vc-rcs-master-templates):
* subr.el (cl-assertion-failed):
* simple.el (next-error-overlay-arrow-position):
* lpr.el (lpr-command):
* locate.el (locate-ls-subdir-switches):
* info.el (same-window-regexps, info)
(Info-goto-emacs-command-node, Info-goto-emacs-key-command-node):
* image-mode.el (image-mode, auto-mode-alist):
* hippie-exp.el (hippie-expand-ignore-buffers):
* format.el (format-alist):
* find-dired.el (find-ls-subdir-switches, find-grep-options)
(find-name-arg):
* facemenu.el (facemenu-keybindings):
* dired.el (dired-listing-switches, dired-chown-program):
* diff.el (diff-switches, diff-command):
* cus-edit.el (same-window-regexps):
* bindings.el (mode-line-mule-info)
(mode-line-buffer-identification): Purecopy strings.
2009-11-11 05:49:09 +00:00
Juanma Barranquero
12a3c28c78 * image-mode.el (image-toggle-display):
* emacs-lisp/elp.el (elp-instrument-function):
* emacs-lisp/advice.el (ad-make-advised-definition):
* emacs-lisp/easy-mmode.el (define-minor-mode):
* net/browse-url.el (browse-url-maybe-new-window):
* progmodes/sh-script.el (sh-learn-buffer-indent):
  Pass new argument 'any to `called-interactively-p'.
2009-10-02 00:02:02 +00:00
Juri Linkov
6c34bcde1e (image-toggle-display): Let-bind `buffer-file-truename' to nil around the
call to `add-text-properties' to prevent directory time modification by
lock_file.  Replace `set-buffer-modified-p' with
`restore-buffer-modified-p'.  (Bug#2295)
2009-02-12 21:49:29 +00:00
Andreas Schwab
d2e9b790b7 (image-mode): Always set image-type.
(image-minor-mode): Likewise.
2009-02-07 15:29:11 +00:00
Juri Linkov
97666703e9 (image-mode): Use image-get-display-property' instead of get-text-property'.
(image-minor-mode): Sync the logic with `image-mode' including the
activation of the image display by default.
2009-02-05 23:59:52 +00:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Miles Bader
9850eff524 Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1398
2008-09-02 05:35:54 +00:00
Chong Yidong
ad5a649e8f (image-mode): Fix 2008-07-19 change. 2008-08-29 05:14:17 +00:00
Chong Yidong
698ab06b16 (image-mode): Set image-mode-text-map when image cannot be displayed. 2008-07-30 13:38:28 +00:00
Chong Yidong
bb43424bfb Set image-mode-text-map when image cannot be displayed. 2008-07-30 13:35:50 +00:00
Chong Yidong
bd9a66dd09 (image-minor-mode): Set up winprops. 2008-07-25 05:44:01 +00:00
Glenn Morris
c123f7fe96 (bookmark-make-record-default): Fix declaration. 2008-06-26 07:19:01 +00:00
Stefan Monnier
43f8b27568 * bookmark.el (bookmark-alist): Allow the 2 slightly different formats
used until now in bookmark.el's code.
(bookmark-get-bookmark): Accept bookmark names or bookmark records.
(bookmark-get-bookmark-record): Allow the 2 slightly different formats
used until now in bookmark.el's code.
(bookmark-set-filename): Remove special code, moved to its only caller.
(bookmark-store): Use the newer format.
(bookmark-make-record-default): Add arg `point-only'.
Rename from bookmark-make-record-for-text-file.
(bookmark--jump-via): New function.
(bookmark-jump, bookmark-jump-other-window, bookmark-bmenu-2-window)
(bookmark-bmenu-other-window, bookmark-bmenu-switch-other-window):
Use it.
(bookmark-jump-noselect, bookmark-default-handler):
Don't return an alist, instead return the data implicitly by changing
current buffer and point.  Signal an error if the file doesn't exist.
* info.el (Info-bookmark-make-record):
Use bookmark-make-record-default.
(Info-bookmark-jump): Use bookmark-default-handler.
* image-mode.el (image-bookmark-make-record):
Use bookmark-make-record-default.
(image-bookmark-jump): Use bookmark-default-handler.
* doc-view.el (doc-view-bookmark-make-record):
Use bookmark-make-record-default.
(doc-view-bookmark-jump): Use bookmark-default-handler.
2008-06-25 16:51:33 +00:00
Glenn Morris
aa360da10d Add some compiler declarations, for builds without X. 2008-06-12 03:56:20 +00:00
Stefan Monnier
42c27c2a24 (image-mode-map): Add doc-view-inspired bindings. 2008-06-04 05:58:33 +00:00
Stefan Monnier
d2d7e96cd8 * image-mode.el (image-mode-map): Suppress key map and bind `q'.
* doc-view.el (doc-view-mode-map): Inherit from image-mode-map.
2008-06-03 07:42:03 +00:00
Chong Yidong
b81f0babbd (image-mode-winprops): Add argument CLEANUP to prune
image-mode-winprops-alist, preventing it from growing indefinitely.
(image-mode-reapply-winprops): Use it.
2008-05-22 21:27:42 +00:00
Glenn Morris
eb3fa2cfcf Switch to recommended form of GPLv3 permissions notice. 2008-05-06 08:06:51 +00:00
Stefan Monnier
bd1d6a63fc (image-mode-fit-frame): New command. 2008-04-03 02:19:23 +00:00
Stefan Monnier
c313b5febc (image-mode-reapply-winprops): Fix last change. 2008-03-27 14:59:30 +00:00
Stefan Monnier
6d401b4e2e (image-mode-reapply-winprops): Simplify now that
window-configuration-change-hook works buffer-locally.
2008-03-26 15:49:03 +00:00
Tassilo Horn
05d42c2197 (image-bookmark-make-record): Delete obsolete
second arg.
2008-03-07 15:59:58 +00:00
Karl Fogel
e0385bf41a Change a return type, for greater extensibility. See
http://lists.gnu.org/archive/html/emacs-devel/2007-12/msg01077.html
and its thread for discussion leading to this change.

* emacs-cvs/lisp/bookmark.el:
(bookmark-jump-noselect): Return an alist instead of a dotted pair.
(bookmark-jump, bookmark-jump-other-window, bookmark-insert)
(bookmark-bmenu-2-window, bookmark-bmenu-other-window)
(bookmark-bmenu-switch-other-window): Adjust accordingly.
(bookmark-make-cell-function): Adjust documentation accordingly.

* emacs-cvs/lisp/image-mode.el
(image-bookmark-jump): Adjust return type accordingly; document.

* emacs-cvs/lisp/doc-view.el
(doc-view-bookmark-jump): Adjust return type accordingly; document.
2008-03-07 05:44:37 +00:00