emacs-devel
[Top][All Lists]
Advanced

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

Re: Question: suppress ask-user-about-lock?


From: Qiantan Hong
Subject: Re: Question: suppress ask-user-about-lock?
Date: Wed, 8 Dec 2021 19:43:32 +0000

> What about (untested)
> 
> (cl-letf (((symbol-function #'ask-user-about-lock)
>           (lambda (file proponent)
>             (signal 'file-locked (list file proponent)))))
> 
> ...)
I guess it will break under multi-thread environment?
Because FLET, or function cells in general, are not thread local.

I also feel like the above is as hacky as my
(let ((noninteractive t)) (lock-buffer))
Does anyone have more recommendations?


Best,
Qiantan




reply via email to

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