         @clearOpStack()
         false
 
-
-  # Private: handles adjusting the location of the marks
-  #
-  # Returns nothing. Adjusts @marks
-  handleMarks: (insert, diff, range, rangeB) ->
-    if range.start.compare(range.end) == -1
-      rangeA = new Range(range.start, range.end)
-    else
-      rangeA = new Range(range.end, range.start)
-
-    for k,v of @marks
-      #Get the location of the mark
-      q = v.toArray();
-      #Check to see what we're doing:
-      if insert
-        #The change is entirely before the mark
-        if rangeB.end.compare(v) != 1
-          if rangeB.end.toArray()[0] == q[0]
-            @marks[k] = new Point(q[0] + diff, q[1] - rangeA.start.toArray()[1] + rangeA.end.toArray()[1])
-          else
-            @marks[k] = new Point(q[0] + diff,q[1])
-      else
-        if rangeA.end.compare(v) != 1
-          #the end of the range is on the same line as the mark
-          if rangeA.end.toArray()[0] == q[0]
-            @marks[k] = new Point(q[0] + diff, q[1] - rangeA.end.toArray()[1] + rangeA.start.toArray()[1])
-          else
-            @marks[k] = new Point(q[0] + diff,q[1])
-
   # Private: Watches for any deletes on the current buffer and places it in the
   # last deleted buffer.
   #

  #
  # Returns the value of the given mark or undefined if it hasn't
  # been set.
  getMark: (name) -> @marks[name]

  # Private: Sets the value of a given register.
  #

  setMark: (name, pos) ->
    # check to make sure name is in [a-z] or is `
    if (charCode = name.charCodeAt(0)) >= 96 and charCode <= 122
      marker = @editor.markBufferRange(new Range(pos,pos),{invalidate:'never',persistent:false})
      @marks[name] = marker

  # Public: Append a search to the search history.
  #
