aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2011-06-26 22:21:48 +0000
committerKatsumi Yamaoka2011-06-26 22:21:48 +0000
commitc146ad850532fa48b932be9c025f8b1b68f116a9 (patch)
tree737706775a39c07114344ccc536006bbc73866a7
parent468d09d44ee9652802712053b0fc259891c431b7 (diff)
downloademacs-c146ad850532fa48b932be9c025f8b1b68f116a9.tar.gz
emacs-c146ad850532fa48b932be9c025f8b1b68f116a9.zip
Merge changes made in Gnus trunk.
gnus-art.el (gnus-article-stop-animations): New function to stop any animations going on at article exit time. gnus-registry.el (gnus-registry-user-format-function-M): Reinstate, since removing it breaks people upgrading. shr.el (shr-put-image): Use the new interface for animating images. (shr-put-image): Animate for 60 seconds.
-rw-r--r--lisp/gnus/ChangeLog16
-rw-r--r--lisp/gnus/gnus-art.el7
-rw-r--r--lisp/gnus/gnus-registry.el3
-rw-r--r--lisp/gnus/gnus-sum.el2
-rw-r--r--lisp/gnus/shr.el8
5 files changed, 23 insertions, 13 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 03420c87a7b..839bd519d49 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,7 +1,13 @@
12011-06-26 Lars Magne Ingebrigtsen <larsi@gnus.org> 12011-06-26 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 2
3 * dgnushack.el: Bind `gnutls-available-p' to `ignore' on XEmacs to 3 * gnus-art.el (gnus-article-stop-animations): New function to stop any
4 avoid compiler warnings. 4 animations going on at article exit time.
5
6 * gnus-registry.el (gnus-registry-user-format-function-M): Reinstate,
7 since removing it breaks people upgrading.
8
9 * shr.el (shr-put-image): Use the new interface for animating images.
10 (shr-put-image): Animate for 60 seconds.
5 11
6 * auth-source.el (with-auth-source-epa-overrides): Fix compilation 12 * auth-source.el (with-auth-source-epa-overrides): Fix compilation
7 error with `find-file-hooks' on Emacs 22. 13 error with `find-file-hooks' on Emacs 22.
@@ -554,12 +560,6 @@
554 * Makefile.in (fail-on-warning): New rule to compile with warnings as 560 * Makefile.in (fail-on-warning): New rule to compile with warnings as
555 errors. 561 errors.
556 562
557 * dgnushack.el (dgnushack-compile-error-on-warn): New function to call
558 dgnushack-compile with error-on-warn enabled, and to signal an error if
559 clean compilation failed.
560 (dgnushack-compile): New argument 'error-on-warn'. If non-nil, compile
561 with `byte-compile-error-on-warn'. Return nil if errors occured.
562
5632011-04-06 Teodor Zlatanov <tzz@lifelogs.com> 5632011-04-06 Teodor Zlatanov <tzz@lifelogs.com>
564 564
565 * gnus-registry.el: Don't use ERT if it's not available. Load it 565 * gnus-registry.el: Don't use ERT if it's not available. Load it
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 3ebb5cc719b..6c3ad01eabf 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -4509,6 +4509,7 @@ commands:
4509 t))) 4509 t)))
4510 (with-current-buffer name 4510 (with-current-buffer name
4511 (set (make-local-variable 'gnus-article-edit-mode) nil) 4511 (set (make-local-variable 'gnus-article-edit-mode) nil)
4512 (gnus-article-stop-animations)
4512 (when gnus-article-mime-handles 4513 (when gnus-article-mime-handles
4513 (mm-destroy-parts gnus-article-mime-handles) 4514 (mm-destroy-parts gnus-article-mime-handles)
4514 (setq gnus-article-mime-handles nil)) 4515 (setq gnus-article-mime-handles nil))
@@ -4533,6 +4534,12 @@ commands:
4533 (gnus-start-date-timer gnus-article-update-date-headers)) 4534 (gnus-start-date-timer gnus-article-update-date-headers))
4534 (current-buffer))))) 4535 (current-buffer)))))
4535 4536
4537(defun gnus-article-stop-animations ()
4538 (dolist (timer (and (boundp 'timer-list)
4539 timer-list))
4540 (when (eq (aref timer 5) 'image-animate-timeout)
4541 (cancel-timer timer))))
4542
4536;; Set article window start at LINE, where LINE is the number of lines 4543;; Set article window start at LINE, where LINE is the number of lines
4537;; from the head of the article. 4544;; from the head of the article.
4538(defun gnus-article-set-window-start (&optional line) 4545(defun gnus-article-set-window-start (&optional line)
diff --git a/lisp/gnus/gnus-registry.el b/lisp/gnus/gnus-registry.el
index a44986e2499..f8ff52f128f 100644
--- a/lisp/gnus/gnus-registry.el
+++ b/lisp/gnus/gnus-registry.el
@@ -914,6 +914,9 @@ Uses `gnus-registry-marks' to find what shortcuts to install."
914(make-obsolete 'gnus-registry-user-format-function-M 914(make-obsolete 'gnus-registry-user-format-function-M
915 'gnus-registry-article-marks-to-chars "24.1") ? 915 'gnus-registry-article-marks-to-chars "24.1") ?
916 916
917(defalias 'gnus-registry-user-format-function-M
918 'gnus-registry-article-marks-to-chars)
919
917;; use like this: 920;; use like this:
918;; (defalias 'gnus-user-format-function-M 'gnus-registry-article-marks-to-chars) 921;; (defalias 'gnus-user-format-function-M 'gnus-registry-article-marks-to-chars)
919(defun gnus-registry-article-marks-to-chars (headers) 922(defun gnus-registry-article-marks-to-chars (headers)
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index f974d386acb..4c059e9332a 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -7298,6 +7298,7 @@ If FORCE (the prefix), also save the .newsrc file(s)."
7298 (run-hooks 'gnus-summary-prepare-exit-hook) 7298 (run-hooks 'gnus-summary-prepare-exit-hook)
7299 (when (gnus-buffer-live-p gnus-article-buffer) 7299 (when (gnus-buffer-live-p gnus-article-buffer)
7300 (with-current-buffer gnus-article-buffer 7300 (with-current-buffer gnus-article-buffer
7301 (gnus-article-stop-animations)
7301 (mm-destroy-parts gnus-article-mime-handles) 7302 (mm-destroy-parts gnus-article-mime-handles)
7302 ;; Set it to nil for safety reason. 7303 ;; Set it to nil for safety reason.
7303 (setq gnus-article-mime-handle-alist nil) 7304 (setq gnus-article-mime-handle-alist nil)
@@ -9579,6 +9580,7 @@ C-u g', show the raw article."
9579 ;; Destroy any MIME parts. 9580 ;; Destroy any MIME parts.
9580 (when (gnus-buffer-live-p gnus-article-buffer) 9581 (when (gnus-buffer-live-p gnus-article-buffer)
9581 (with-current-buffer gnus-article-buffer 9582 (with-current-buffer gnus-article-buffer
9583 (gnus-article-stop-animations)
9582 (mm-destroy-parts gnus-article-mime-handles) 9584 (mm-destroy-parts gnus-article-mime-handles)
9583 ;; Set it to nil for safety reason. 9585 ;; Set it to nil for safety reason.
9584 (setq gnus-article-mime-handle-alist nil) 9586 (setq gnus-article-mime-handle-alist nil)
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el
index 67effc07ee2..f8a85579b4f 100644
--- a/lisp/gnus/shr.el
+++ b/lisp/gnus/shr.el
@@ -526,7 +526,9 @@ the URL of the image to the kill buffer instead."
526 (when (and (> (current-column) 0) 526 (when (and (> (current-column) 0)
527 (> (car (image-size image t)) 400)) 527 (> (car (image-size image t)) 400))
528 (insert "\n")) 528 (insert "\n"))
529 (insert-image image (or alt "*"))) 529 (insert-image image (or alt "*"))
530 (when (image-animated-p image)
531 (image-animate image nil 60)))
530 image) 532 image)
531 (insert alt))) 533 (insert alt)))
532 534
@@ -557,10 +559,6 @@ the URL of the image to the kill buffer instead."
557 :width window-width 559 :width window-width
558 :ascent 100) 560 :ascent 100)
559 image))) 561 image)))
560 (when (and (fboundp 'create-animated-image)
561 (eq (image-type data nil t) 'gif))
562 (setq image (create-animated-image data 'gif t
563 :ascent 100)))
564 image))) 562 image)))
565 563
566;; url-cache-extract autoloads url-cache. 564;; url-cache-extract autoloads url-cache.