aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2008-03-10 02:39:57 +0000
committerMiles Bader2008-03-10 02:39:57 +0000
commit3796e315640fee3feb81091d27196a38f437c8d9 (patch)
treec44a37c34426c27565919d59a0e745eb3e286382
parent46aeed76006a096b17289b80b07770703b580bbc (diff)
downloademacs-3796e315640fee3feb81091d27196a38f437c8d9.tar.gz
emacs-3796e315640fee3feb81091d27196a38f437c8d9.zip
Merge from gnus--rel--5.10
Revision: emacs@sv.gnu.org/emacs--rel--22--patch-246
-rw-r--r--lisp/gnus/ChangeLog9
-rw-r--r--lisp/gnus/gnus-art.el71
-rw-r--r--lisp/gnus/gnus-sum.el2
-rw-r--r--lisp/gnus/mm-view.el2
4 files changed, 51 insertions, 33 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 455d0efd788..960e1a835f7 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -4,6 +4,15 @@
4 default to nil. 4 default to nil.
5 (mail-source-delete-old-incoming): Make confirmation prompt more clear. 5 (mail-source-delete-old-incoming): Make confirmation prompt more clear.
6 6
72008-03-07 Katsumi Yamaoka <yamaoka@jpl.org>
8
9 * gnus-art.el (gnus-narrow-to-page): Position point properly.
10 (gnus-article-goto-prev-page): Work for articles having ^L's.
11
12 * gnus-sum.el (gnus-summary-end-of-article): Remove needless narrowing.
13
14 * mm-view.el (mm-w3m-standalone-supports-m17n-p): Fix typo.
15
72008-03-05 Reiner Steib <Reiner.Steib@gmx.de> 162008-03-05 Reiner Steib <Reiner.Steib@gmx.de>
8 17
9 * gnus-sum.el (gnus-print-buffer): Honor ps-print-color-p. 18 * gnus-sum.el (gnus-print-buffer): Honor ps-print-color-p.
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 5ce0a773b28..d509fd414f7 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -5398,41 +5398,52 @@ the coding cookie."
5398If given a numerical ARG, move forward ARG pages." 5398If given a numerical ARG, move forward ARG pages."
5399 (interactive "P") 5399 (interactive "P")
5400 (setq arg (if arg (prefix-numeric-value arg) 0)) 5400 (setq arg (if arg (prefix-numeric-value arg) 0))
5401 (save-excursion 5401 (with-current-buffer gnus-article-buffer
5402 (set-buffer gnus-article-buffer)
5403 (goto-char (point-min))
5404 (widen) 5402 (widen)
5405 ;; Remove any old next/prev buttons. 5403 ;; Remove any old next/prev buttons.
5406 (when (gnus-visual-p 'page-marker) 5404 (when (gnus-visual-p 'page-marker)
5407 (let ((inhibit-read-only t)) 5405 (let ((inhibit-read-only t))
5408 (gnus-remove-text-with-property 'gnus-prev) 5406 (gnus-remove-text-with-property 'gnus-prev)
5409 (gnus-remove-text-with-property 'gnus-next))) 5407 (gnus-remove-text-with-property 'gnus-next)))
5410 (if 5408 (let (st nd pt)
5411 (cond ((< arg 0) 5409 (when (save-excursion
5412 (re-search-backward page-delimiter nil 'move (1+ (abs arg)))) 5410 (cond ((< arg 0)
5413 ((> arg 0) 5411 (if (re-search-backward page-delimiter nil 'move (abs arg))
5414 (re-search-forward page-delimiter nil 'move arg))) 5412 (prog1
5415 (goto-char (match-end 0)) 5413 (setq nd (match-beginning 0)
5416 (save-excursion 5414 pt nd)
5417 (goto-char (point-min)) 5415 (when (re-search-backward page-delimiter nil t)
5418 (setq gnus-page-broken 5416 (setq st (match-end 0))))
5419 (and (re-search-forward page-delimiter nil t) t)))) 5417 (when (re-search-forward page-delimiter nil t)
5420 (when gnus-page-broken 5418 (setq nd (match-beginning 0)
5421 (narrow-to-region 5419 pt (point-min)))))
5422 (point) 5420 ((> arg 0)
5423 (if (re-search-forward page-delimiter nil 'move) 5421 (if (re-search-forward page-delimiter nil 'move arg)
5424 (match-beginning 0) 5422 (prog1
5425 (point))) 5423 (setq st (match-end 0)
5426 (when (and (gnus-visual-p 'page-marker) 5424 pt st)
5427 (> (point-min) (save-restriction (widen) (point-min)))) 5425 (when (re-search-forward page-delimiter nil t)
5428 (save-excursion 5426 (setq nd (match-beginning 0))))
5429 (goto-char (point-min)) 5427 (when (re-search-backward page-delimiter nil t)
5430 (gnus-insert-prev-page-button))) 5428 (setq st (match-end 0)
5431 (when (and (gnus-visual-p 'page-marker) 5429 pt (point-max)))))
5432 (< (point-max) (save-restriction (widen) (point-max)))) 5430 (t
5433 (save-excursion 5431 (when (re-search-backward page-delimiter nil t)
5434 (goto-char (point-max)) 5432 (goto-char (setq st (match-end 0))))
5435 (gnus-insert-next-page-button)))))) 5433 (when (re-search-forward page-delimiter nil t)
5434 (setq nd (match-beginning 0)))
5435 (or st nd))))
5436 (setq gnus-page-broken t)
5437 (when pt (goto-char pt))
5438 (narrow-to-region (or st (point-min)) (or nd (point-max)))
5439 (when (gnus-visual-p 'page-marker)
5440 (save-excursion
5441 (when nd
5442 (goto-char nd)
5443 (gnus-insert-next-page-button))
5444 (when st
5445 (goto-char st)
5446 (gnus-insert-prev-page-button))))))))
5436 5447
5437;; Article mode commands 5448;; Article mode commands
5438 5449
@@ -5447,7 +5458,7 @@ If given a numerical ARG, move forward ARG pages."
5447(defun gnus-article-goto-prev-page () 5458(defun gnus-article-goto-prev-page ()
5448 "Show the previous page of the article." 5459 "Show the previous page of the article."
5449 (interactive) 5460 (interactive)
5450 (if (bobp) 5461 (if (save-restriction (widen) (bobp)) ;; Real beginning-of-buffer?
5451 (gnus-article-read-summary-keys nil (gnus-character-to-event ?p)) 5462 (gnus-article-read-summary-keys nil (gnus-character-to-event ?p))
5452 (gnus-article-prev-page nil))) 5463 (gnus-article-prev-page nil)))
5453 5464
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 269da70461a..626ce26d2fd 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -8842,8 +8842,6 @@ article. If BACKWARD (the prefix) is non-nil, search backward instead."
8842 (goto-char (point-max)) 8842 (goto-char (point-max))
8843 (recenter -3) 8843 (recenter -3)
8844 (when gnus-break-pages 8844 (when gnus-break-pages
8845 (when (re-search-backward page-delimiter nil t)
8846 (narrow-to-region (match-end 0) (point-max)))
8847 (gnus-narrow-to-page)))) 8845 (gnus-narrow-to-page))))
8848 8846
8849(defun gnus-summary-print-truncate-and-quote (string &optional len) 8847(defun gnus-summary-print-truncate-and-quote (string &optional len)
diff --git a/lisp/gnus/mm-view.el b/lisp/gnus/mm-view.el
index e89852cf9bd..df4ffb84eab 100644
--- a/lisp/gnus/mm-view.el
+++ b/lisp/gnus/mm-view.el
@@ -285,7 +285,7 @@
285 (let ((coding-system-for-write 'iso-2022-jp) 285 (let ((coding-system-for-write 'iso-2022-jp)
286 (coding-system-for-read 'iso-2022-jp) 286 (coding-system-for-read 'iso-2022-jp)
287 (str (mm-decode-coding-string "\ 287 (str (mm-decode-coding-string "\
288\e$B#D#o#e#s!!#w#3#m!!#s#u#p#p#o#r#t#s!!#m#1#7#n!)\e(B" 'iso-2022-jp))) 288\e$B#D#o#e#s!!#w#3#m!!#s#u#p#p#o#r#t!!#m#1#7#n!)\e(B" 'iso-2022-jp)))
289 (mm-with-multibyte-buffer 289 (mm-with-multibyte-buffer
290 (insert str) 290 (insert str)
291 (call-process-region 291 (call-process-region