Bug#536091: haml-elisp: byte-compilation fails

2009-07-18 Thread Gunnar Wolf
tags 536091 + upstream
tags 536091 + patch
thanks

Hi,

I have reported this breakage to the upstream authors; I am currently
working with Axel Beckert; so far, we have found this patch to allow
for emacs22 (or emacs23 snapshot) usage:

@@ -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))

However, it does still die with emacs21. I hope to get answer from
upstream soon(ish?)

-- 
Gunnar Wolf • gw...@gwolf.org • (+52-55)5623-0154 / 1451-2244


pgpyegXMXxvEa.pgp
Description: PGP signature


Bug#536091: haml-elisp: byte-compilation fails

2009-07-07 Thread Aaron M. Ucko
Package: haml-elisp
Version: 2.2.0-1
Severity: grave
Justification: renders package unusable

| Setting up haml-elisp (2.2.0-1) ...
| install/haml-elisp: Handling install of emacsen flavor emacs
| install/haml-elisp: Handling install of emacsen flavor emacs21
| install/haml-elisp: byte-compiling for emacs21
| While compiling haml-extend-region-multiline-hashes in file 
/usr/share/emacs21/site-lisp/haml-elisp/haml-mode.el:
|   ** `(char-before)' called for effect
|   ** `(char-after (1- (point)))' called for effect
| While compiling toplevel forms in file 
/usr/share/emacs21/site-lisp/haml-elisp/haml-mode.el:
|   !! Symbol's value as variable is void ((haml-tag-beg-re))
| While compiling toplevel forms in file 
/usr/share/emacs21/site-lisp/haml-elisp/sass-mode.el:
|   !! error (("Invalid escape character syntax"))
| Done
| emacs-package-install: /usr/lib/emacsen-common/packages/install/haml-elisp 
emacs21 emacs21 emacs22 xemacs21 failed at 
/usr/lib/emacsen-common/emacs-package-install line 30,  line 1.
| dpkg: error processing haml-elisp (--configure):
|  subprocess installed post-installation script returned error exit status 1
| Errors were encountered while processing:
|  haml-elisp

I haven't had time to test this, but I believe placing the definition
of haml-tag-beg-re (on line 64 of haml-mode.el) within

(eval-when-compile ...)

should address the former and replacing \s with \\s in the definition
of sass-line-keywords (on lines 92-94 of sass-mode.el) should address
the latter, which FWIW only emacs21 properly reports.  (emacs22
instead interprets "\s" as " ", which isn't quite right, and xemacs21
likely does something similar.)

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages haml-elisp depends on:
ii  emacs [emacsen]  22.3+1-1.1  The GNU Emacs editor (metapackage)
ii  emacs21 [emacsen]21.4a+1-5.7 The GNU Emacs editor
ii  emacs22-gtk [emacsen]22.3+1-1.1  The GNU Emacs editor (with GTK use
ii  xemacs21-mule [emacsen]  21.4.22-2   highly customizable text editor --
ii  xemacs21-nomule [emacsen]21.4.22-2   highly customizable text editor --

Versions of packages haml-elisp recommends:
ii  libhaml-ruby  2.2.0-1Elegant, easy and powerful templat

haml-elisp suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org