changeset 105419:2abed3b3f741

* recentf.el (recentf-unload-function): New function.
author Juanma Barranquero <lekktu@gmail.com>
date Sun, 04 Oct 2009 01:12:13 +0000
parents 0f5992576338
children a1a054256594
files lisp/ChangeLog lisp/recentf.el
diffstat 2 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sun Oct 04 01:03:51 2009 +0000
+++ b/lisp/ChangeLog	Sun Oct 04 01:12:13 2009 +0000
@@ -1,3 +1,7 @@
+2009-10-04  Juanma Barranquero  <lekktu@gmail.com>
+
+	* recentf.el (recentf-unload-function): New function.
+
 2009-10-04  Chong Yidong  <cyd@stupidchicken.com>
 
 	* cedet/semantic/db-file.el (semanticdb-default-save-directory):
@@ -47,8 +51,8 @@
 
 2009-09-30  Eric Ludlam  <zappo@gnu.org>
 
-	* cedet/semantic/util-modes.el (semantic-highlight-func-mode): Doc
-	fix.
+	* cedet/semantic/util-modes.el (semantic-highlight-func-mode):
+	Doc fix.
 
 	* cedet/ede/proj-comp.el (ede-proj-makefile-insert-variables):
 	Only insert each variable once.
--- a/lisp/recentf.el	Sun Oct 04 01:03:51 2009 +0000
+++ b/lisp/recentf.el	Sun Oct 04 01:12:13 2009 +0000
@@ -1361,6 +1361,12 @@
       (message "Recentf mode %sabled" (if recentf-mode "en" "dis"))))
   recentf-mode)
 
+(defun recentf-unload-function ()
+  "Unload the recentf library."
+  ;; continue standard unloading
+  (recentf-mode -1)
+  nil)
+
 (provide 'recentf)
 
 (run-hooks 'recentf-load-hook)