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]

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


I've finally gotten around to committing the patch that I posted and
Keith approved in August.  Here's what I committed:

2003-12-11  Jim Blandy  <jimb@redhat.com>

	* library/prefs.tcl (pref_read): The section marker or the word
	'option' must be the first thing on the line; they don't count if
	they appear 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	11 Dec 2003 22:17:35 -0000
***************
*** 88,98 ****
  	    ;# empty line; ignore it
  	  }
  
! 	  {\[.*\]} {
  	    regexp {\[(.*)\]} $line match section
  	  }
  
! 	  {[ \t\n]*option.*} {
  	    set line [string trimleft $line]
  	    eval $line
  	  }
--- 88,98 ----
  	    ;# empty line; ignore it
  	  }
  
! 	  {^[ \t\n]*\[.*\]} {
  	    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]