Skip to content

haskell-mode does not work in emacs 24.4.1 in archlinux #380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
adrianor opened this issue Nov 25, 2014 · 21 comments
Closed

haskell-mode does not work in emacs 24.4.1 in archlinux #380

adrianor opened this issue Nov 25, 2014 · 21 comments

Comments

@adrianor
Copy link

I have installed haskell mode for emacs in archlinux via:
sudo pacman -S emacs-haskell-mode
No problem so far. On my init.el file I have the load:
(load "/usr/share/emacs/site-lisp/haskell-mode/haskell-mode.el")
However, if I do "M-x haskell-mode" I get:
Symbol's value as variable is void: haskell-font-lock-choose-keywords
And also my haskell code is not highlighted as it is suppose to be.

@ivan-m
Copy link
Contributor

ivan-m commented Nov 26, 2014

This sounds like a packaging issue to me; is the haskell-font-lock.el file being installed?

@adrianor
Copy link
Author

Maibe it was not installed. I removed the application and clone the repo using git.
I followed the steps described here https://github.com/haskell/haskell-mode and everything works nicely.

So yes, there's a problem with the pacman package.

@fosskers
Copy link

Try emacs-haskell-mode-git from the AUR.

@purcell
Copy link
Member

purcell commented Dec 13, 2014

Yep, or you can M-x package-install it from MELPA.

@gracjan
Copy link
Contributor

gracjan commented Jan 23, 2015

Is this one solved for you, @adrianor?

@gracjan
Copy link
Contributor

gracjan commented Feb 17, 2015

@purcell? @adrianor? Can we close this?

@purcell purcell closed this as completed Feb 17, 2015
@purcell
Copy link
Member

purcell commented Feb 17, 2015

I think so, thanks. @adrianor can re-open it if it's still a problem.

@adrianor
Copy link
Author

no problem, can be closed

2015-02-17 10:06 GMT-06:00 Steve Purcell [email protected]:

I think so, thanks. @adrianor https://github.com/adrianor can re-open
it if it's still a problem.


Reply to this email directly or view it on GitHub
#380 (comment)
.

@gracjan gracjan reopened this Mar 23, 2015
@gracjan
Copy link
Contributor

gracjan commented Mar 23, 2015

Reopened.

2015-03-23 2:05 GMT+01:00 Michał Adamczyk:

I just got exactly the same issue, even archlinux and emacs version are
the same. BUT I did install haskell-mode via cask (melpa). I guess this
topic should be reopened.

xx

@gracjan
Copy link
Contributor

gracjan commented Mar 23, 2015

Michał, can you check what version is pacman installing for you?

@gracjan
Copy link
Contributor

gracjan commented Mar 23, 2015

@adamczykm: Michał, can you check what version is pacman installing for you?

@adamczykm
Copy link

@gracjan You were too fast :). Melpa package didn't create autoload file, so I, going by usual convention, required haskell-mode.el. Requiring haskell.el instead fixed all of the issues.
So maybe the thread didn't have to be reopened, it's strange though that the 'name-mode.el' isn't the root file. Thanks.

@gracjan
Copy link
Contributor

gracjan commented Mar 23, 2015

@adamczykm: pacman package sure contains haskell-mode-autoloads.el (does not contain haskell-mode-autoloads.elc, not sure if that is the convention or what is the point).

pacman package also contains a lot of '*.elc' files which is arguably not a good thing as that depends on exact emacs version present.

@adamczykm: Can you report a bug to archlinux packager that did package haskell-mode?

@adamczykm
Copy link

I didn't use pacman. I used cask https://github.com/cask/cask

@gracjan
Copy link
Contributor

gracjan commented Mar 23, 2015

Comfirmed, melpa package does not have autoloads inside.

Should melpa generate autoloads when installing? Should CASK generate autoloads when installing?

What is the convention here?

@purcell
Copy link
Member

purcell commented Mar 23, 2015

package.el generates autoloads at the point when the package is installed.

@gracjan
Copy link
Contributor

gracjan commented Mar 23, 2015 via email

@purcell
Copy link
Member

purcell commented Mar 23, 2015

Not sure. I thought that cask just uses package.el and the package-build.el which provides the machinery for MELPA.

@gracjan
Copy link
Contributor

gracjan commented Mar 23, 2015

Are autoload generated from *.el or there is a need for a special declaration file?

@purcell
Copy link
Member

purcell commented Mar 23, 2015

They're generated from the ;;;###autoload comments in the .el files, via the standard update-directory-autoloads function.

@gracjan
Copy link
Contributor

gracjan commented Mar 23, 2015

@adamczykm: I load haskell-mode-autoloads.el not haskell-mode.el, like this:

(add-to-list 'load-path "~/Sources/haskell-mode")
(require 'haskell-mode-autoloads)

and then everything works.

@gracjan gracjan closed this as completed Mar 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants