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: Stefan Monnier
Subject: Re: Avoid asking to user for lock (ask-user-about-lock)
Date: Thu, 24 Sep 2015 11:52:37 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> The problem is here:
> https://github.com/dacap/keyfreq/blob/master/keyfreq.el#L427

I think rather than override ask-user-about-lock you want to use the
MUSTBENEW argument:

 (write-region (number-to-string (emacs-pid)) nil
               keyfreq-file-lock nil 'nomessage nil nil 'excl)


-- Stefan




reply via email to

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