This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Don't recognize 'option' in midst of prefs line


Does this look right?

It seems like something similar should be done for the case
immediately above this one, for section markers.  But I don't really
know enough about the official syntax of Windows config files to say
for sure.

2003-08-13  Jim Blandy  <jimb@redhat.com>

	* library/prefs.tcl (pref_read): The word 'option' must be the
	first thing on the line; it doesn't count if it appears in the
	middle of the line.

Index: gdb/gdbtk/library/prefs.tcl
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/prefs.tcl,v
retrieving revision 1.27
diff -c -r1.27 prefs.tcl
*** gdb/gdbtk/library/prefs.tcl	29 Jul 2003 22:08:10 -0000	1.27
--- gdb/gdbtk/library/prefs.tcl	14 Aug 2003 04:59:16 -0000
***************
*** 92,98 ****
  	    regexp {\[(.*)\]} $line match section
  	  }
  
! 	  {[ \t\n]*option.*} {
  	    set line [string trimleft $line]
  	    eval $line
  	  }
--- 92,98 ----
  	    regexp {\[(.*)\]} $line match section
  	  }
  
! 	  {^[ \t\n]*option.*} {
  	    set line [string trimleft $line]
  	    eval $line
  	  }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]