Re: [AUCTeX] A problem with \parencite and fill-paragraph

2017-04-01 Thread Ikumi Keita
Hi Arash, > Arash Esbati writes: > no, \B is not really necessary, I just wanted to say that appending \b > to the complete regexp would not work for \[; it would be \B or > nothing. And dropping \B is more versatile. Thank you for clarifying. That agrees with my thought.

Re: [AUCTeX] A problem with \parencite and fill-paragraph

2017-04-01 Thread Arash Esbati
Ikumi Keita writes: >> Arash Esbati writes: > >> You need \B to match the end of a "not-word". What do you think about a >> change like this? > > I think your approach is basically OK. (I vaguely remember > font-latex.el uses similar methods for building

Re: [AUCTeX] A problem with \parencite and fill-paragraph

2017-03-31 Thread Mosè Giordano
Hi Arash, 2017-03-31 9:38 GMT+02:00 Arash Esbati : > Mosè Giordano writes: > >> I think we all came up with similar solutions. I was concerned about >> performance of Arash's fix, but according to `benchmark-run' the >> overhead isn't large (slowdown of the order of

Re: [AUCTeX] A problem with \parencite and fill-paragraph

2017-03-31 Thread Ikumi Keita
Sorry, I should have thought more flexibly. > Ikumi Keita writes: > So I propose to change the `concat' part like this: > (concat (regexp-quote TeX-esc) "\\(?:" > (regexp-opt cmds "\\(?:") > "\\b" > "\\|" > (regexp-opt

Re: [AUCTeX] A problem with \parencite and fill-paragraph

2017-03-31 Thread Ikumi Keita
Hi Arash, > Arash Esbati writes: > You need \B to match the end of a "not-word". What do you think about a > change like this? I think your approach is basically OK. (I vaguely remember font-latex.el uses similar methods for building regexp.) Let me make some comments on

Re: [AUCTeX] A problem with \parencite and fill-paragraph

2017-03-31 Thread Arash Esbati
Mosè Giordano writes: > I think we all came up with similar solutions. I was concerned about > performance of Arash's fix, but according to `benchmark-run' the > overhead isn't large (slowdown of the order of few percents) and > shouldn't be noticeable in normal situations. Hi

Re: [AUCTeX] A problem with \parencite and fill-paragraph

2017-03-30 Thread Mosè Giordano
Hi all, first of all, thanks to Adam for the report and the correct guess about the culprit! I think we all came up with similar solutions. I was concerned about performance of Arash's fix, but according to `benchmark-run' the overhead isn't large (slowdown of the order of few percents) and

Re: [AUCTeX] A problem with \parencite and fill-paragraph

2017-03-30 Thread Arash Esbati
Ikumi Keita writes: >> a...@cock.li writes: > > [summary] > Since the list `LaTeX-paragraph-commands-internal' includes "par", > `paragraph-start' is set to the regexp which matches the every string > "\par" in the buffer, even if it is the first four letters of >

Re: [AUCTeX] A problem with \parencite and fill-paragraph

2017-03-30 Thread Ikumi Keita
Hi Adam and all, > a...@cock.li writes: > In auctex-mode, given > asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf > \parencite{asdf} > after calling `fill-paragraph` I get the following > asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf > \parencite{asdf} >

[AUCTeX] A problem with \parencite and fill-paragraph

2017-03-30 Thread aufc
Hello everybody, In auctex-mode, given --8<---cut here---start->8--- asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf \parencite{asdf} --8<---cut here---end--->8--- after calling `fill-paragraph` I get the