]> git.lyx.org Git - features.git/commitdiff
Fix spacing of greek letters; other things.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 1 Mar 2000 18:15:39 +0000 (18:15 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 1 Mar 2000 18:15:39 +0000 (18:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@580 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
acinclude.m4
config/lyxinclude.m4
src/mathed/math_utils.C
src/support/filetools.C

index 595aee5903be70085bfb1a63b26e82fae2f7d90d..6475fc4d9d26eae341761c6ae39b7cf52cb8f542 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2000-03-02  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * src/mathed/math_utils.C (MathedLookupBOP): fix the search
+       routine (this fixes bug where greek letters were surrounded by too
+       much white space).
+
+       * src/support/filetools.C (findtexfile): change a bit the search
+       algorithm, to fix bug introduced in 1.1.4. Note that --format is
+       no longer passed to kpsewhich, we may have to change that later.
+
+       * config/lyxinclude.m4 (LYX_PROG_CXX): better version-dependent
+       warning options to avoid problems with X header files (from Angus
+       Leeming).
+       * acinclude.m4: regenerated.
+
 2000-03-02  Juergen Vigna  <jug@sad.it>
 
        * src/insets/insettext.C (WriteParagraphData): Using the
index 9cd693fe6692587b9bf7e96855d81cee904db5b8..f055262b95afaca168f962c45dbe7becaa3b7f32 100644 (file)
@@ -183,11 +183,11 @@ dnl Check the version of g++
     CXXFLAGS="$ac_save_CXXFLAGS"
   elif test $ac_cv_prog_cxx_g = yes; then
     case $gxx_version in
-      2.95.1) CXXFLAGS="-g $lyx_opt -fpermissive -fno-rtti";;
-      2.95.*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
-      2.96*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
-      *2.91.*) CXXFLAGS="-g $lyx_opt -Wno-return-type -fno-exceptions -fno-rtti";;
-      *)    CXXFLAGS="-g $lyx_opt -fno-exceptions -fno-rtti";;
+      2.95.1)  CXXFLAGS="-g $lyx_opt -fpermissive -fno-rtti";;
+      2.95.*)  CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
+      2.96*)   CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
+      *2.91.*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
+      *)       CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
     esac
   else
     CXXFLAGS="$lyx_opt"
@@ -195,13 +195,14 @@ dnl Check the version of g++
   if test x$with_warnings = xyes ; then
     case $gxx_version in
        2.95.*) CXXFLAGS="$CXXFLAGS -Wall -W -Wconversion";;
-       2.96*) CXXFLAGS="$CXXFLAGS -Wall -W -Wconversion";;
-       *) CXXFLAGS="$CXXFLAGS -ansi -Wall -W";;
+       2.96*)  CXXFLAGS="$CXXFLAGS -Wall -W -Wconversion";;
+       *)      CXXFLAGS="$CXXFLAGS -ansi -Wall -W -Wno-return-type";;
     esac
     if test $lyx_devel_version = yes ; then
        case $gxx_version in
            2.95.*) ;;
            2.96*) ;;
+           *2.91*) ;;
            *) CXXFLAGS="$CXXFLAGS -pedantic";;
         esac
     fi
index 3e8a6600790d46c2d1d76472d3a311cc7f8cc006..bf009dc7c209170f0dd2fd119851b77a381069ed 100644 (file)
@@ -183,11 +183,11 @@ dnl Check the version of g++
     CXXFLAGS="$ac_save_CXXFLAGS"
   elif test $ac_cv_prog_cxx_g = yes; then
     case $gxx_version in
-      2.95.1) CXXFLAGS="-g $lyx_opt -fpermissive -fno-rtti";;
-      2.95.*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
-      2.96*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
-      *2.91.*) CXXFLAGS="-g $lyx_opt -Wno-return-type -fno-exceptions -fno-rtti";;
-      *)    CXXFLAGS="-g $lyx_opt -fno-exceptions -fno-rtti";;
+      2.95.1)  CXXFLAGS="-g $lyx_opt -fpermissive -fno-rtti";;
+      2.95.*)  CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
+      2.96*)   CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
+      *2.91.*) CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
+      *)       CXXFLAGS="-g $lyx_opt -fno-rtti -fno-exceptions";;
     esac
   else
     CXXFLAGS="$lyx_opt"
@@ -195,13 +195,14 @@ dnl Check the version of g++
   if test x$with_warnings = xyes ; then
     case $gxx_version in
        2.95.*) CXXFLAGS="$CXXFLAGS -Wall -W -Wconversion";;
-       2.96*) CXXFLAGS="$CXXFLAGS -Wall -W -Wconversion";;
-       *) CXXFLAGS="$CXXFLAGS -ansi -Wall -W";;
+       2.96*)  CXXFLAGS="$CXXFLAGS -Wall -W -Wconversion";;
+       *)      CXXFLAGS="$CXXFLAGS -ansi -Wall -W -Wno-return-type";;
     esac
     if test $lyx_devel_version = yes ; then
        case $gxx_version in
            2.95.*) ;;
            2.96*) ;;
+           *2.91*) ;;
            *) CXXFLAGS="$CXXFLAGS -pedantic";;
         esac
     fi
index 90fb3bc5c3beab99ba19f8c024c4ed9c2869fee1..a5fb789cce7f7202f07fd89f1902c8c081535208 100644 (file)
@@ -86,11 +86,11 @@ int MathedLookupBOP(short id)
                issorted = true;
        }
        
-       int result = 0;
        binary_op_pair * res = lower_bound(binary_op_table,
                                           binary_op_table + bopCount,
                                           id, compara());
-       if (res != (binary_op_table + bopCount))
-               result = res->isrel;
-       return result;
+       if (res->id == id)
+               return res->isrel;
+       else
+               return LMB_NONE;
 }
index 0c3cd19f2403783ea11327de2ee2e96fdb212e35..a19bc74f0322778753d78a3d58ab69e1a4ade1f7 100644 (file)
@@ -1008,7 +1008,7 @@ static cmdret do_popen(string const & cmd)
 }
 
 
-string findtexfile(string const & fil, string const & format)
+string findtexfile(string const & fil, string const & /*format*/)
 {
        /* There is no problem to extend this function too use other
           methods to look for files. It could be setup to look
@@ -1019,15 +1019,13 @@ string findtexfile(string const & fil, string const & format)
           Lgb
        */
        
-        // If fil is a file with absolute path we just return it
-        if (AbsolutePath(fil)) return fil;
-       
-        // Check in the current dir.
-        if (FileInfo(OnlyFilename(fil)).exist())
-               return OnlyFilename(fil);
-       
+       // If the file can be found directly, we just return a
+       // absolute path version of it. 
+        if (FileInfo(fil).exist())
+               return MakeAbsPath(fil);
+
         // No we try to find it using kpsewhich.
-        string kpsecmd = "kpsewhich --format=" + format + " " + OnlyFilename(fil);
+        string kpsecmd = "kpsewhich " + fil;
 
         cmdret c = do_popen(kpsecmd);