Emacs-D-Mode-Maintainers / Emacs-D-Mode

An Emacs mode for D code.
GNU General Public License v3.0
84 stars 22 forks source link

Not working properly on Emacs 24.4 #29

Closed atilaneves closed 10 years ago

atilaneves commented 10 years ago

I mention the Emacs version because it's the only thing I can think of that's changed in my setup recently. I can't see anything in d-mode's recent git history that could explain the change in behaviour. Right now syntax highlighting doesn't work half of the time and even tab indentation failed for me on the last file I tried editing. I thought maybe the highlighting was a solarized issue but I changed colour scheme and the problem was the same.

atilaneves commented 10 years ago

Short program (on Arch Linux 64-bit) that reproduces the problem below. The void in main isn't highlighted:

import std.stdio;
import std.algorithm;

string foo(in string str) {
    return "";
}

void main() {
}
russel commented 10 years ago

I just cut and paste your code to Debian Sid with Emacs 24.4.1 and d-mode master/HEAD and I get the void coloured the same as string in the function above, along with main and foo being the same colour. So I guess, at least for the moment, this is a "works for me".

atilaneves commented 10 years ago

I renamed .emacs.d, started off with a clean slate and indeed things seem to work. I then recloned my .emacs.d repository and I noticed that in the old problematic one I had d-mode-20141018.143 whereas the current one seems to be d-mode-20141017.2243. MELPA/Marmalade issue? I don't know.

In any case, it works for me as well now.

russel commented 10 years ago

I guess there must have been an hiccup at MELPA: the problematic d-mode is clearly later than the working one, but the working one is the one listed for me as the MELPA offering. However there have been two commits since this version. I will have to investigate a little more what triggers a MELPA "release".