[Top][All Lists]

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

RE: flet is obsolete, but...

From: Drew Adams
Subject: RE: flet is obsolete, but...
Date: Thu, 11 Oct 2012 06:48:48 -0700

>   (defun my/revert-buffer ()
>     "Unconditionally revert current buffer."
>     (interactive)
>     (let ((revert-without-query t)) (revert-buffer)))
> but I don't understand why it does not work:

Others have explained why it does not work.
Here's another way:

(defun revert-buffer-no-confirm ()
  "Revert buffer without confirmation."
  (interactive) (revert-buffer t t))

(I bind it to `f5', in keeping with the MS Windows use of that key.)

reply via email to

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