darcs

Issue 330 guidance on hacking would be useful

Title guidance on hacking would be useful
Priority wishlist Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, fx, kowey, thorkilnaur, tommy
Assigned To
Topics

Created on 2006-11-04.17:22:37 by fx, last changed 2009-08-27.13:50:40 by admin.

Messages
msg1169 (view) Author: fx Date: 2006-11-04.17:22:31
I found that the test suite in the unstable branch complains at tabs
in the source.  It might be useful to have a HACKING (or something)
file with guidance on that sort of thing.

You could tell Emacs users to use

  (add-hook 'haskell-mode-hook '(lambda () (setq indent-tabs-mode nil)))

or use <URL:http://www.loveshack.ukfsn.org/emacs/dir-locals.el> or
<URL:http://www.loveshack.ukfsn.org/emacs/indent-tabs-maybe.el> to set
indent-tabs-mode locally.  It could actually be set in local variables
in the Haskell source files, and I guess something similar can be done
for anyone cursed with vi.
msg1171 (view) Author: kowey Date: 2006-11-04.21:20:54
On Sat, Nov 04, 2006 at 17:22:38 +0000, Dave Love wrote:
> I found that the test suite in the unstable branch complains at tabs
> in the source.  It might be useful to have a HACKING (or something)
> file with guidance on that sort of thing.

Incidentally, have you seen the Developers' Tips page on the wiki?
http://darcs.net/DarcsWiki/DeveloperTips
msg1172 (view) Author: dagit Date: 2006-11-04.21:39:45
We have a developer FAQ
http://darcs.net/DarcsWiki/DeveloperFAQ

And some developer Tips
http://darcs.net/DarcsWiki/DeveloperTips

You're right that we should probably say something about tabs, but on
the other hand with the test suite checking for it gets found right
away for most people :)

And also, discouraging tabs seems to be common in the Haskell
community so I think it's assumed for many darcs contributors.

If we added a HACKING file my proposal is have it point at the above
links and add something to the FAQ that shows how to disable tabs in
both Vim and Emacs.

Thoughts?
Jason

On 11/4/06, Dave Love <bugs@darcs.net> wrote:
>
> New submission from Dave Love <fx@gnu.org>:
>
> I found that the test suite in the unstable branch complains at tabs
> in the source.  It might be useful to have a HACKING (or something)
> file with guidance on that sort of thing.
>
> You could tell Emacs users to use
>
>   (add-hook 'haskell-mode-hook '(lambda () (setq indent-tabs-mode nil)))
>
> or use <URL:http://www.loveshack.ukfsn.org/emacs/dir-locals.el> or
> <URL:http://www.loveshack.ukfsn.org/emacs/indent-tabs-maybe.el> to set
> indent-tabs-mode locally.  It could actually be set in local variables
> in the Haskell source files, and I guess something similar can be done
> for anyone cursed with vi.
>
> ----------
> messages: 1169
> nosy: EricKow, droundy, fx, tommy
> status: unread
> title: guidance on hacking would be useful
>
> ____________________________________
> Darcs issue tracker <bugs@darcs.net>
> <http://bugs.darcs.net/issue330>
> ____________________________________
>
> _______________________________________________
> darcs-devel mailing list
> darcs-devel@darcs.net
> http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel
>
>
msg1173 (view) Author: fx Date: 2006-11-05.14:05:29
Eric Kow <bugs@darcs.net> writes:

> Incidentally, have you seen the Developers' Tips page on the wiki?
> http://darcs.net/DarcsWiki/DeveloperTips

No; thanks.  It's probably worth at least pointing to that somewhere
in the source tree, though.
msg1174 (view) Author: fx Date: 2006-11-05.14:15:54
"Jason Dagit" <dagit@codersbase.com> writes:

> You're right that we should probably say something about tabs, but on
> the other hand with the test suite checking for it gets found right
> away for most people :)

The test suite takes an age on my system, though, which is a
disincentive to run it.

> And also, discouraging tabs seems to be common in the Haskell
> community so I think it's assumed for many darcs contributors.
>
> If we added a HACKING file my proposal is have it point at the above
> links and add something to the FAQ that shows how to disable tabs in
> both Vim and Emacs.

Actually, I just noticed that the current version of the Emacs Haskell
mode that monnier maintains sets indent-tabs-mode to nil anyhow, but I
happened to be using another.
msg1175 (view) Author: kowey Date: 2006-11-05.14:22:21
On Sun, Nov 05, 2006 at 14:16:00 +0000, Dave Love wrote:
> The test suite takes an age on my system, though, which is a
> disincentive to run it.

Well, you can also run limited fragments of test suite.  Just put the
name of the tests you want to run in tests/test_to_run (newline
seperated)

In your case, you might have the entry haskell_policy.sh
which checks for tabs and what not

--eric (who is very slowly making his way through patches)
msg1932 (view) Author: kowey Date: 2007-07-23.20:40:39
Part of the 1.0.9 README
History
Date User Action Args
2006-11-04 17:22:37fxcreate
2006-11-04 21:21:02koweysetstatus: unread -> unknown
nosy: droundy, tommy, kowey, fx
messages: + msg1171
2006-11-04 21:39:52dagitsetnosy: + dagit
messages: + msg1172
2006-11-05 09:53:46dagitsetnosy: droundy, tommy, kowey, fx, dagit
2006-11-05 14:05:34fxsetnosy: droundy, tommy, kowey, fx, dagit
messages: + msg1173
2006-11-05 14:16:00fxsetnosy: droundy, tommy, kowey, fx, dagit
messages: + msg1174
2006-11-05 14:22:22koweysetnosy: droundy, tommy, kowey, fx, dagit
messages: + msg1175
2006-11-11 12:33:33koweysetstatus: unknown -> resolved-in-unstable
nosy: droundy, tommy, kowey, fx, dagit
2007-07-23 20:40:06koweysetstatus: resolved-in-unstable -> resolved
nosy: + beschmi
2007-07-23 20:40:40koweysetstatus: resolved -> unknown
messages: + msg1932
2007-08-01 07:11:22koweysetstatus: unknown -> resolved
2009-08-06 17:43:16adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, zooko, mornfall, simon, thorkilnaur, - droundy, fx
2009-08-06 20:40:19adminsetnosy: - beschmi
2009-08-10 21:58:11adminsetnosy: + fx, - markstos, darcs-devel, zooko, jast, Serware, mornfall
2009-08-10 23:57:37adminsetnosy: - dagit
2009-08-25 17:56:30adminsetnosy: + darcs-devel, - simon
2009-08-27 13:50:40adminsetnosy: tommy, kowey, fx, darcs-devel, thorkilnaur, dmitry.kurochkin