From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: lisp/recentf.el Date: Mon, 13 Jun 2005 14:12:28 +0200 Message-ID: <877jgyfob7.fsf@xs4all.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1118664756 30787 80.91.229.2 (13 Jun 2005 12:12:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2005 12:12:36 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 13 14:12:28 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dhnmn-0000h8-Ie for ged-emacs-devel@m.gmane.org; Mon, 13 Jun 2005 14:11:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dhnra-00044l-5d for ged-emacs-devel@m.gmane.org; Mon, 13 Jun 2005 08:16:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dhnoh-0002rE-II for emacs-devel@gnu.org; Mon, 13 Jun 2005 08:13:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dhnoc-0002nW-3V for emacs-devel@gnu.org; Mon, 13 Jun 2005 08:13:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dhnob-0002dw-8j for emacs-devel@gnu.org; Mon, 13 Jun 2005 08:13:17 -0400 Original-Received: from [194.109.24.33] (helo=smtp-vbr13.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dhnos-0006JH-PQ for emacs-devel@gnu.org; Mon, 13 Jun 2005 08:13:35 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr13.xs4all.nl (8.13.3/8.13.3) with ESMTP id j5DCCTV0075503 for ; Mon, 13 Jun 2005 14:12:29 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1Dhnno-0000Sf-00 for ; Mon, 13 Jun 2005 14:12:28 +0200 Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 63 X-Virus-Scanned: by XS4ALL Virus Scanner X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:38712 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:38712 Does someone see a problem with this change? Lute. 2005-06-13 Lute Kamstra * recentf.el (recentf-dialog-mode): Use kill-all-local-variables and run-mode-hooks. (recentf-edit-list, recentf-open-files): Don't call kill-all-local-variables directly. Index: lisp/recentf.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/recentf.el,v retrieving revision 1.37 diff -c -r1.37 recentf.el *** lisp/recentf.el 31 May 2005 04:19:10 -0000 1.37 --- lisp/recentf.el 13 Jun 2005 12:09:26 -0000 *************** *** 923,931 **** \\{recentf-dialog-mode-map}" (interactive) (setq major-mode 'recentf-dialog-mode) (setq mode-name "recentf-dialog") ! (use-local-map recentf-dialog-mode-map)) ;;; Hooks ;; --- 923,933 ---- \\{recentf-dialog-mode-map}" (interactive) + (kill-all-local-variables) (setq major-mode 'recentf-dialog-mode) (setq mode-name "recentf-dialog") ! (use-local-map recentf-dialog-mode-map) ! (run-mode-hooks 'recentf-dialog-mode-hook)) ;;; Hooks ;; *************** *** 1002,1008 **** (get-buffer-create (format "*%s - Edit list*" recentf-menu-title)) (switch-to-buffer (current-buffer)) ;; Cleanup buffer - (kill-all-local-variables) (let ((inhibit-read-only t) (ol (overlay-lists))) (erase-buffer) --- 1004,1009 ---- *************** *** 1101,1107 **** (with-current-buffer (get-buffer-create buffer-name) (switch-to-buffer (current-buffer)) ;; Cleanup buffer - (kill-all-local-variables) (let ((inhibit-read-only t) (ol (overlay-lists))) (erase-buffer) --- 1102,1107 ----