bug#26694: preview-at-point fails on very long lines with "End of buffer"

2017-05-30 Thread Ikumi Keita
Sorry, the previous patch contains a spurious ")" in it. Please dismiss it and use the attached one instead. Bye, Ikumi Keita diff --git a/preview.el.in b/preview.el.in --- a/preview.el.in +++ b/preview.el.in @@ -1622,11 +1622,8 @@ (unless (eq preview-state 'disabled) (preview-togg

bug#26694: preview-at-point fails on very long lines with "End of buffer"

2017-05-30 Thread Ikumi Keita
Hi all, Now I propose to apply the attached fix. This doesn't change the action of "%b" and "%n". If no objection, I'll commit it soon. Bye, Ikumi Keita diff --git a/preview.el.in b/preview.el.in --- a/preview.el.in +++ b/preview.el.in @@ -1622,11 +1622,8 @@ (unless (eq preview-state 'di

bug#26694: preview-at-point fails on very long lines with "End of buffer"

2017-05-29 Thread Mosè Giordano
2017-05-29 16:33 GMT+02:00 Ikumi Keita : > Gosh, these viewers use emacslient on reverse search, which ends up with > opening _region_.tex buffer instead of the original document's buffer > when using region file. Then it's not so useful to arrange the > expanders to work with region file in forwa

bug#26694: preview-at-point fails on very long lines with "End of buffer"

2017-05-29 Thread Ikumi Keita
Hi! > Mosè Giordano writes: >> I made a tentative patch along these idea and attached it to this >> message. I stopped using `current-column' and use difference betewwn >> point and max{beginning of line, beginning of region}. > I like your approach! In addition, this doesn't need changin

bug#26694: preview-at-point fails on very long lines with "End of buffer"

2017-05-28 Thread Mosè Giordano
Hi Keita, 2017-05-28 15:12 GMT+02:00 Ikumi Keita : > I looked into this problem and would like to share my thoughts about > this. Thanks! As I said, mine was more a workaround rather than a real fix, I'm happy someone else is addressing the issue :-) > (1) Some problems of the essentially same

bug#26694: preview-at-point fails on very long lines with "End of buffer"

2017-05-28 Thread Ikumi Keita
[ Dropped Frank from the recipients. ] Hi Mosè and all, > I think you're right, a good solution would be to add one more > argument to `TeX-region-create' with the adjusted line-col > information. However, in order to avoid changing the signature of the > function I decided to apply a work aroun

bug#26694: preview-at-point fails on very long lines with "End of buffer"

2017-05-06 Thread Mosè Giordano
Hi Frank, 2017-04-28 15:26 GMT+02:00 Frank Fischer : > However, I would say the the column offset is just wrong. Either > subtract the length of the preceding text (in the original buffer) from > the column number or copy the preceding text to the temp buffer as well. I think you're right, a good

bug#26694: preview-at-point fails on very long lines with "End of buffer"

2017-04-28 Thread Mosè Giordano
Hi Frank, 2017-04-28 15:26 GMT+02:00 Frank Fischer : > Hi, > > consider the following example file https://pastebin.com/73W7EbCa > > This file has a single very long line with one math item at the end. Do > the following: > > 1. generate the preview with C-c C-p C-p > 2. move point to the "x" in t

bug#26694: preview-at-point fails on very long lines with "End of buffer"

2017-04-28 Thread Frank Fischer
Hi, consider the following example file https://pastebin.com/73W7EbCa This file has a single very long line with one math item at the end. Do the following: 1. generate the preview with C-c C-p C-p 2. move point to the "x" in the math block, change it to "y" and leave point within the math block