[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23525: 11.89.1; Wired Behaviour of Quick View
From: |
Qiang Yin |
Subject: |
bug#23525: 11.89.1; Wired Behaviour of Quick View |
Date: |
Sat, 14 May 2016 18:09:58 +0800 |
User-agent: |
mu4e 0.9.16; emacs 24.5.1 |
Hi,
I don't know why offset can be negative, but it happends. As for an
example, please find the enclosed 3 files:
1. main.tex
2. sec-foo.tex
3. _region_.tex %% this is generated by AUCTeX
If I press 'C-c C-b' on "sec-foo.tex" it will produce the
"_region_.tex" and offset in this file is negative.
Cheers,
Qiang
\documentclass{article}
\begin{document}
\begin{abstract}
Hello world.
Hello world.
Hello world.
\end{abstract}
\input{sec-foo}
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
\section{Foo}
Foo!
Foo!
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "main"
%%% End:
\message{ !name(main.tex)}\documentclass{article}
\begin{document}
\message{ !name(sec-foo.tex) !offset(-5) }
\section{Foo}
Foo!
Foo!
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "main"
%%% End:
\message{ !name(main.tex) !offset(-4) }
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
On 2016-05-14 17:49:49, Tassilo Horn wrote:
> Qiang Yin <address@hidden> writes:
>
> Hi!
>
>> Thanks for the patch. It works but there is a little problem. The
>> offset in the _regioin_.tex may be negative. The patch dose not handle
>> that case. In that situation when I press 'C-c C-v' Emacs gives me the
>> following message:
>>
>> TeX-region-update-point: Search failed: "!offset(\\([0-9]+\\)"
>>
>> Like Mosè's recent patch suggests, I replace the regular expression in
>> your patch "!offset(\\([0-9]+\\)" by "!offset(\\([---0-9]+\\)". And it
>> works.
>
> Uh, I didn't know the offset can be negative. In what conditions is it
> negative? Can you give an example?
>
> Bye,
> Tassilo
- bug#23525: 11.89.1; Wired Behaviour of Quick View, Qiang Yin, 2016/05/13
- bug#23525: 11.89.1; Wired Behaviour of Quick View, Tassilo Horn, 2016/05/16
- bug#23525: 11.89.1; Wired Behaviour of Quick View, Qiang Yin, 2016/05/13
- bug#23525: 11.89.1; Wired Behaviour of Quick View, Tassilo Horn, 2016/05/14
- bug#23525: 11.89.1; Wired Behaviour of Quick View, Qiang Yin, 2016/05/14
- bug#23525: 11.89.1; Wired Behaviour of Quick View, Tassilo Horn, 2016/05/14
- bug#23525: 11.89.1; Wired Behaviour of Quick View,
Qiang Yin <=
- bug#23525: 11.89.1; Wired Behaviour of Quick View, Tassilo Horn, 2016/05/14
- bug#23525: 11.89.1; Wired Behaviour of Quick View, Mosè Giordano, 2016/05/14
- bug#23525: 11.89.1; Wired Behaviour of Quick View, Tassilo Horn, 2016/05/14
- bug#23525: 11.89.1; Wired Behaviour of Quick View, Tassilo Horn, 2016/05/15
- bug#23525: 11.89.1; Wired Behaviour of Quick View, Qiang Yin, 2016/05/15
- bug#23525: 11.89.1; Wired Behaviour of Quick View, Tassilo Horn, 2016/05/16