Hi,

Since Haml 2.2.0, I have had the following errors when compiling the
Emacs haml-mode under emacs21, emacs22 and under an emacs23 snapshot:

In haml-extend-region-multiline-hashes:
haml-mode.el:241:9:Warning: value returned from (char-before) is unused
haml-mode.el:489:50:Error: Symbol's value as variable is void: haml-tag-beg-re

I do not know much emacs-lisp myself, but assisted by a colleague, we
find that by doing this change:

@@ -486,7 +486,7 @@
   (save-excursion
     (while t
       (beginning-of-line)
-      (if (looking-at (eval-when-compile (concat haml-tag-beg-re 
"\\([{(]\\)")))
+      (if (looking-at (concat haml-tag-beg-re "\\([{(]\\)"))
           (progn
             (goto-char (- (match-end 0) 1))
             (haml-limited-forward-sexp (save-excursion (end-of-line) (point)))

Of course, this will make each invocation of
haml-extend-region-multiline-hashes a bit slower, but at least it does
not fail when compiling (at each Emacs invocation).

Note that this patch does not solve the problem under Emacs21 - It
still refuses even to load.

Thanks for looking at this issue.

-- 
Gunnar Wolf • [email protected] • (+52-55)5623-0154 / 1451-2244

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to