Buffer is now read-only. Use save-excursion instead of manual book-keeping.