phillord / lentic

Create views of the same content in two Emacs buffers
183 stars 12 forks source link

Lentic fails on "comment-region" #27

Closed phillord closed 9 years ago

phillord commented 9 years ago

Lentic fails badly when using comment-region in latex. To reproduce, open up block-comment.clj, start the lentic and then comment-region one of the paragraphs.

The problem seems to be occuring because of the use of narrowing -- so the first comment character to be inserted in latex is the NARROWED TO first line, and ends up on the first line in Clojure which is, of course, totally the wrong place.

Reported by @jaydchan