Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-12-16 Thread Mosè Giordano
2016-12-16 15:34 GMT+01:00 Denis Bitouzé : > I see. So you meant `myenv' instead of `foo', don't you? Yes, I didn't look back to the name of the environment ;-) > Anyway, regarding your explanation, I couldn't see the point with the > `\' before `\|myenv' in: > > ┌ >

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-12-16 Thread Denis Bitouzé
Le 16/12/16 à 15h25, Mosè Giordano a écrit : > 2016-12-16 15:17 GMT+01:00 Denis Bitouzé : >> But what's the point with `\\|foo'? AFAICS: >> >> ┌ >> │ (setq LaTeX-document-regexp "myenv") >> └ >> >> does the trick as well. > > \(a\|b\) > > matches "a" or "b"

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-12-16 Thread Mosè Giordano
2016-12-16 15:17 GMT+01:00 Denis Bitouzé : > But what's the point with `\\|foo'? AFAICS: > > ┌ > │ (setq LaTeX-document-regexp "myenv") > └ > > does the trick as well. \(a\|b\) matches "a" or "b" (but in the variable you don't need to put the outer

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-12-16 Thread Denis Bitouzé
Le 16/12/16 à 15h09, Mosè Giordano a écrit : >> Regexp? Sigh... why life is to complicated?! ;) > > I don't know why it was conceived as a regexp rather than as a list of > environment names (a regexp can be then built automatically). Good news! :) >> Anyway, I couldn't find any reference

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-12-16 Thread Mosè Giordano
2016-12-16 15:00 GMT+01:00 Denis Bitouzé : > Hi Mosè, > > Le 16/12/16 à 14h38, Mosè Giordano a écrit : > >> 2016-12-16 8:17 GMT+01:00 Denis Bitouzé : >> >>> I'd like to achieve for `myenv' environment the same behavior as the >>> `document' environment.

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-12-16 Thread Denis Bitouzé
Hi Mosè, Le 16/12/16 à 14h38, Mosè Giordano a écrit : > 2016-12-16 8:17 GMT+01:00 Denis Bitouzé : > >> I'd like to achieve for `myenv' environment the same behavior as the >> `document' environment. For instance, with the following content: >> >> ┌ >> │

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-12-16 Thread Denis Bitouzé
Le 16/12/16 à 14h27, Tamas Papp a écrit : > An alternative approach is use-package, eg > > (use-package latex > :config (add-to-list 'LaTeX-indent-environment-list >'("myenv" current-indentation))) > > See https://github.com/jwiegley/use-package Interesting package I'll

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-12-16 Thread Mosè Giordano
Hi Denis, 2016-12-16 8:17 GMT+01:00 Denis Bitouzé : > I'd like to achieve for `myenv' environment the same behavior as the > `document' environment. For instance, with the following content: > > ┌ > │ \documentclass{article} > │ \begin{document} > │ Foo. > │

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-12-16 Thread Tamas Papp
On Thu, Dec 15 2016, Mosè Giordano wrote: > 2016-12-15 18:37 GMT+01:00 Denis Bitouzé : >> Could you please elaborate the trick? I added: >> >> ┌ >> │ (add-to-list 'LaTeX-indent-environment-list '("myenv" >> current-indentation)) >> └ >> >> to my `.emacs' but

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-12-15 Thread Denis Bitouzé
Le 15/12/16 à 22h22, Mosè Giordano a écrit : > 2016-12-15 20:27 GMT+01:00 Denis Bitouzé : >> Maybe I didn't understand what `current-indentation' is supposed to do >> but with the following: >> >> ┌ >> │ \begin{myenv} >> │ \begin{frame} >> │ Foo. >> │

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-12-15 Thread Denis Bitouzé
Le 15/12/16 à 19h56, Mosè Giordano a écrit : > Hi Denis, Hi Mosè, > When you use `add-to-list' is almost always a good idea to wrap it in > a `with-eval-after-load' (or `eval-after-load' in older Emacsens), > unless you know when the variable is defined in your init file: Okay, I've written

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-12-15 Thread Mosè Giordano
Hi Denis, 2016-12-15 18:37 GMT+01:00 Denis Bitouzé : > Could you please elaborate the trick? I added: > > ┌ > │ (add-to-list 'LaTeX-indent-environment-list '("myenv" > current-indentation)) > └ > > to my `.emacs' but the got the error: > > ┌ > │ Warning

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-12-15 Thread Denis Bitouzé
Le 21/05/16 à 20h36, Mosè Giordano a écrit : > 2016-05-21 16:52 GMT+02:00 François Patte > : >> And AucTex continues to indent longtable environment as it did >> previously ie: an unreadable source file as soon as you have a table >> with very long rows >

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-05-21 Thread Mosè Giordano
2016-05-21 16:52 GMT+02:00 François Patte : > And AucTex continues to indent longtable environment as it did > previously ie: an unreadable source file as soon as you have a table > with very long rows The problem was that file styles overrode custom

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-05-21 Thread François Patte
Le 21/05/2016 15:12, Mosè Giordano a écrit : > Hi François, > > 2016-05-20 11:43 GMT+02:00 François Patte > : >> Bonjour, >> >> I would like to stop automatic indentation in tabular-like environment >> (tabular, longtable...) >> >> I followed this: >>

Re: [AUCTeX] how to disable indentation for tabular-like environment

2016-05-21 Thread Mosè Giordano
Hi François, 2016-05-20 11:43 GMT+02:00 François Patte : > Bonjour, > > I would like to stop automatic indentation in tabular-like environment > (tabular, longtable...) > > I followed this: >