From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Capello Newsgroups: gmane.emacs.help Subject: Re: Avoid asking to user for lock (ask-user-about-lock) Date: Thu, 24 Sep 2015 18:33:54 -0300 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1443130484 22344 80.91.229.3 (24 Sep 2015 21:34:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Sep 2015 21:34:44 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 24 23:34:33 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZfE9u-0008TM-GI for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Sep 2015 23:34:30 +0200 Original-Received: from localhost ([::1]:35494 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfE9t-0006TD-Mo for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Sep 2015 17:34:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfE9f-0006Sa-2e for help-gnu-emacs@gnu.org; Thu, 24 Sep 2015 17:34:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfE9e-0002DO-2s for help-gnu-emacs@gnu.org; Thu, 24 Sep 2015 17:34:15 -0400 Original-Received: from mail-io0-x229.google.com ([2607:f8b0:4001:c06::229]:34393) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfE9d-0002DB-UN for help-gnu-emacs@gnu.org; Thu, 24 Sep 2015 17:34:14 -0400 Original-Received: by iofb144 with SMTP id b144so91981768iof.1 for ; Thu, 24 Sep 2015 14:34:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=IyDAuvnCyZZSo8GzMOQVn4uJUX3dEb5y99bttr+sC+o=; b=Pet1Lrjkcpx7f86L1l0iI25LwZzXVWJd3tIya+j6NUOU7YYRgaRiJ/vIWRsswpBs3O t1H+HmR0dkWkK7BvutBilYyT89wI2LQtNRbJ3N2w/LR9W/IlHjiezhwZHKp6BljAkmYF G9ybvduH+yEStUCjjDsUiUj9jVCgWITAOk05NYiZ3TslYLhiDAzI6HcxOzRj9Jbeg0o+ VAyYuuIvdrQFUVdqd2CmA0gnvw7uckjKTqXE+XAwWsLbMY/pMXcDQXogEbgGKpnThQDq mNWNBTnIlf2kc1ssj2Eh+fRdHMijfwtKZvkaAmYtjvp/J6Wj5+gKBBak6HE735mNX8tH bkhg== X-Received: by 10.107.3.168 with SMTP id e40mr3029267ioi.151.1443130453464; Thu, 24 Sep 2015 14:34:13 -0700 (PDT) Original-Received: by 10.107.58.137 with HTTP; Thu, 24 Sep 2015 14:33:54 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c06::229 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:107321 Archived-At: On Thu, Sep 24, 2015 at 6:10 PM, Stefan Monnier wrote: > > And it seems to work, but I still getting some messages like: > > .../.emacs.keyfreq.lock locked by david@pc (pid 9076): (s, q, p, ?)? > > in the minibuf. > > When? > When write-region is called by multiple Emacs instances at the same time. You can try it by yourself with the latest keyfreq master commit, using this configuration: (require 'keyfreq) (setq keyfreq-autosave-timeout 1) ;; I'm using 1 second to test the lock mechanism (keyfreq-mode 1) (keyfreq-autosave-mode 1) After that you can open two instances and try to write in both of then quickly random characters in the scratch buffer (you will need to do it quickly and switching between both instances). - David