       {editor, point, URI: lastURI} = @lastEditor.getInfo()
       if not @isLocked() and (lastURI isnt item.getURI())
         @history.add editor, point, lastURI, dumpMessage: "[Pane item changed] save history"
-      console.log "lock?: #{@isLocked()}: #{@_locker}"
-
       @lastEditor.set item
       @debug "set LastEditor #{path.basename(item.getURI())}"
 

    @subscriptions.add panel.onDidDestroy ->
      panelSubscription.dispose()

  lock: (locker) ->
    @_locker = locker
    @locked = true

  unLock:   -> @locked = false
  isLocked: -> @locked


settings   = require './settings'

module.exports =
  config:     settings.config
  history:    null
  lastEditor: null
  locked:     false

  subscriptions: null
  editorSubscriptions: null

  # Experiment
  openTags: null
