Kroeger Simon (ext) wrote:
> Hi Sakazuki,
>
> thanks for your reply.
>
> [some minor snippage]
>
> cheers
>
> Simon
>

In summary, the author has recognized that you have an
option enabled which only could have been enabled from
one of the beta versions.  In the final release, the
checkbox has been hidden, so it can't be accessed via
the Editor Properties tab to enable OR disable it.
Please continue this debate with the other user(s)
of your machine ;)

Meanwhile, here's what's up in the Windows registry:

In Regedit - this branch:
 HKEY_CURRENT_USER\Software\RubyDE\TEditor\EditorProp
 has the binary type subkey 'EditorProp' within that.

<<This option is *not* recommended because there's a
 possibility of INSERTING a byte which will cause
 some kind of crash in RDE, at least>>
You could fish about for (Modify) the string:
  'ExMarks.FindMark.Visible'
- which is directly followed by a single-byte value.
An EVEN value signifies Off, ODD signifies On (set).
If ODD, it needs to have a value ONE LOWER.
<<.../>>.

-OR- (perhaps the safest way)

You could rename the key like you did with the other
one.  RDE should rebuild it, so all settings will
revert to their defaults.

-OR- (for the adventurous)

This script ought to do it ...
 (assumes you have the necessary authorisation):

Use at your own risk, of course, but I've used
it to set and reset the flag and compared the
registry exports before and after.
Care has been taken to do *nothing* rather
than cause harm.
Any other changes you have made will be preserved.

I imagine Sakazuki-san will be very nervous
if/when he sees this (... understandably).
Your software warranty may be invalidated :-)))


#=================================================#
#            RDE_FindMark_reset.rb                #
#                                                 #
##    Warning: Updates the system registry ...   ##
##    Backup the registry first, for safety ...  ##
##         Do NOT run while RDE is open          ##
##  (i.e. RDE writes to the registry on close )  ##

require 'win32/registry'  # standard library
ACC = Win32::Registry::Constants::KEY_ALL_ACCESS

RDE_branch = 'Software\RubyDE\TEditor\EditorProp'
RDE_Ed_key = 'EditorProp'
property   = 'ExMarks.FindMark.Visible'

Win32::Registry::HKEY_CURRENT_USER.open(RDE_branch, ACC) do |reg|
  reg_typ, reg_val = reg.read(RDE_Ed_key)
  chg = false
  if ( pos = reg_val.index(property) )
    pos += property.length
    ck = [reg_val.length, reg_val.hash, reg_val[pos]]
    reg_val[pos] &= ~1   #  RESET Property
    if ( ck[0] == reg_val.length ) and ( ck[1] != reg_val.hash )
      # Update registry value
      reg.write(RDE_Ed_key, reg_typ, reg_val)
      chg = true
    end
  end
  if chg
    puts '%s property changed to %02x (from %02x)' %
            [property, reg_val[pos], ck[2]]
  else
    puts 'Property not found /or/ not changed'
  end
  print 'Press <RETURN/ENTER> ... '
  STDOUT.flush
  STDIN.gets
end
#=================================================#

To run:
  Double-click from Explorer should do it (?)

the long way (from command line):

   C:\WINDOWS> cd D:\ruby\RDE\TEMP
   C:\WINDOWS> D:
   D:\ruby\RDE\TEMP> ruby RDE_FindMark_reset.rb
   ExMarks.FindMark.Visible property changed to 08 (from 09)
   D:\ruby\RDE\TEMP>


daz