From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Several seconds of delay when exiting Emacs Date: Tue, 13 Dec 2011 20:15:50 -0800 Message-ID: <118483C69F8247D5AB7AE33507D74D74@us.oracle.com> References: <87obvuyewt.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1323836170 12800 80.91.229.12 (14 Dec 2011 04:16:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Dec 2011 04:16:10 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "'Steven Har'" , "'Tassilo Horn'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 14 05:16:06 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RagGD-0007YP-6g for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Dec 2011 05:16:05 +0100 Original-Received: from localhost ([::1]:40897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RagGB-0004Hd-RN for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Dec 2011 23:16:03 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:40368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RagG7-0004HY-IK for help-gnu-emacs@gnu.org; Tue, 13 Dec 2011 23:16:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RagG6-0008La-Gv for help-gnu-emacs@gnu.org; Tue, 13 Dec 2011 23:15:59 -0500 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:17818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RagG6-0008LU-8j for help-gnu-emacs@gnu.org; Tue, 13 Dec 2011 23:15:58 -0500 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pBE4FtFD005736 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 14 Dec 2011 04:15:55 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pBE4FrBk025244 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Dec 2011 04:15:54 GMT Original-Received: from abhmt107.oracle.com (abhmt107.oracle.com [141.146.116.59]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id pBE4Fr7J021123; Tue, 13 Dec 2011 22:15:53 -0600 Original-Received: from dradamslap1 (/10.159.37.49) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 13 Dec 2011 20:15:52 -0800 X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 In-Reply-To: Thread-Index: Acy6BUo8AH1prAQTS0ycaZy+0G2vLgAEFXsw X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-CT-RefId: str=0001.0A090208.4EE822FC.002D,ss=1,re=0.000,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83196 Archived-At: > Debugger entered--Lisp error: (quit) > save-place-forget-unreadable-files() > save-place-alist-to-file() > save-place-kill-emacs-hook() > run-hooks(kill-emacs-hook) > kill-emacs() > save-buffers-kill-emacs(nil) > save-buffers-kill-terminal(nil) > call-interactively(save-buffers-kill-terminal nil nil) I know nothing about `saveplace.el', but looking around a little it appears that that is the library involved here. Take a look at it. Look at the values of your `save-place-*' user options (e.g., `save-place-limit'). Look at what's in your file `save-place-file' (by default, `~/.emacs-places'). If you have lots of places recorded (for lots of files), or lots of files that need to be checked for readability (see `save-place-skip-check-regexp'), then that could explain why Emacs takes a while to quit. This is what `save-place-forget-unreadable-files' does, according to its doc string: Remove unreadable files from `save-place-alist'. For each entry in the alist, if `file-readable-p' returns nil for the filename, remove the entry. Save the new alist (as the first pair may have changed) back to `save-place-alist'. (`save-place-alist' is the list of places to save to `save-place-file'.)