<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>38563</bug_id>
          
          <creation_ts>2004-01-17 17:58 0000</creation_ts>
          <short_desc>haskell-mode&apos;s init file does too much</short_desc>
          <delta_ts>2004-01-18 09:48:06 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>simons@cryp.to</reporter>
          <assigned_to>emacs@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>simons@cryp.to</who>
            <bug_when>2004-01-17 17:58:35 0000</bug_when>
            <thetext>The file 50haskell-mode-gentoo.el installed by haskell-mode contains, among other things, these directives:

  (add-hook &apos;haskell-mode-hook &apos;turn-on-haskell-font-lock)
  (add-hook &apos;haskell-mode-hook &apos;turn-on-haskell-decl-scan)
  (add-hook &apos;haskell-mode-hook &apos;turn-on-haskell-doc-mode)
  (add-hook &apos;haskell-mode-hook &apos;turn-on-haskell-indent)
  (add-hook &apos;haskell-mode-hook &apos;turn-on-haskell-simple-indent)
  (add-hook &apos;haskell-mode-hook &apos;turn-on-haskell-hugs)

IMHO it&apos;s not a good idea to add all these here. The haskell-mode is a bit shaky when it comes to changing the configuration. It&apos;s hard for a user (like me) to &quot;un-add&quot; any of these hooks. So if I don&apos;t want to run the, say, decl-scan feature, I have to edit the file to remove the line! This is bound to create problems when updating to a new version.

Maybe it would be best to keep the code in there but to comment it out, telling te user to add the appropriate directives in a file of his own?

Reproducible: Always
Steps to Reproduce:
1.
2.
3.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jbms@cmu.edu</who>
            <bug_when>2004-01-18 09:48:06 0000</bug_when>
            <thetext>Fixed in CVS.

Because those customizations are mentioned in the installation documentation, and the ebuild already suggests that the user refer to it, I see no need to even include them commented in the site file.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>