diff options
author | Miles Bader <miles@gnu.org> | 2005-07-22 08:22:41 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2005-07-22 08:22:41 +0000 |
commit | 7929f858f8897f0448771a471f8afc5f244e4bca (patch) | |
tree | 34036e52ea78618691537d4393801104e97c7d1d /lisp/gnus/gnus-util.el | |
parent | 3dd89635ee7bda63df4690168e896d4b2d4548ed (diff) | |
download | emacs-7929f858f8897f0448771a471f8afc5f244e4bca.tar.gz |
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-492
Merge from gnus--rel--5.10
Patches applied:
* gnus--rel--5.10 (patch 92-94)
- Merge from emacs--cvs-trunk--0
- Update from CVS
2005-07-15 Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus/gnus-art.el (gnus-article-next-page): Use gnus-end-of-window.
(gnus-article-next-page-1): Use gnus-beginning-of-window.
(gnus-article-prev-page): Ditto.
* lisp/gnus/gnus-util.el (gnus-beginning-of-window): New function.
(gnus-end-of-window): New function.
Diffstat (limited to 'lisp/gnus/gnus-util.el')
-rw-r--r-- | lisp/gnus/gnus-util.el | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/lisp/gnus/gnus-util.el b/lisp/gnus/gnus-util.el index da14d52161b..363b9c2f4a0 100644 --- a/lisp/gnus/gnus-util.el +++ b/lisp/gnus/gnus-util.el @@ -1,5 +1,5 @@ ;;; gnus-util.el --- utility functions for Gnus -;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 +;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 ;; Free Software Foundation, Inc. ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> @@ -1577,6 +1577,30 @@ empty directories from OLD-PATH." (defalias 'gnus-set-process-query-on-exit-flag 'process-kill-without-query)) +(defun gnus-beginning-of-window () + "Move point to the beginning of the window." + (move-to-window-line + (if (featurep 'xemacs) + 0 + (min scroll-margin + (max 1 (- (window-height) + (if mode-line-format 1 0) + (if (and (boundp 'header-line-format) + (symbol-value 'header-line-format)) + 1 0))))))) + +(defun gnus-end-of-window () + "Move point to the end of the window." + (move-to-window-line + (if (featurep 'xemacs) + -1 + (max (- -1 scroll-margin) + (- -1 (max 1 (- (window-height) + (if mode-line-format 1 0) + (if (and (boundp 'header-line-format) + (symbol-value 'header-line-format)) + 1 0)))))))) + (provide 'gnus-util) ;;; arch-tag: f94991af-d32b-4c97-8c26-ca12a934de49 |