[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xfm



On Thu, Mar 31, 2005 at 12:14:18PM +0200, Alf Schlichting wrote:
> Hello!
> 
> Since some time xfm from ports refuses to work.
> On startup it complains:
> 
> Warning: translation table syntax error: Unknown modifier name:   HIST_TRANSLATION
> Warning: ... found while parsing 'HIST_TRANSLATION(FocusSet(), ) Shift	<Key>Tab:FocusTraverse(b)'
> Warning: String to TranslationTable conversion encountered errors
> Warning: translation table syntax error: Unknown modifier name:   HIST_TRANSLATION
> Warning: ... found while parsing 'HIST_TRANSLATION(,)   <Btn1Up>(2)         : fileRefresh()'
> Warning: String to TranslationTable conversion encountered errors
> Warning: translation table syntax error: Unknown modifier name:   LOG_TRANSLATION
> Warning: ... found while parsing 'LOG_TRANSLATION 	<Key>n			: notify(*file*new)'
> Warning: String to TranslationTable conversion encountered errors
> 
> After double clicking on a folder in the file manager window, it works
> like usual. But after that one can not open another folder etc., it just
> sits there.
> 
> Solution for me was to remove the syntax errors mentioned in the log 
> from /usr/local/lib/X11/app-defaults/Xfm.
> After that it works correctly again. 
> 
> However i think the error origins from parsing errors in the build process.
> There is a target "Xfm.ad" in the Makefile where Xfm.cpp gets parsed.
> Someone with more insight may have a look at it.
> 
> Alf
> 
> Oh yes,
> 
> leopold_(_at_)_werkel:31$ uname -a
> OpenBSD werkel.rechners.hier 3.7 GENERIC#50 i386
> leopold_(_at_)_werkel:32$ 
> 
> Xfm rebuild today.
> 

Ok, found it. Some missing spaces in ${XFM}/lib/Xfm.cpp.

Save the patch below under /usr/ports/x11/patches/patch-lib_Xfm_cpp.

Alf

--- lib/Xfm.cpp.orig	Mon Apr  4 10:39:29 2005
+++ lib/Xfm.cpp	Mon Apr  4 10:39:32 2005
@@ -268,7 +268,7 @@
  <Key>Linefeed : no-op() \n\
  Ctrl<Key>J : no-op() \n
 #else
-Xfm*TextField.baseTranslations:#override\n\
+Xfm*TextField.baseTranslations:#override\n \
 HIST_TRANSLATION(FocusSet(), ) \
 Shift	<Key>Tab:FocusTraverse(b)\n\
 	<Key>Tab:FocusTraverse()\n\
@@ -327,7 +327,7 @@
 #ifdef USE_NEW_WIDGETS
 Xfm*file window*folderlabel.baseTranslations: #override\n\
   <Enter>	      : trackCursor()\n\
-  <Leave>	      : trackCursor()\n\
+  <Leave>	      : trackCursor()\n \
 HIST_TRANSLATION(,) \
   <Btn1Up>(2)         : fileRefresh()\n
 Xfm*file window*viewport.baseTranslations:#override\n\
@@ -358,7 +358,7 @@
 Ctrl	<Key>f			: notify(*view*filter)\n\
 Ctrl	<Key>h			: notify("*view*hide folders")\n\
 Ctrl	<Key>m			: notify("*view*mix folders/files")\n\
-Ctrl	<Key>u			: notify("*view*show hidden files")\n\
+Ctrl	<Key>u			: notify("*view*show hidden files")\n \
 LOG_TRANSLATION \
 	<Key>n			: notify(*file*new)\n\
  	<Key>m			: notify(*file*move)\n\
@@ -399,7 +399,7 @@
 Ctrl	<Key>f			: notify(*view*filter)\n\
 Ctrl	<Key>h			: notify("*view*hide folders")\n\
 Ctrl	<Key>m			: notify("*view*mix folders/files")\n\
-Ctrl	<Key>u			: notify("*view*show hidden files")\n\
+Ctrl	<Key>u			: notify("*view*show hidden files")\n \
 LOG_TRANSLATION \
 	<Key>n			: notify(*file*new)\n\
  	<Key>m			: notify(*file*move)\n\
@@ -415,7 +415,7 @@
  	<Key>x			: notify(*file*xterm)\n\
  	<Key>q			: notify(*file*quit)\n
 #else
-Xfm*file window*folderlabel.baseTranslations: #override\n\
+Xfm*file window*folderlabel.baseTranslations: #override\n \
 HIST_TRANSLATION(,)\
   <Btn1Up>(2)         : fileRefresh()\n
 Xfm*file window*icon box*file_icon.baseTranslations: #override\n\