diff options
| author | Miles Bader | 2005-07-25 21:35:55 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-07-25 21:35:55 +0000 |
| commit | d8a885817df91b48433c480f630ee4d750fcfc45 (patch) | |
| tree | 10e18f78a7112ff6297e3dff20d6bc3f05ba52b3 | |
| parent | 51db08ebe0de202fa87befb0b528372b64edc530 (diff) | |
| download | emacs-d8a885817df91b48433c480f630ee4d750fcfc45.tar.gz emacs-d8a885817df91b48433c480f630ee4d750fcfc45.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-495
Merge from gnus--rel--5.10
Patches applied:
* gnus--rel--5.10 (patch 95)
- Update from CVS
2005-07-25 Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus/gnus-art.el (gnus-article-next-page): Revert.
(gnus-article-beginning-of-window): New macro.
(gnus-article-next-page-1): Use it.
(gnus-article-prev-page): Ditto.
(gnus-mime-save-part-and-strip): Use insert-buffer-substring
instead of insert-buffer.
(gnus-mime-delete-part): Ditto.
(gnus-article-edit-exit): Ditto.
* lisp/gnus/gnus-util.el (gnus-beginning-of-window): Remove.
(gnus-end-of-window): Remove.
* lisp/gnus/lpath.el: Don't bind scroll-margin.
2005-07-25 Simon Josefsson <jas@extundo.com>
* lisp/gnus/pgg.el (pgg-insert-url-with-w3): Don't load w3, it is possible
to have the url package without w3. Reported by Daiki Ueno
<ueno@unixuser.org> and Luigi Panzeri <matley@muppetslab.org>.
| -rw-r--r-- | lisp/gnus/ChangeLog | 22 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 28 | ||||
| -rw-r--r-- | lisp/gnus/gnus-util.el | 24 | ||||
| -rw-r--r-- | lisp/gnus/pgg.el | 1 |
4 files changed, 43 insertions, 32 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 33f639380a6..85bf600cf2d 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,25 @@ | |||
| 1 | 2005-07-25 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * gnus-art.el (gnus-article-next-page): Revert. | ||
| 4 | (gnus-article-beginning-of-window): New macro. | ||
| 5 | (gnus-article-next-page-1): Use it. | ||
| 6 | (gnus-article-prev-page): Ditto. | ||
| 7 | (gnus-mime-save-part-and-strip): Use insert-buffer-substring | ||
| 8 | instead of insert-buffer. | ||
| 9 | (gnus-mime-delete-part): Ditto. | ||
| 10 | (gnus-article-edit-exit): Ditto. | ||
| 11 | |||
| 12 | * gnus-util.el (gnus-beginning-of-window): Remove. | ||
| 13 | (gnus-end-of-window): Remove. | ||
| 14 | |||
| 15 | * lpath.el: Don't bind scroll-margin. | ||
| 16 | |||
| 17 | 2005-07-25 Simon Josefsson <jas@extundo.com> | ||
| 18 | |||
| 19 | * pgg.el (pgg-insert-url-with-w3): Don't load w3, it is possible | ||
| 20 | to have the url package without w3. Reported by Daiki Ueno | ||
| 21 | <ueno@unixuser.org> and Luigi Panzeri <matley@muppetslab.org>. | ||
| 22 | |||
| 1 | 2005-07-21 Stefan Monnier <monnier@iro.umontreal.ca> | 23 | 2005-07-21 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 24 | ||
| 3 | * mml.el (mml-minibuffer-read-disposition): Don't use inline by default | 25 | * mml.el (mml-minibuffer-read-disposition): Don't use inline by default |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 2be1afea77d..3b2dd8cb994 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -4117,7 +4117,7 @@ Deleting parts may malfunction or destroy the article; continue? ") | |||
| 4117 | ',gnus-newsgroup-ignored-charsets)) | 4117 | ',gnus-newsgroup-ignored-charsets)) |
| 4118 | (mbl mml-buffer-list)) | 4118 | (mbl mml-buffer-list)) |
| 4119 | (setq mml-buffer-list nil) | 4119 | (setq mml-buffer-list nil) |
| 4120 | (insert-buffer gnus-original-article-buffer) | 4120 | (insert-buffer-substring gnus-original-article-buffer) |
| 4121 | (mime-to-mml ',handles) | 4121 | (mime-to-mml ',handles) |
| 4122 | (setq gnus-article-mime-handles nil) | 4122 | (setq gnus-article-mime-handles nil) |
| 4123 | (let ((mbl1 mml-buffer-list)) | 4123 | (let ((mbl1 mml-buffer-list)) |
| @@ -4199,7 +4199,7 @@ Deleting parts may malfunction or destroy the article; continue? ") | |||
| 4199 | ',gnus-newsgroup-ignored-charsets)) | 4199 | ',gnus-newsgroup-ignored-charsets)) |
| 4200 | (mbl mml-buffer-list)) | 4200 | (mbl mml-buffer-list)) |
| 4201 | (setq mml-buffer-list nil) | 4201 | (setq mml-buffer-list nil) |
| 4202 | (insert-buffer gnus-original-article-buffer) | 4202 | (insert-buffer-substring gnus-original-article-buffer) |
| 4203 | (mime-to-mml ',handles) | 4203 | (mime-to-mml ',handles) |
| 4204 | (setq gnus-article-mime-handles nil) | 4204 | (setq gnus-article-mime-handles nil) |
| 4205 | (let ((mbl1 mml-buffer-list)) | 4205 | (let ((mbl1 mml-buffer-list)) |
| @@ -5160,7 +5160,7 @@ If given a numerical ARG, move forward ARG pages." | |||
| 5160 | If end of article, return non-nil. Otherwise return nil. | 5160 | If end of article, return non-nil. Otherwise return nil. |
| 5161 | Argument LINES specifies lines to be scrolled up." | 5161 | Argument LINES specifies lines to be scrolled up." |
| 5162 | (interactive "p") | 5162 | (interactive "p") |
| 5163 | (gnus-end-of-window) | 5163 | (move-to-window-line -1) |
| 5164 | (if (save-excursion | 5164 | (if (save-excursion |
| 5165 | (end-of-line) | 5165 | (end-of-line) |
| 5166 | (and (pos-visible-in-window-p) ;Not continuation line. | 5166 | (and (pos-visible-in-window-p) ;Not continuation line. |
| @@ -5182,6 +5182,20 @@ Argument LINES specifies lines to be scrolled up." | |||
| 5182 | (gnus-article-next-page-1 lines) | 5182 | (gnus-article-next-page-1 lines) |
| 5183 | nil)) | 5183 | nil)) |
| 5184 | 5184 | ||
| 5185 | (defmacro gnus-article-beginning-of-window () | ||
| 5186 | "Move point to the beginning of the window. | ||
| 5187 | In Emacs, the point is placed at the line number which `scroll-margin' | ||
| 5188 | specifies." | ||
| 5189 | (if (featurep 'xemacs) | ||
| 5190 | '(move-to-window-line 0) | ||
| 5191 | '(move-to-window-line | ||
| 5192 | (min (max 0 scroll-margin) | ||
| 5193 | (max 1 (- (window-height) | ||
| 5194 | (if mode-line-format 1 0) | ||
| 5195 | (if (and (boundp 'header-line-format) | ||
| 5196 | (symbol-value 'header-line-format)) | ||
| 5197 | 1 0))))))) | ||
| 5198 | |||
| 5185 | (defun gnus-article-next-page-1 (lines) | 5199 | (defun gnus-article-next-page-1 (lines) |
| 5186 | (let ((scroll-in-place nil)) | 5200 | (let ((scroll-in-place nil)) |
| 5187 | (condition-case () | 5201 | (condition-case () |
| @@ -5189,13 +5203,13 @@ Argument LINES specifies lines to be scrolled up." | |||
| 5189 | (end-of-buffer | 5203 | (end-of-buffer |
| 5190 | ;; Long lines may cause an end-of-buffer error. | 5204 | ;; Long lines may cause an end-of-buffer error. |
| 5191 | (goto-char (point-max))))) | 5205 | (goto-char (point-max))))) |
| 5192 | (gnus-beginning-of-window)) | 5206 | (gnus-article-beginning-of-window)) |
| 5193 | 5207 | ||
| 5194 | (defun gnus-article-prev-page (&optional lines) | 5208 | (defun gnus-article-prev-page (&optional lines) |
| 5195 | "Show previous page of current article. | 5209 | "Show previous page of current article. |
| 5196 | Argument LINES specifies lines to be scrolled down." | 5210 | Argument LINES specifies lines to be scrolled down." |
| 5197 | (interactive "p") | 5211 | (interactive "p") |
| 5198 | (gnus-beginning-of-window) | 5212 | (move-to-window-line 0) |
| 5199 | (if (and gnus-page-broken | 5213 | (if (and gnus-page-broken |
| 5200 | (bobp) | 5214 | (bobp) |
| 5201 | (not (save-restriction (widen) (bobp)))) ;Real beginning-of-buffer? | 5215 | (not (save-restriction (widen) (bobp)))) ;Real beginning-of-buffer? |
| @@ -5209,7 +5223,7 @@ Argument LINES specifies lines to be scrolled down." | |||
| 5209 | (scroll-down lines) | 5223 | (scroll-down lines) |
| 5210 | (beginning-of-buffer | 5224 | (beginning-of-buffer |
| 5211 | (goto-char (point-min)))) | 5225 | (goto-char (point-min)))) |
| 5212 | (gnus-beginning-of-window))))) | 5226 | (gnus-article-beginning-of-window))))) |
| 5213 | 5227 | ||
| 5214 | (defun gnus-article-only-boring-p () | 5228 | (defun gnus-article-only-boring-p () |
| 5215 | "Decide whether there is only boring text remaining in the article. | 5229 | "Decide whether there is only boring text remaining in the article. |
| @@ -5818,7 +5832,7 @@ groups." | |||
| 5818 | (window-start (window-start))) | 5832 | (window-start (window-start))) |
| 5819 | (erase-buffer) | 5833 | (erase-buffer) |
| 5820 | (if (gnus-buffer-live-p gnus-original-article-buffer) | 5834 | (if (gnus-buffer-live-p gnus-original-article-buffer) |
| 5821 | (insert-buffer gnus-original-article-buffer)) | 5835 | (insert-buffer-substring gnus-original-article-buffer)) |
| 5822 | (let ((winconf gnus-prev-winconf)) | 5836 | (let ((winconf gnus-prev-winconf)) |
| 5823 | (kill-all-local-variables) | 5837 | (kill-all-local-variables) |
| 5824 | (gnus-article-mode) | 5838 | (gnus-article-mode) |
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index 363b9c2f4a0..925555e1ff0 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el | |||
| @@ -1577,30 +1577,6 @@ empty directories from OLD-PATH." | |||
| 1577 | (defalias 'gnus-set-process-query-on-exit-flag | 1577 | (defalias 'gnus-set-process-query-on-exit-flag |
| 1578 | 'process-kill-without-query)) | 1578 | 'process-kill-without-query)) |
| 1579 | 1579 | ||
| 1580 | (defun gnus-beginning-of-window () | ||
| 1581 | "Move point to the beginning of the window." | ||
| 1582 | (move-to-window-line | ||
| 1583 | (if (featurep 'xemacs) | ||
| 1584 | 0 | ||
| 1585 | (min scroll-margin | ||
| 1586 | (max 1 (- (window-height) | ||
| 1587 | (if mode-line-format 1 0) | ||
| 1588 | (if (and (boundp 'header-line-format) | ||
| 1589 | (symbol-value 'header-line-format)) | ||
| 1590 | 1 0))))))) | ||
| 1591 | |||
| 1592 | (defun gnus-end-of-window () | ||
| 1593 | "Move point to the end of the window." | ||
| 1594 | (move-to-window-line | ||
| 1595 | (if (featurep 'xemacs) | ||
| 1596 | -1 | ||
| 1597 | (max (- -1 scroll-margin) | ||
| 1598 | (- -1 (max 1 (- (window-height) | ||
| 1599 | (if mode-line-format 1 0) | ||
| 1600 | (if (and (boundp 'header-line-format) | ||
| 1601 | (symbol-value 'header-line-format)) | ||
| 1602 | 1 0)))))))) | ||
| 1603 | |||
| 1604 | (provide 'gnus-util) | 1580 | (provide 'gnus-util) |
| 1605 | 1581 | ||
| 1606 | ;;; arch-tag: f94991af-d32b-4c97-8c26-ca12a934de49 | 1582 | ;;; arch-tag: f94991af-d32b-4c97-8c26-ca12a934de49 |
diff --git a/lisp/gnus/pgg.el b/lisp/gnus/pgg.el index 91b56c57a4f..8d72fd31502 100644 --- a/lisp/gnus/pgg.el +++ b/lisp/gnus/pgg.el | |||
| @@ -410,7 +410,6 @@ within the region." | |||
| 410 | 410 | ||
| 411 | (defun pgg-insert-url-with-w3 (url) | 411 | (defun pgg-insert-url-with-w3 (url) |
| 412 | (ignore-errors | 412 | (ignore-errors |
| 413 | (require 'w3) | ||
| 414 | (require 'url) | 413 | (require 'url) |
| 415 | (let (buffer-file-name) | 414 | (let (buffer-file-name) |
| 416 | (url-insert-file-contents url)))) | 415 | (url-insert-file-contents url)))) |