Wireshark-dev: Re: [Wireshark-dev] modelines

From: Stephen Fisher <steve@xxxxxxxxxxxxxxxxxx>
Date: Tue, 27 Sep 2011 13:13:17 -0600
On Tue, Sep 27, 2011 at 06:57:15PM +0000, Chris Maynard wrote:

> 2) In the absence of any other user preference, what is the Wireshark 
> recommendation on modeline settings, if any?  The following seems to 
> be the default settings generated at [1], so am I right to assume that 
> would be the recommendation - at least for files with all (or mostly) 
> spaces and tabs?

Since I started coding for Wireshark in 2006, the convention wisdom (as 
I understood it) has always been to stick with the formatting method 
that the file already has, whatever that may be.  Emacs is pretty good 
about keeping the same indentation as the line above the one you're 
inserting, although it may differ in spaces vs. tabs.  I'm one of the 
few fans of actual tabs.  Whatever the preference, I think having mode 
lines is a great choice so we don't have to bother (we can be lazy) 
changing our editor/remembering to format it a certain way to keep it 
consistent :).