On Sat, Sep 18, 2010 at 03:40:16PM +0400, Nikolai Kondrashov wrote: > Add tabstop=8 to vim modelines in source code files to avoid incorrect > shifting if the editor has other tabstop setting. > > Signed-off-by: Nikolai Kondrashov <[email protected]> > --- > > I have tabstop=4 by default (work coding guidelines) and </> commands shift > by incorrect amount.
applied, thanks. I'm on holidays right now, sorry about the delays. Cheers, Peter > include/isdv4.h | 2 +- > src/wcmCommon.c | 2 +- > src/wcmConfig.c | 2 +- > src/wcmFilter.c | 2 +- > src/wcmISDV4.c | 2 +- > src/wcmTouchFilter.c | 2 +- > src/wcmUSB.c | 2 +- > src/wcmValidateDevice.c | 2 +- > src/wcmXCommand.c | 2 +- > src/xf86Wacom.c | 2 +- > src/xf86Wacom.h | 2 +- > src/xf86WacomDefs.h | 2 +- > tools/isdv4-serial-debugger.c | 2 +- > tools/xsetwacom.c | 2 +- > 14 files changed, 14 insertions(+), 14 deletions(-) > > diff --git a/include/isdv4.h b/include/isdv4.h > index 33fc26b..fb10d08 100644 > --- a/include/isdv4.h > +++ b/include/isdv4.h > @@ -218,4 +218,4 @@ static inline int isdv4ParseCoordinateData(const unsigned > char *buffer, const si > > #endif /* ISDV4_H */ > > -/* vim: set noexpandtab shiftwidth=8: */ > +/* vim: set noexpandtab tabstop=8 shiftwidth=8: */ > diff --git a/src/wcmCommon.c b/src/wcmCommon.c > index 7e50878..46e77c8 100644 > --- a/src/wcmCommon.c > +++ b/src/wcmCommon.c > @@ -1951,4 +1951,4 @@ WacomCommonPtr wcmRefCommon(WacomCommonPtr common) > return common; > } > > -/* vim: set noexpandtab shiftwidth=8: */ > +/* vim: set noexpandtab tabstop=8 shiftwidth=8: */ > diff --git a/src/wcmConfig.c b/src/wcmConfig.c > index 163f150..cf239f3 100644 > --- a/src/wcmConfig.c > +++ b/src/wcmConfig.c > @@ -602,4 +602,4 @@ _X_EXPORT XF86ModuleData wacomModuleData = > wcmUnplug > }; > > -/* vim: set noexpandtab shiftwidth=8: */ > +/* vim: set noexpandtab tabstop=8 shiftwidth=8: */ > diff --git a/src/wcmFilter.c b/src/wcmFilter.c > index eff7822..f2cbec1 100644 > --- a/src/wcmFilter.c > +++ b/src/wcmFilter.c > @@ -312,4 +312,4 @@ void wcmTilt2R(WacomDeviceStatePtr ds) > ds->rotation = -ds->rotation; > } > > -/* vim: set noexpandtab shiftwidth=8: */ > +/* vim: set noexpandtab tabstop=8 shiftwidth=8: */ > diff --git a/src/wcmISDV4.c b/src/wcmISDV4.c > index 0dfb4fd..ae14164 100644 > --- a/src/wcmISDV4.c > +++ b/src/wcmISDV4.c > @@ -948,4 +948,4 @@ static int isdv4ProbeKeys(InputInfoPtr pInfo) > return tablet_id; > } > > -/* vim: set noexpandtab shiftwidth=8: */ > +/* vim: set noexpandtab tabstop=8 shiftwidth=8: */ > diff --git a/src/wcmTouchFilter.c b/src/wcmTouchFilter.c > index bc2adf0..6050697 100644 > --- a/src/wcmTouchFilter.c > +++ b/src/wcmTouchFilter.c > @@ -487,4 +487,4 @@ static void wcmFingerZoom(WacomDevicePtr priv) > } > } > > -/* vim: set noexpandtab shiftwidth=8: */ > +/* vim: set noexpandtab tabstop=8 shiftwidth=8: */ > diff --git a/src/wcmUSB.c b/src/wcmUSB.c > index 09dca73..efc3f52 100644 > --- a/src/wcmUSB.c > +++ b/src/wcmUSB.c > @@ -1184,4 +1184,4 @@ static int usbProbeKeys(InputInfoPtr pInfo) > } > > > -/* vim: set noexpandtab shiftwidth=8: */ > +/* vim: set noexpandtab tabstop=8 shiftwidth=8: */ > diff --git a/src/wcmValidateDevice.c b/src/wcmValidateDevice.c > index 0a21a89..cfa9d80 100644 > --- a/src/wcmValidateDevice.c > +++ b/src/wcmValidateDevice.c > @@ -725,4 +725,4 @@ error: > return 0; > } > > -/* vim: set noexpandtab shiftwidth=8: */ > +/* vim: set noexpandtab tabstop=8 shiftwidth=8: */ > diff --git a/src/wcmXCommand.c b/src/wcmXCommand.c > index 30e6a4d..a4c4a81 100644 > --- a/src/wcmXCommand.c > +++ b/src/wcmXCommand.c > @@ -910,4 +910,4 @@ int wcmSetProperty(DeviceIntPtr dev, Atom property, > XIPropertyValuePtr prop, > > return Success; > } > -/* vim: set noexpandtab shiftwidth=8: */ > +/* vim: set noexpandtab tabstop=8 shiftwidth=8: */ > diff --git a/src/xf86Wacom.c b/src/xf86Wacom.c > index cb05adb..8fcd820 100644 > --- a/src/xf86Wacom.c > +++ b/src/xf86Wacom.c > @@ -983,4 +983,4 @@ out: > return rc; > } > > -/* vim: set noexpandtab shiftwidth=8: */ > +/* vim: set noexpandtab tabstop=8 shiftwidth=8: */ > diff --git a/src/xf86Wacom.h b/src/xf86Wacom.h > index 3afd415..465ad7c 100644 > --- a/src/xf86Wacom.h > +++ b/src/xf86Wacom.h > @@ -186,4 +186,4 @@ extern WacomCommonPtr wcmNewCommon(void); > > /****************************************************************************/ > #endif /* __XF86WACOM_H */ > > -/* vim: set noexpandtab shiftwidth=8: */ > +/* vim: set noexpandtab tabstop=8 shiftwidth=8: */ > diff --git a/src/xf86WacomDefs.h b/src/xf86WacomDefs.h > index dcd21fc..27dc1af 100644 > --- a/src/xf86WacomDefs.h > +++ b/src/xf86WacomDefs.h > @@ -485,4 +485,4 @@ struct _WacomToolArea > > #endif /*__XF86_XF86WACOMDEFS_H */ > > -/* vim: set noexpandtab shiftwidth=8: */ > +/* vim: set noexpandtab tabstop=8 shiftwidth=8: */ > diff --git a/tools/isdv4-serial-debugger.c b/tools/isdv4-serial-debugger.c > index 6834e3e..e581848 100644 > --- a/tools/isdv4-serial-debugger.c > +++ b/tools/isdv4-serial-debugger.c > @@ -582,4 +582,4 @@ int main (int argc, char **argv) > return event_loop(fd); > } > > -/* vim: set noexpandtab shiftwidth=8: */ > +/* vim: set noexpandtab tabstop=8 shiftwidth=8: */ > diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c > index cf86238..e668165 100644 > --- a/tools/xsetwacom.c > +++ b/tools/xsetwacom.c > @@ -2627,4 +2627,4 @@ int main (int argc, char **argv) > } > > > -/* vim: set noexpandtab shiftwidth=8: */ > +/* vim: set noexpandtab tabstop=8 shiftwidth=8: */ > -- > 1.7.1 ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Linuxwacom-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
