 +}
 +
 +qe_module_init(haiku_init);
+--- /dev/null	2013-03-14 16:10:28.351668000 +0100
++++ contrib/haiku-pe2qe.sh	2013-03-14 19:17:29.552599552 +0100
+@@ -0,0 +1,85 @@
++#!/bin/sh
++
++pesettings=`finddir B_USER_SETTINGS_DIRECTORY`/pe/settings
++
++fgmap=(
++"alt comment:"
++"alt error:"
++"alt keyword:"
++"alt number:"
++"alt operator:"
++"alt separator:"
++"altprocessor:"
++"attribute:"
++"char constant:html-entity"
++"comment:comment html-comment"
++"error:"
++"highlight:highlight"
++"invisibles:"
++"keyword:keyword preprocess"
++"low:window-border"
++"mark:status"
++"number:number"
++"operator:function"
++"preprocessor:"
++"selection:selection"
++"separator:"
++"string:string string-q html-string"
++"system identifier:type"
++"tag:tag"
++"tagstring:html-tag"
++"text:default mode-line minibuf"
++"user identifier:variable"
++)
++
++bgmap=(
++"low:default"
++"selection:mode-line window-border region-hilite"
++)
++
++map_pe_fg () {
++	for item in "${fgmap[@]}"; do
++		if [ "$1" = "${item%:*}" ]; then
++			echo "${item#*:}"
++			return
++		fi
++	done
++}
++
++map_pe_bg () {
++	for item in "${bgmap[@]}"; do
++		if [ "$1" = "${item%:*}" ]; then
++			echo "${item#*:}"
++			return
++		fi
++	done
++}
++
++out_style () {
++	echo "set_style(\"$1\", \"$2\", \"$3\")"
++}
++
++echo "// map Pe settings to QEmacs"
++echo "// generated by $(basename "$0") on `date`"
++
++while read line; do
++	token="${line%=*}"
++	value="${line#*=}"
++	case "$token" in
++		*color)
++			name="${token% color}"
++			qenames="$(map_pe_fg "$name")"
++			for qename in ${qenames}; do
++				#echo "color: $name -> $qename" >&2
++				out_style "$qename" "color" "$value"
++			done
++			qenames="$(map_pe_bg "$name")"
++			for qename in ${qenames}; do
++				#echo "bgcolor: $name -> $qename" >&2
++				out_style "$qename" "background-color" "$value"
++			done
++			;;
++		*)
++			;;
++	esac
++done < "$pesettings"

retrieving revision 1.50
diff -u -r1.50 Makefile
--- Makefile	5 Jun 2008 07:14:12 -0000	1.50
+++ Makefile	14 Mar 2013 18:45:07 -0000
@@ -63,7 +63,7 @@
 endif
 

retrieving revision 1.96
diff -u -r1.96 qe.h
--- qe.h	4 May 2008 15:54:39 -0000	1.96
+++ qe.h	14 Mar 2013 18:56:53 -0000
@@ -267,11 +267,11 @@
 int ustristart(const unsigned int *str, const char *val, const unsigned int **ptr);
 static inline unsigned int *umemmove(unsigned int *dest,
