help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Avoid asking to user for lock (ask-user-about-lock)


From: David Capello
Subject: Re: Avoid asking to user for lock (ask-user-about-lock)
Date: Thu, 24 Sep 2015 18:33:54 -0300

On Thu, Sep 24, 2015 at 6:10 PM, Stefan Monnier <monnier@iro.umontreal.ca>
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]