anhnmncb (2008-11-24 18:20 +0800) wrote:

> Yes, but I find the anwser for emacs:
>
>   (let ((inhibit-quit t))
>
> I don't know if gvim has something like this?

The syntax for setting this variable in Emacs Lisp is one of these:

    (setq inhibit-quit t)
    (set 'inhibit-quit t)

The "let" form only binds local variables which are available only
within that particular form: (let (BINDINGS...) FORMS...)

But are you sure that inhibit-quit does what you need? It is about C-g
(keyboard-quit) which quits an Emacs command. It's not about quitting
the whole Emacs (nor Gnus) session.

Sorry for being off-topic but you also asked if gvim has "something like
this" so this is pretty confusing.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to