[Top][All Lists]

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

Re: flet is obsolete, but...

From: Tassilo Horn
Subject: Re: flet is obsolete, but...
Date: Thu, 11 Oct 2012 10:10:24 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux)

"Sebastien Vauban"
<> writes:

>> Use the NOCONFIRM argument of revert-buffer.
> I tried another way:

What's wrong with NOCONFIRM?

>   (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:
> --8<---------------cut here---------------start------------->8---
> Debugger entered--Lisp error: (wrong-type-argument listp t)
>   byte-code("\304\211\205\n@\305    \"\203

Because t is not a list.  The docs clearly state that
`revert-without-query' has to be a list of regular expressions.

,----[ C-h v revert-without-query RET ]
| revert-without-query is a variable defined in `files.el'.
| Its value is nil
| Documentation:
| Specify which files should be reverted without query.
| The value is a list of regular expressions.
| If the file name matches one of these regular expressions,
| then `revert-buffer' reverts the file without querying
| if the file has changed on disk and you have not edited the buffer.


reply via email to

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