From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68945 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: Re: lock mechanism like in desktop.el Date: Sun, 30 Aug 2009 15:58:53 -0400 Message-ID: References: <87r5v7lpzj.fsf@jidanni.org> <87tyzw12p0.fsf@uwo.ca> <871vmthodp.fsf@newton.gmurray.org.uk> <87ab1h7k0z.fsf_-_@marauder.physik.uni-ulm.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1251662388 942 80.91.229.12 (30 Aug 2009 19:59:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Aug 2009 19:59:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: ding@gnus.org Original-X-From: ding-owner+M17364@lists.math.uh.edu Sun Aug 30 21:59:41 2009 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1MhqYu-00028M-Ce for ding-account@gmane.org; Sun, 30 Aug 2009 21:59:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1MhqYi-0004yX-BX; Sun, 30 Aug 2009 14:59:28 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1MhqYg-0004yB-SL for ding@lists.math.uh.edu; Sun, 30 Aug 2009 14:59:26 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1MhqYf-0006JH-Rb for ding@lists.math.uh.edu; Sun, 30 Aug 2009 14:59:26 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182] helo=ironport2-out.teksavvy.com) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1MhqZG-0008NH-00 for ; Sun, 30 Aug 2009 22:00:03 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqYEAGp2mkpFpYuS/2dsb2JhbACBU9NvgjSBZgWHaA X-IronPort-AV: E=Sophos;i="4.44,300,1249272000"; d="scan'208";a="44550205" Original-Received: from 69-165-139-146.dsl.teksavvy.com (HELO pastel.home) ([69.165.139.146]) by ironport2-out.teksavvy.com with ESMTP; 30 Aug 2009 15:57:50 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 4E9CC7F42; Sun, 30 Aug 2009 15:58:53 -0400 (EDT) In-Reply-To: <87ab1h7k0z.fsf_-_@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Sun, 30 Aug 2009 11:01:16 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68945 gmane.emacs.devel:114881 Archived-At: > desktop.el has a lock mechanism that is independent of external > programs. I'd prefer such a solution. Maybe the lock mechanism in > desktop.el could be made more generic (and moved from desktop.el to > simple.el/files.el?) so that other packages could use it without > duplicating the code (and loading desktop.el). We already have such functionality (lock-buffer, unlock-buffer, file-locked-p), or am I missing something? Stefan