From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.devel Subject: custom-save-all leaves custom-file buffer Date: Thu, 25 Aug 2005 21:28:53 +0100 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1125002680 26776 80.91.229.2 (25 Aug 2005 20:44:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Aug 2005 20:44:40 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 25 22:44:35 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E8OYA-0007Pi-3U for ged-emacs-devel@m.gmane.org; Thu, 25 Aug 2005 22:42:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E8Oc3-0004kS-8V for ged-emacs-devel@m.gmane.org; Thu, 25 Aug 2005 16:46:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E8OWb-00032f-8t for emacs-devel@gnu.org; Thu, 25 Aug 2005 16:40:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E8OWR-0002xw-TQ for emacs-devel@gnu.org; Thu, 25 Aug 2005 16:40:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E8OWR-0002oL-8T for emacs-devel@gnu.org; Thu, 25 Aug 2005 16:40:27 -0400 Original-Received: from [64.233.170.196] (helo=rproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E8ON0-0000MS-7C for emacs-devel@gnu.org; Thu, 25 Aug 2005 16:30:42 -0400 Original-Received: by rproxy.gmail.com with SMTP id y7so519534rne for ; Thu, 25 Aug 2005 13:29:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=te3Bs5Jjz/MoMfRdimFCt7VGThKCTcKmet2OsvxkPwjqVj2/2/mQEKRNAkQMkeMDJk3FexLRYBGWZkTmTEvAGZX+FtTpq/jeENQK+Xx0GkeD/iF/6F0py1o1skckjf5jWoUjDMLe839JTi0tKkYfUiOm1zlHOFMlb5ETePN+WWU= Original-Received: by 10.38.209.76 with SMTP id h76mr1134672rng; Thu, 25 Aug 2005 13:29:18 -0700 (PDT) Original-Received: from ?10.0.0.61? ( [82.26.161.140]) by mx.gmail.com with ESMTP id a2sm2702486rnf.2005.08.25.13.29.16; Thu, 25 Aug 2005 13:29:18 -0700 (PDT) Original-To: Emacs-Devel ' X-Mailer: Apple Mail (2.734) 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:42412 Archived-At: Is there a special reason why custom-save-all leaves the buffer with custom-file? I don't think the file should appear in the buffers lists - it's loaded temporarily and should be discarded. The problem with below patch is that if custom-file is already loaded as ordinary buffer, it will kill it as find-file-noselect doesn't load the file a second time. *** cus-edit.el 12 Aug 2005 11:17:57 -0000 1.230 --- cus-edit.el 25 Aug 2005 20:25:23 -0000 *************** *** 4144,4150 **** recentf-exclude)))) (set-buffer (find-file-noselect (custom-file)))) (let ((file-precious-flag t)) ! (save-buffer))))) ;;; The Customize Menu. --- 4144,4151 ---- recentf-exclude)))) (set-buffer (find-file-noselect (custom-file)))) (let ((file-precious-flag t)) ! (save-buffer)) ! (kill-buffer nil)))) ;;; The Customize Menu.