I love it! In fact, I love it so much, I've come up with a couple suggestions:
1. When editing a file that does not contain such a comment, the current settings should be determined and a comment should be added to the file to declare them formally. This would make it automatic for emacs users and make it very clear for everyone else.
2. Furthermore, I think the comment should be more complete. Here are my current settings for SaferFilter:
File Encoding: Unicode (UTF-8)
Line Endings: Unix (LF)
Tab Width: 4
Indent Width: 4
Editor Uses Tabs: YES
I'm sure the comment syntax can accommodate these settings (anyone knows how?).
Let's hear the pros and cons.
Yves (avian)
On Thursday, February 6, 2003, at 05:48 PM, Matthew Toseland wrote:
Thanks to thelema, there is one obvious possibility:
If we put
/* -*- Mode: java; c-basic-indent: 4; tab-width: 4 -*- */
as the first line of a file, emacs will automatically use 4 char tabs.
We could add "; indent-tabs-mode: nil" to make it always use spaces, but
tabs "feel" better. So I have added this to SaferFilter.java.
On Fri, Feb 07, 2003 at 12:52:50AM +0000, Matthew Toseland wrote:
On Thu, Feb 06, 2003 at 02:28:43PM -0800, Yves Lempereur wrote:Heh, ~ 8 years ago I used MSVC 1.0. I upgraded to XEmacs and don't look
Please don't take this the wrong way, but I've stopped using emacs
nearly 20 years ago, I've been using modern IDE's ever since (yes, I've
been a programmer for a long long time, and I still use vi for some
tasks). The file SaferFilter merely uses real tabs to indent the lines,
back. But I'm sure there are people on the project who use KDevelop and
more obscure things.
which all the IDE's I've seen and used in the last 20 years have always
expanded to 4 spaces, by default. Now, if XEmacs expands tabs to 8
spaces, that's a pretty sad state of things (the ONLY language that it
is useful for is Assembly Language, and we know how many people still
write it).
One other option is to indent using spaces instead of tabs, that way
everyone sees the same thing. I've always avoided it because it makes
the files enormous. In fact, I give shit to my programmers when they do
it (I'm a CTO, lead programmer and I manage a team of programmers).
Hmm.
The last possibility (but hardly an option), is to combine tabs and
space. The positions being encoded as follows: none, 4 spaces, 1 tab, 1
tab + 4 spaces, 2 tabs, 2 tabs + 4 spaces, 3 tabs, etc... (is that what
you've been doing?). I've always considered this an insane thing to do.
This is what (x)emacs seems to do by default. Most code is all-spaces, but a lot of it is spaces and tabs like this.If XEmacs has a pref for how many spaces it expands tabs into, simply flip it to 4, and the world can go on. Otherwise, tell me what you want me to do and I'll be glad to comply (as seven would say).Well, does anyone know how to set the number of spaces in a tab on the first line of a file for emacsen?--Most respectfully,Yves
Matthew Toseland
[EMAIL PROTECTED][EMAIL PROTECTED]
Full time freenet hacker.
http://freenetproject.org/
Freenet Distribution Node (temporary) at http://amphibian.dyndns.org:8889/3arPAuj7w-c/
ICTHUS.
--
Matthew Toseland
[EMAIL PROTECTED][EMAIL PROTECTED]
Full time freenet hacker.
http://freenetproject.org/
Freenet Distribution Node (temporary) at http://amphibian.dyndns.org:8889/3arPAuj7w-c/
ICTHUS.
<mime-attachment>
_______________________________________________ devl mailing list [EMAIL PROTECTED] http://hawk.freenetproject.org:8080/cgi-bin/mailman/listinfo/devl
