Wireshark mailing list archives
modelines
From: Chris Maynard <Chris.Maynard () gtech com>
Date: Tue, 27 Sep 2011 18:57:15 +0000 (UTC)
A couple of questions/thoughts on modelines[1]: 1) Should emacs (and other) modelines be added to the generated modelines at [1], e.g., setq as mentioned by Zawinski[2]? 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? /* * Editor modelines - http://www.wireshark.org/tools/modelines.html * * Local variables: * c-basic-offset: 4 * tab-width: 8 * indent-tabs-mode: nil * End: * * vi: set shiftwidth=4 tabstop=8 expandtab: * :indentSize=4:tabSize=8:noTabs=true: */ And for files with all (or mostly) tabs instead of spaces, would the recommendation be to stick with tabs and adjust the modelines above slightly as follows: /* * Editor modelines - http://www.wireshark.org/tools/modelines.html * * Local variables: * c-basic-offset: 4 * tab-width: 8 * indent-tabs-mode: t * End: * * vi: set shiftwidth=4 tabstop=8 noexpandtab: * :indentSize=4:tabSize=8:noTabs=false: */ Thanks. - Chris [1] http://www.wireshark.org/tools/modelines.html [2] http://www.jwz.org/doc/tabs-vs-spaces.html ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- modelines Chris Maynard (Sep 27)
- Re: modelines Stephen Fisher (Sep 27)
- Re: modelines Chris Maynard (Sep 27)
- Re: modelines Stephen Fisher (Sep 28)
- Re: modelines Ed Beroset (Sep 28)
- Re: modelines Jeff Morriss (Sep 28)
- Re: modelines Bill Meier (Sep 28)
- Re: modelines Guy Harris (Sep 28)
- Re: modelines Chris Maynard (Sep 28)
- Re: modelines Guy Harris (Sep 28)
- Re: modelines Chris Maynard (Sep 27)
- Re: modelines Stephen Fisher (Sep 27)