aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Walters2002-06-15 18:59:03 +0000
committerColin Walters2002-06-15 18:59:03 +0000
commit0ce780e196717a01b9eb1324d176e00e5cb2c38e (patch)
tree36de0563dd94ac4544c3c98ad1ca1e4891482389
parent751830932dfacaba553835221679a72fe2ac9ce8 (diff)
downloademacs-0ce780e196717a01b9eb1324d176e00e5cb2c38e.tar.gz
emacs-0ce780e196717a01b9eb1324d176e00e5cb2c38e.zip
(ibuffer-movement-cycle): New variable.
(ibuffer-backward-line, ibuffer-forward-line): Use it.
-rw-r--r--lisp/ibuffer.el22
1 files changed, 15 insertions, 7 deletions
diff --git a/lisp/ibuffer.el b/lisp/ibuffer.el
index 9195b3a7460..c622606f31d 100644
--- a/lisp/ibuffer.el
+++ b/lisp/ibuffer.el
@@ -221,6 +221,11 @@ specialized filtering occurs before real filtering."
221 221
222(defvar ibuffer-current-format nil) 222(defvar ibuffer-current-format nil)
223 223
224(defcustom ibuffer-movement-cycle t
225 "If non-nil, then forward and backwards movement commands cycle."
226 :type 'boolean
227 :group 'ibuffer)
228
224(defcustom ibuffer-modified-char ?* 229(defcustom ibuffer-modified-char ?*
225 "The character to display for modified buffers." 230 "The character to display for modified buffers."
226 :type 'character 231 :type 'character
@@ -893,9 +898,10 @@ width and the longest string in LIST."
893 (beginning-of-line) 898 (beginning-of-line)
894 (while (> arg 0) 899 (while (> arg 0)
895 (forward-line -1) 900 (forward-line -1)
896 (when (or (get-text-property (point) 'ibuffer-title) 901 (when (and ibuffer-movement-cycle
897 (and skip-group-names 902 (or (get-text-property (point) 'ibuffer-title)
898 (get-text-property (point) 'ibuffer-filter-group-name))) 903 (and skip-group-names
904 (get-text-property (point) 'ibuffer-filter-group-name))))
899 (goto-char (point-max)) 905 (goto-char (point-max))
900 (beginning-of-line)) 906 (beginning-of-line))
901 (ibuffer-skip-properties (append '(ibuffer-summary) 907 (ibuffer-skip-properties (append '(ibuffer-summary)
@@ -914,8 +920,9 @@ width and the longest string in LIST."
914 (unless arg 920 (unless arg
915 (setq arg 1)) 921 (setq arg 1))
916 (beginning-of-line) 922 (beginning-of-line)
917 (when (or (eobp) 923 (when (and ibuffer-movement-cycle
918 (get-text-property (point) 'ibuffer-summary)) 924 (or (eobp)
925 (get-text-property (point) 'ibuffer-summary)))
919 (goto-char (point-min))) 926 (goto-char (point-min)))
920 (when (or (get-text-property (point) 'ibuffer-title) 927 (when (or (get-text-property (point) 'ibuffer-title)
921 (and skip-group-names 928 (and skip-group-names
@@ -930,8 +937,9 @@ width and the longest string in LIST."
930 (ibuffer-backward-line (- arg)) 937 (ibuffer-backward-line (- arg))
931 (while (> arg 0) 938 (while (> arg 0)
932 (forward-line 1) 939 (forward-line 1)
933 (when (or (eobp) 940 (when (and ibuffer-movement-cycle
934 (get-text-property (point) 'ibuffer-summary)) 941 (or (eobp)
942 (get-text-property (point) 'ibuffer-summary)))
935 (goto-char (point-min))) 943 (goto-char (point-min)))
936 (decf arg) 944 (decf arg)
937 (ibuffer-skip-properties (append '(ibuffer-title) 945 (ibuffer-skip-properties (append '(ibuffer-title)