[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"
<wxhgmqzgwmuf@spammotel.com> 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.
`----
Bye,
Tassilo
- flet is obsolete, but..., Sebastien Vauban, 2012/10/10
- Re: flet is obsolete, but..., Jambunathan K, 2012/10/10
- Re: flet is obsolete, but..., Jambunathan K, 2012/10/10
- Re: flet is obsolete, but..., Barry Margolin, 2012/10/10
- Message not available
- Re: flet is obsolete, but..., Sebastien Vauban, 2012/10/11
- Re: flet is obsolete, but...,
Tassilo Horn <=
- Re: flet is obsolete, but..., Jambunathan K, 2012/10/11
- RE: flet is obsolete, but..., Drew Adams, 2012/10/11
- RE: flet is obsolete, but..., Ludwig, Mark, 2012/10/11
- `f5' for refreshing/reverting without confirmation [was: flet is obsolete, but...], Drew Adams, 2012/10/11