changeset 100232:518a4346ef68

* ibuffer.el (ibuffer-sort-bufferlist): Require ibuf-ext if the sorting functions are not loaded. (Bug#1432)
author Juanma Barranquero <lekktu@gmail.com>
date Thu, 04 Dec 2008 23:58:14 +0000
parents 30b26566d899
children 6b0f142e0e58
files lisp/ChangeLog lisp/ibuffer.el
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Thu Dec 04 23:16:45 2008 +0000
+++ b/lisp/ChangeLog	Thu Dec 04 23:58:14 2008 +0000
@@ -1,3 +1,8 @@
+2008-12-04  Juanma Barranquero  <lekktu@gmail.com>
+
+	* ibuffer.el (ibuffer-sort-bufferlist): Require ibuf-ext
+	if the sorting functions are not loaded.  (Bug#1432)
+
 2008-12-04  Sam Steingold  <sds@gnu.org>
 
 	* progmodes/compile.el (compilation-read-command): Extracted from
@@ -11817,7 +11822,6 @@
 	systems without 12 months per year.
 
 	(calendar-date-is-visible-p): Doc fix.  Simplify.
-
 	* calendar/holidays.el (holiday-filter-visible-calendar): Return result
 	from dolist.
 
--- a/lisp/ibuffer.el	Thu Dec 04 23:16:45 2008 +0000
+++ b/lisp/ibuffer.el	Thu Dec 04 23:58:14 2008 +0000
@@ -2191,6 +2191,9 @@
              ibuffer-header-line-format)))
 
 (defun ibuffer-sort-bufferlist (bmarklist)
+  (unless ibuffer-sorting-functions-alist
+    ;; make sure the sorting functions are loaded
+    (require 'ibuf-ext))
   (let* ((sortdat (assq ibuffer-sorting-mode
 			ibuffer-sorting-functions-alist))
 	 (func (caddr sortdat)))