vile
[Top][All Lists]
Advanced

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

Re: [vile] backup-style in submode definition


From: Thomas Dickey
Subject: Re: [vile] backup-style in submode definition
Date: Sun, 3 Apr 2011 18:41:07 -0400 (EDT)

On Sun, 3 Apr 2011, address@hidden wrote:

I have a few settings that are executed when vile is entering the 'mail'
submode.  The following works fine.

~with define-submode mail
   ts=8
   tabinsert
   wrapwords
~endwith

If the backup-style is present, like so.

~with define-submode mail
   backup-style=off
   ts=8
   tabinsert
   wrapwords
~endwith

I receive the following error:

[No match for 'backup-style']
[Illegal submode name: backup-style]

How do I set the backup-style based on the submode definition?

backup-style is a global mode, while submodes only work for buffer-modes.

Whether a mode is global-, buffer-, or window- is related to how it's
implemented in the code as well as the expected uses for it.

This particular case would be only a few lines of code to change.

Some of the global modes clearly have to be that way (for instance,
the xterm-mouse mode, which would be difficult to switch on a per-buffer
basis), while others are global because there's been no apparent reason
to make them apply differently to different buffer types.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



reply via email to

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