Changes committed gnus/lisp (ChangeLog gnus-art.el gnus-sum.el mm-view.el)
"Katsumi Yamaoka" <[email protected]>
| Newsgroups | gmane.emacs.gnus.commits |
|---|---|
| Message-ID | <[email protected]> |
Modified: ChangeLog gnus-art.el gnus-sum.el mm-view.el * gnus-art.el (gnus-narrow-to-page): Position point properly. (gnus-article-goto-prev-page): Work for articles having ^L's. * gnus-sum.el (gnus-summary-end-of-article): Remove needless narrowing. * mm-view.el (mm-w3m-standalone-supports-m17n-p): Fix typo. Index: ChangeLog diff -u gnus/lisp/ChangeLog:7.1781 gnus/lisp/ChangeLog:7.1782 --- ChangeLog:7.1781 Thu Mar 6 23:31:14 2008 +++ ChangeLog Fri Mar 7 07:24:30 2008 @@ -1,3 +1,12 @@ +2008-03-07 Katsumi Yamaoka <[email protected]> + + * gnus-art.el (gnus-narrow-to-page): Position point properly. + (gnus-article-goto-prev-page): Work for articles having ^L's. + + * gnus-sum.el (gnus-summary-end-of-article): Remove needless narrowing. + + * mm-view.el (mm-w3m-standalone-supports-m17n-p): Fix typo. + 2008-03-06 Teodor Zlatanov <[email protected]> * auth-source.el: New package. Index: gnus-art.el diff -u gnus/lisp/gnus-art.el:7.264 gnus/lisp/gnus-art.el:7.265 --- gnus-art.el:7.264 Mon Mar 3 09:04:02 2008 +++ gnus-art.el Fri Mar 7 07:24:30 2008 @@ -5993,39 +5993,51 @@ (interactive "P") (setq arg (if arg (prefix-numeric-value arg) 0)) (with-current-buffer gnus-article-buffer - (goto-char (point-min)) (widen) ;; Remove any old next/prev buttons. (when (gnus-visual-p 'page-marker) (let ((inhibit-read-only t)) (gnus-remove-text-with-property 'gnus-prev) (gnus-remove-text-with-property 'gnus-next))) - (if - (cond ((< arg 0) - (re-search-backward page-delimiter nil 'move (1+ (abs arg)))) - ((> arg 0) - (re-search-forward page-delimiter nil 'move arg))) - (goto-char (match-end 0)) - (save-excursion - (goto-char (point-min)) - (setq gnus-page-broken - (and (re-search-forward page-delimiter nil t) t)))) - (when gnus-page-broken - (narrow-to-region - (point) - (if (re-search-forward page-delimiter nil 'move) - (match-beginning 0) - (point))) - (when (and (gnus-visual-p 'page-marker) - (> (point-min) (save-restriction (widen) (point-min)))) - (save-excursion - (goto-char (point-min)) - (gnus-insert-prev-page-button))) - (when (and (gnus-visual-p 'page-marker) - (< (point-max) (save-restriction (widen) (point-max)))) - (save-excursion - (goto-char (point-max)) - (gnus-insert-next-page-button)))))) + (let (st nd pt) + (when (save-excursion + (cond ((< arg 0) + (if (re-search-backward page-delimiter nil 'move (abs arg)) + (prog1 + (setq nd (match-beginning 0) + pt nd) + (when (re-search-backward page-delimiter nil t) + (setq st (match-end 0)))) + (when (re-search-forward page-delimiter nil t) + (setq nd (match-beginning 0) + pt (point-min))))) + ((> arg 0) + (if (re-search-forward page-delimiter nil 'move arg) + (prog1 + (setq st (match-end 0) + pt st) + (when (re-search-forward page-delimiter nil t) + (setq nd (match-beginning 0)))) + (when (re-search-backward page-delimiter nil t) + (setq st (match-end 0) + pt (point-max))))) + (t + (when (re-search-backward page-delimiter nil t) + (goto-char (setq st (match-end 0)))) + (when (re-search-forward page-delimiter nil t) + (setq nd (match-beginning 0))) + (or st nd)))) + (setq gnus-page-broken t) + (when pt (goto-char pt)) + (narrow-to-region (or st (point-min)) (or nd (point-max))) + (when (gnus-visual-p 'page-marker) + (save-excursion + (when nd + (goto-char nd) + (gnus-insert-next-page-button)) + (when st + (goto-char st) + (gnus-insert-prev-page-button)))))))) ;; Article mode commands @@ -6040,7 +6052,7 @@ (defun gnus-article-goto-prev-page () "Show the previous page of the article." (interactive) - (if (bobp) + (if (save-restriction (widen) (bobp)) ;; Real beginning-of-buffer? (gnus-article-read-summary-keys nil (gnus-character-to-event ?p)) (gnus-article-prev-page nil))) Index: gnus-sum.el diff -u gnus/lisp/gnus-sum.el:7.216 gnus/lisp/gnus-sum.el:7.217 --- gnus-sum.el:7.216 Wed Mar 5 19:52:14 2008 +++ gnus-sum.el Fri Mar 7 07:24:30 2008 @@ -9231,8 +9231,6 @@ (goto-char (point-max)) (recenter -3) (when gnus-break-pages - (when (re-search-backward page-delimiter nil t) - (narrow-to-region (match-end 0) (point-max))) (gnus-narrow-to-page)))) (defun gnus-summary-print-truncate-and-quote (string &optional len) Index: mm-view.el diff -u gnus/lisp/mm-view.el:7.53 gnus/lisp/mm-view.el:7.54 --- mm-view.el:7.53 Sun Jan 20 06:23:57 2008 +++ mm-view.el Fri Mar 7 07:24:30 2008 @@ -289,7 +289,7 @@ (let ((coding-system-for-write 'iso-2022-jp) (coding-system-for-read 'iso-2022-jp) (str (mm-decode-coding-string "\ -\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))) +\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))) (mm-with-multibyte-buffer (insert str) (call-process-region