Timeline for AUCTeX: Disable newline when electric-pairing braces in math mode
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 15, 2023 at 0:01 | comment | added | Zero | The problem with this is that sometimes this erases the previous blank line, if there is any. That being said, the default behaviour shouldn't add any lines, idk why the developers thought it was a good idea to add blanklines to \left and \right. | |
| Jan 25, 2018 at 19:16 | comment | added | Tobias | @Giuseppe The situation is quite simple. If you are one of the AucTeX developers you can change TeX-arg-insert-brace directly and you don't need the advice. If you aren't an author of AucTeX you can clone the repository change the code and make a pull-request. If you are lucky the request is accepted in some time. But, if you want to get the job done as soon as possible and you don't want to change the source the advice is the only choice for you since the newlines are hardcoded as @arash-esbati mentioned in his answer. | |
| Jan 25, 2018 at 17:30 | vote | accept | Giuseppe | ||
| Jan 25, 2018 at 16:00 | comment | added | Giuseppe | Thanks a lot. As I understand what is written here (emacswiki.org/emacs/AdviceVsHooks) about "advising", it is not advised :). What about it in the present case? And how did you get to this solution? | |
| Jan 25, 2018 at 7:07 | history | edited | Tobias | CC BY-SA 3.0 | added 181 characters in body |
| Jan 25, 2018 at 6:19 | history | answered | Tobias | CC BY-SA 3.0 |