master 3d8d93e4 1/2: ; Make code more resilient

2022-11-17 Thread Arash Esbati
branch: master commit 3d8d93e4fd1ee55a23859656c553385ca493ace0 Author: Arash Esbati Commit: Arash Esbati ; Make code more resilient * style/enumitem.el (LaTeX-arg-enumitem-SetEnumitemValue): Check if the first argument was really inserted before searching back. ("enu

master 615e12f6 2/2: Simplify implementation of style/tcolorbox.el

2022-11-17 Thread Arash Esbati
branch: master commit 615e12f6505bb73f096daedc2c97164b35780957 Author: Arash Esbati Commit: Arash Esbati Simplify implementation of style/tcolorbox.el * style/tcolorbox.el ("tcolorbox"): Replace `TeX-arg-eval' and use a distinct function for the only argument.

master updated (c8d638ac -> 615e12f6)

2022-11-17 Thread Arash Esbati
esbati pushed a change to branch master. from c8d638ac Use `functionp' to recognize a function new 3d8d93e4 ; Make code more resilient new 615e12f6 Simplify implementation of style/tcolorbox.el Summary of changes: style/enumitem.el | 24 +---

Re: Allowing closure's in style hooks?

2022-11-17 Thread Arash Esbati
Hi Tassilo, Tassilo Horn writes: > Arash Esbati writes: > >> With this, we can use things like this: >> >> (TeX-add-symbols >> `("foo" ,(lambda (_) ...))) >> >> in our styles. We're already using this in `TeX-read-key-val' et al., &

master c8d638ac: Use `functionp' to recognize a function

2022-11-17 Thread Arash Esbati
branch: master commit c8d638ac9db02291e221c0c5f18ce28be3084a50 Author: Arash Esbati Commit: Arash Esbati Use `functionp' to recognize a function * tex.el (TeX-parse-argument): Identify a function with `functionp' instead of `symbolp'. This way it is also possible to use

Allowing closure's in style hooks?

2022-11-17 Thread Arash Esbati
Hi all, I'd like to install this change in `TeX-parse-argument': --8<---cut here---start->8--- diff --git a/tex.el b/tex.el index 7fe8095a..129571ae 100644 --- a/tex.el +++ b/tex.el @@ -3554,7 +3554,7 @@ See `TeX-parse-macro' for details."

Re: Extending `TeX-arg-key-val' and `TeX-arg-completing-read-multiple'

2022-11-17 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > Thanks, it works well. Thanks for checking, installed with 835e01ddb6. Best, Arash

master 52738d11: Remove entry in `LaTeX-completion-function-map-alist-keyval'

2022-11-17 Thread Arash Esbati
branch: master commit 52738d11b2e2987862cffe4ff1edb7837d817e20 Author: Arash Esbati Commit: Arash Esbati Remove entry in `LaTeX-completion-function-map-alist-keyval' * latex.el (LaTeX-completion-function-map-alist-keyval): Remove the entry for the deleted function `LaTeX

master 835e01dd 2/4: Extend the argument list of `TeX-arg-string'

2022-11-17 Thread Arash Esbati
branch: master commit 835e01ddb6d25984edc33e44df7ea102c64be8b3 Author: Arash Esbati Commit: Arash Esbati Extend the argument list of `TeX-arg-string' * tex.el (TeX-arg-string): Extend the argument list which will be passed to `TeX-read-string' and change the brackets

master e53bb19a 3/4: ; Recognize large arguments with many lines

2022-11-17 Thread Arash Esbati
branch: master commit e53bb19a90e99f14020a10f7988bdd861a0ca05a Author: Arash Esbati Commit: Arash Esbati ; Recognize large arguments with many lines * latex.el (LaTeX-completion-find-argument-boundries): Enlarge the portion of buffer searched for argument boundries

master updated (d5ff42e0 -> b9548da5)

2022-11-17 Thread Arash Esbati
esbati pushed a change to branch master. from d5ff42e0 Simplify implementation of style/enumitem.el new c525dd42 Simplify implementation of style/tcolorboxlib-raster.el new 835e01dd Extend the argument list of `TeX-arg-string' new e53bb19a ; Recognize large

master b9548da5 4/4: Simplify implementation of style/tcolorboxlib-theorems.el

2022-11-17 Thread Arash Esbati
branch: master commit b9548da54ac8bfbec09ce1260e3d9bf432f1958c Author: Arash Esbati Commit: Arash Esbati Simplify implementation of style/tcolorboxlib-theorems.el * style/tcolorboxlib-theorems.el (LaTeX-tcolorbox-lib-theorems-auto-cleanup): ("tcolorboxlib-theorems&q

master c525dd42 1/4: Simplify implementation of style/tcolorboxlib-raster.el

2022-11-17 Thread Arash Esbati
branch: master commit c525dd42dd2660c18c49dc1484911666502ae2ea Author: Arash Esbati Commit: Arash Esbati Simplify implementation of style/tcolorboxlib-raster.el * style/tcolorboxlib-raster.el ("tcolorboxlib-raster"): Use `LaTeX-env-args' and `LaTeX-env-item-args' i

Re: scope environment in TikZ

2022-11-17 Thread Arash Esbati
Ikumi Keita writes: >>>>>> Arash Esbati writes: >> Give digestif[1] a roll; installation is really straight forward. And if >> you have eglot, starting it should work OOTB. > > I've already tried it before; it provided basic support for TikZ > options. I

master d5ff42e0: Simplify implementation of style/enumitem.el

2022-11-16 Thread Arash Esbati
branch: master commit d5ff42e0bd048bd90784f72fc1644a4a53931c8d Author: Arash Esbati Commit: Arash Esbati Simplify implementation of style/enumitem.el * style/enumitem.el (LaTeX-enumitem-env-with-opts): Delete function. (LaTeX-arg-enumitem-SetEnumitemKey): Query and insert

Re: Extending `TeX-arg-key-val' and `TeX-arg-completing-read-multiple'

2022-11-16 Thread Arash Esbati
Arash Esbati writes: > What do you think about this: Sorry, the change was not good enough, please consider this one: --8<---cut here---start->8--- diff --git a/tex.el b/tex.el index 5cb86af1..7fe8095a 100644 --- a/tex.el +++ b/tex.el @@ -3451,18

Re: Extending `TeX-arg-key-val' and `TeX-arg-completing-read-multiple'

2022-11-16 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > It looks reasonable. Thanks for your response. I installed that change (a7a7209a08). > In addition, I'd propose to add similar optional arguments to > `TeX-arg-string' to pass to `TeX-read-string' as well. It would allow > us to eliminate awkward usage of

Re: scope environment in TikZ

2022-11-16 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > The largest obstacle is that TikZ option is quite complicated. :-( > [...] > > Thus the standard key-value completion facility of AUCTeX isn't enough > in my view to provide satisfactory support for TikZ options. I agree, TikZ options are indeed too heavy for

master a7a7209a: Extend the argument list of some functions

2022-11-16 Thread Arash Esbati
branch: master commit a7a7209a086d8db0ba9a7a3f129533d98b037019 Author: Arash Esbati Commit: Arash Esbati Extend the argument list of some functions * latex.el (TeX-read-key-val, TeX-arg-key-val): Extend the argument list which control the query and insertion of key=val's

master 0c482642: Simplify implementation of style/currvita.el

2022-11-15 Thread Arash Esbati
branch: master commit 0c482642ccb46af364fa14765abc3049635c21b8 Author: Arash Esbati Commit: Arash Esbati Simplify implementation of style/currvita.el * style/currvita.el ("currvita"): Use `LaTeX-env-item-args' in the hook and subsequently delete `LaTeX-currvita-env-

Re: scope environment in TikZ

2022-11-15 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: >>>>>> Arash Esbati writes: >> Keep in mind that if you want to use in-buffer completion when you're >> inside the brackets, you need `(TeX-arg-key-val key=vals)' in the hook, >> so I think the best would be if you could see i

Extending `TeX-arg-key-val' and `TeX-arg-completing-read-multiple'

2022-11-14 Thread Arash Esbati
Hi all, I'd like to extend the functions mentioned above in order to have two functions which cover (almost?) all use cases in AUCTeX style files and delete local functions defined in the files. The arguments list is long, but I expect only the first few to be used and the rest is for exotic

Re: scope environment in TikZ

2022-11-11 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > Hmm. Currently I'm not sure which `save-excursion' is the one you are > talking about, but will look closer later. Sorry, my bad. I meant the `save-excursion' used by `LaTeX--env-parse-args' which is called inside `LaTeX-env-args'. Best, Arash

Re: scope environment in TikZ

2022-11-10 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > The next thing I'd like to discuss is scope environment in TikZ. You're drawing some TikZ pictures lately? ;-) > The scope environment is practically always accompanied by an optional > argument by its nature: > \begin{tikzpicture} > \begin{scope}[TikZ

master cb7b4422: Improve fontification of indexing macros

2022-11-09 Thread Arash Esbati
branch: master commit cb7b44227d23366996fa94c1ffe19208add6c127 Author: Arash Esbati Commit: Arash Esbati Improve fontification of indexing macros * font-latex.el (font-latex-built-in-keyword-classes): Add entries for \makeindex and \makeglossary macros. * style

master 52a7f405: ; * doc/auctex.texi (Adding Environments): Adjust indentation.

2022-11-09 Thread Arash Esbati
branch: master commit 52a7f4050f48f1459e61aedd86935c2d95b14a50 Author: Arash Esbati Commit: Arash Esbati ; * doc/auctex.texi (Adding Environments): Adjust indentation. --- doc/auctex.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/auctex.texi b/doc

master 4eaed332: Add new hooks for inserting environments with arguments

2022-11-09 Thread Arash Esbati
branch: master commit 4eaed332ba600d8fc90d2177815597e9407c3f2b Author: Arash Esbati Commit: Arash Esbati Add new hooks for inserting environments with arguments * doc/auctex.texi (Adding Environments): Document new functions `LaTeX-env-item-args' and `LaTeX-env-label-args

Re: TikZ support and ConTeXt environments

2022-11-09 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > That alone wouldn't work. Suppose that you open two LaTeX files. The > second buffer wouldn't have `TeX-auto-parser' updated. Yes, sorry, my bad. I was thinking about `TeX-auto-add-regexp' which is executed in the hooks where `TeX-auto-add-type' is only used

master e83a4b87: Use the correct function to retrieve the key=vals

2022-11-09 Thread Arash Esbati
branch: master commit e83a4b87b3bb147ae4d00b567fb804901c226fdf Author: Arash Esbati Commit: Arash Esbati Use the correct function to retrieve the key=vals * style/siunitx.el (LaTeX-siunitx-key-val-options): Delete unnecessary `and' when checking for a color package

Re: TikZ support and ConTeXt environments

2022-11-08 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > The key clash isn't direct consequence of (require 'latex) in > context.el. Even without (require 'latex), it would occur when LaTeX > document and ConTeXt document are opened in the same emacs session. The > culprit is that >(TeX-auto-add-type "environment"

Re: TikZ support and ConTeXt environments

2022-11-08 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > As far as I can see, context.el doesn't rely on functionalities provided > by latex.el with respect to the current issue. So I don't think we need > de-coupling. In your first message, you wrote: > I figured out that `TeX-auto-add-type' is responsible for the

Re: Extending env definitions or introducing new ones?

2022-11-08 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > I see, then I don't adhere to my proposal. I think it is best to do it > in a way that is easy for you. ;-) Thanks. I'm attaching the change I currently have. Please let me know if you have any comments, otherwise I will install it. Best, Arash diff --git

Re: master d7e6fa0d 1/2: Cleanup `TeX-insert-dollar'

2022-11-07 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > I followed this log: > , > | 61fc80a4ec880ccd4bb2a49e3d31282adbc73405 > | Author: Per Abrahamsen > | AuthorDate: Mon Jun 15 15:26:22 1998 + > | Commit: Per Abrahamsen > | CommitDate: Mon Jun 15 15:26:22 1998 + > | > | Parent: 096e69e0

branch feature/capf deleted (was 0f2a4cd1)

2022-11-07 Thread Arash Esbati
esbati pushed a change to branch feature/capf. was 0f2a4cd1 Further improvements This change permanently discards the following revisions: discards 0f2a4cd1 Further improvements discards 31250b03 Merge branch 'master' into feature/capf discards 83eddfa3 latex-capf.el: Make

Re: TikZ support and ConTeXt environments

2022-11-07 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > However, I realized that ConTeXt support doesn't work at all. The reason > is that `ConTeXt-add-environments' is broken as well as context.el > doesn't use `ConTeXt-environment-list' correctly. Thanks for looking at this. > I figured out that

Re: master d7e6fa0d 1/2: Cleanup `TeX-insert-dollar'

2022-11-07 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > branch: master > commit d7e6fa0d418b66dbaaef56d723bc22b1a9862b8e > Author: Ikumi Keita > Commit: Ikumi Keita > > Cleanup `TeX-insert-dollar' > > * tex.el (TeX-insert-dollar): Don't insert "\)\(" when we have empty > active region and

Re: Extending env definitions or introducing new ones?

2022-11-07 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > Thank you for raising this issue. I like the idea of increasing > flexibility of environment insertion facility. Thanks for your response. Glad you share this. > Both solutions looks feasible. ...Hm, how about this third one? > > (defun LaTeX--env-foo

Extending env definitions or introducing new ones?

2022-11-05 Thread Arash Esbati
Hi all, we have the situation that many AUCTeX styles bake their own definitions for inserting environments; mostly for key-val options and other sort of arguments. The issue is that latex.el offers only `LaTeX-env-args'. Suppose you want to insert an environment with `LaTeX-env-label' and also

master 20cabef8: ; Delete unnecessary `TeX-arg-string'

2022-11-04 Thread Arash Esbati
branch: master commit 20cabef81f4bf85161f810c02eb8bff7966d2eee Author: Arash Esbati Commit: Arash Esbati ; Delete unnecessary `TeX-arg-string' * style/textpos.el ("textpos"): * style/thm-restate.el ("thm-restate"): * style/wrapfig.el ("wrapfig&

master updated (8f70cd52 -> 49987f08)

2022-11-04 Thread Arash Esbati
esbati pushed a change to branch master. from 8f70cd52 Simplify implementation of style/ulem.el new 8e3137f6 Simplify implementation of style/titlesec.el new 978ebea1 Simplify implementation of style/thmtools.el new ff5a83f3 Simplify implementation of

master 8e3137f6 1/5: Simplify implementation of style/titlesec.el

2022-11-04 Thread Arash Esbati
branch: master commit 8e3137f641654655c76f869ebf2be5dd5480d462 Author: Arash Esbati Commit: Arash Esbati Simplify implementation of style/titlesec.el * style/titlesec.el (LaTeX-titlesec-section-command-list): Delete unnecessary `symbol-value'. (LaTeX-titlesec-titlespec-key

master 49987f08 5/5: Provide completion candidates for `TeX-arg-length'

2022-11-04 Thread Arash Esbati
branch: master commit 49987f08dde1329dac32385b5623cd2cdbeb8873 Author: Arash Esbati Commit: Arash Esbati Provide completion candidates for `TeX-arg-length' * latex.el (LaTeX-completion-function-map-alist-cr): Add entry for `TeX-arg-length' and the corresponding mapping function

master 9b365b74 4/5: Simplify implementation of style/textpos.el

2022-11-04 Thread Arash Esbati
branch: master commit 9b365b7419b6f972af34ea3dff04151717c1e02d Author: Arash Esbati Commit: Arash Esbati Simplify implementation of style/textpos.el * style/textpos.el ("textpos"): Use `TeX-arg-conditional' instead of `TeX-arg-eval' in the style hook. --- style/textp

master ff5a83f3 3/5: Simplify implementation of style/thm-restate.el

2022-11-04 Thread Arash Esbati
branch: master commit ff5a83f34534f534d95decb9bb4159c7bda817bf Author: Arash Esbati Commit: Arash Esbati Simplify implementation of style/thm-restate.el * style/thm-restate.el (LaTeX-thmrestate-restatable-marco-regexp): Recognize the starred version of the environment as well

master d3970b77 2/7: ; * latex.el (LaTeX-common-initialization): Remove dupe textcircled.

2022-11-03 Thread Arash Esbati
branch: master commit d3970b77dacea16bc235d3b9645faef6112ff826 Author: Arash Esbati Commit: Arash Esbati ; * latex.el (LaTeX-common-initialization): Remove dupe textcircled. --- latex.el | 1 - 1 file changed, 1 deletion(-) diff --git a/latex.el b/latex.el index 0c83a3a3..910c046c 100644

master 1f6e9e7e 3/7: Update style/XCharter.el to package version 1.24

2022-11-03 Thread Arash Esbati
branch: master commit 1f6e9e7e58d929689f08e276fa58ab6377c890bb Author: Arash Esbati Commit: Arash Esbati Update style/XCharter.el to package version 1.24 * style/XCharter.el ("XCharter"): Add support for new macros incl. fontification. (LaTeX-XCharter-package-opti

master 5949388c 5/7: Simplify argument queries in style/wrapfig.el

2022-11-03 Thread Arash Esbati
branch: master commit 5949388ca2f6a297a222d20b62248bdff6c23e18 Author: Arash Esbati Commit: Arash Esbati Simplify argument queries in style/wrapfig.el * style/wrapfig.el ("wrapfig"): Use `LaTeX-env-args' and standard hook functions for argument query. --- style/wrapf

master updated (35ec84ba -> 8f70cd52)

2022-11-03 Thread Arash Esbati
esbati pushed a change to branch master. from 35ec84ba Add capf for LaTeX marco/environment arguments new a617944b Fix style/xspace.el new d3970b77 ; * latex.el (LaTeX-common-initialization): Remove dupe textcircled. new 1f6e9e7e Update style/XCharter.el to

master 8775c835 6/7: Replace `TeX-arg-url-urlstyle' in style/url.el

2022-11-03 Thread Arash Esbati
branch: master commit 8775c8355f49cdb0051f063bf723261ecf2d8c78 Author: Arash Esbati Commit: Arash Esbati Replace `TeX-arg-url-urlstyle' in style/url.el * style/url.el (TeX-arg-url-urlstyle): Delete function. ("url"): Move the functionality into the style hook. --- st

master 8f70cd52 7/7: Simplify implementation of style/ulem.el

2022-11-03 Thread Arash Esbati
branch: master commit 8f70cd521184481b7256d1dd1a1d86c814b76a33 Author: Arash Esbati Commit: Arash Esbati Simplify implementation of style/ulem.el * style/ulem.el (LaTeX-ulem-fontdecl, LaTeX-ulem-fontcmd) (TeX-arg-ulem-fontdecl, TeX-arg-ulem-fontcmd) (TeX-arg-ulem-useunder

In-buffer completion for macro/env arguments

2022-11-03 Thread Arash Esbati
Hi all, I've installed a change (35ec84ba6f) which brings in-buffer completion for macro and environment arguments to AUCTeX. This feature relies solely on the information it finds in `TeX-symbol-list' and `LaTeX-environment-list' which means that currently: 1. Wrong completion candidates are

master 35ec84ba: Add capf for LaTeX marco/environment arguments

2022-11-02 Thread Arash Esbati
branch: master commit 35ec84ba6faf078b114d5df62513d81900cf3b6c Author: Arash Esbati Commit: Arash Esbati Add capf for LaTeX marco/environment arguments * doc/changes.texi: Announce the new feature. * doc/auctex.texi (Completion): Document the main new function

master 487c91fd 2/2: ; Pacify compiler warning: Unused lexical argument `ignored'

2022-10-31 Thread Arash Esbati
branch: master commit 487c91fddbcb6f1e3cf649956374814761802797 Author: Arash Esbati Commit: Arash Esbati ; Pacify compiler warning: Unused lexical argument `ignored' * tex-bar.el (TeX-bar-LaTeX-button-alist): Mark unused arguments. --- tex-bar.el | 18 +- 1 file

master updated (05cd0440 -> 487c91fd)

2022-10-31 Thread Arash Esbati
esbati pushed a change to branch master. from 05cd0440 Use `TeX-arg-completing-read-multiple' new 7642155b Don't let-bind `inhibit-point-motion-hooks' to t new 487c91fd ; Pacify compiler warning: Unused lexical argument `ignored' Summary of changes: tex-bar.el | 18

master 7642155b 1/2: Don't let-bind `inhibit-point-motion-hooks' to t

2022-10-31 Thread Arash Esbati
branch: master commit 7642155b73960e129155dd5aedeaa5234bc48c19 Author: Arash Esbati Commit: Arash Esbati Don't let-bind `inhibit-point-motion-hooks' to t * tex.el (TeX-current-offset): Delete let-binding of `inhibit-point-motion-hooks' to t because this is the default value

master 05cd0440: Use `TeX-arg-completing-read-multiple'

2022-10-26 Thread Arash Esbati
branch: master commit 05cd0440c5d72ffaf98f3b76c0cae124a420cc10 Author: Arash Esbati Commit: Arash Esbati Use `TeX-arg-completing-read-multiple' * style/babel.el ("babel"): * style/biblatex.el ("biblatex"): * style/doc.el ("doc"):

master 0ee39626: Use `TeX-arg-completing-read'

2022-10-25 Thread Arash Esbati
branch: master commit 0ee39626e4c8eeefeb5484137c651c2ac0d699e4 Author: Arash Esbati Commit: Arash Esbati Use `TeX-arg-completing-read' * latex.el (LaTeX-common-initialization): * style/MyriadPro.el ("MyriadPro"): * style/amsthm.el ("amsthm"):

feature/capf updated (83eddfa3 -> 0f2a4cd1)

2022-10-20 Thread Arash Esbati
esbati pushed a change to branch feature/capf. from 83eddfa3 latex-capf.el: Make it work adds 4a843073 Don't use `eval' on code new 31250b03 Merge branch 'master' into feature/capf new 0f2a4cd1 Further improvements Summary of changes: latex-capf.el | 200

feature/capf 31250b03 1/2: Merge branch 'master' into feature/capf

2022-10-20 Thread Arash Esbati
branch: feature/capf commit 31250b034ef74d18f9b5645306db3ba1ee1ab11b Merge: 83eddfa3 4a843073 Author: Arash Esbati Commit: Arash Esbati Merge branch 'master' into feature/capf --- latex.el | 82 ++- style/hologo.el | 10

feature/capf 0f2a4cd1 2/2: Further improvements

2022-10-20 Thread Arash Esbati
branch: feature/capf commit 0f2a4cd1b3cba5dbee8270c63b3c7030822f9703 Author: Arash Esbati Commit: Arash Esbati Further improvements --- latex-capf.el | 200 +- 1 file changed, 142 insertions(+), 58 deletions(-) diff --git a/latex

Re: AUCTeX and in-buffer completion

2022-10-19 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > I tried the latest feature/capf branch for a while and it basically > works well. I think it's worth integrating into AUCTeX. Thanks for testing and your feedback. > I'm aware of two issues currently. > 1. It throws the following notifications repeatedly in the

Re: TeX-arg-key-val syntax and let go of eval

2022-10-19 Thread Arash Esbati
Hi Tassilo, Tassilo Horn writes: > AFAICS, > > '("macro" (TeX-arg-key-val named-function)) > > will also work with your definition and take preference over a > (confusingly named) variable named-function (as is the case with my > suggestion). Yes, you're right. Now we have all options and

master 4a843073: Don't use `eval' on code

2022-10-19 Thread Arash Esbati
branch: master commit 4a843073c53b0478c378a14b2774e4943dc15bdf Author: Arash Esbati Commit: Arash Esbati Don't use `eval' on code * latex.el (TeX-read-key-val, TeX-read-completing-read) (TeX-read-completing-read-multiple): Replace usage of `eval' with other clauses after

Re: TeX-arg-key-val syntax and let go of eval

2022-10-18 Thread Arash Esbati
Hi Tassilo, Tassilo Horn writes: > The first clause can be simplified to just (functionp key-val-alist). > I don't know why I've had the fboundp there in the first place. And I now remember why I had it (in a wrong way, anyway): I looked through the places where `TeX-arg-key-val' is used and

Re: TeX-arg-key-val syntax and let go of eval

2022-10-17 Thread Arash Esbati
Hi Tassilo, Tassilo Horn writes: > Arash Esbati writes: > >>> So what's wrong with this one? >>> >>> (TeX-add-style-hook >>> "foo" >>> (lambda () >>>(TeX-add-symbols >>> `("bar" (TeX-arg-key-

Re: AUCTeX and in-buffer completion

2022-10-14 Thread Arash Esbati
Uwe Brauer writes: >>>> "AE" == Arash Esbati writes: > >> Strange, because C-M-i should show you the standard Emacs *Completions* >> buffer. Check again the value of `completion-at-point-functions' in the >> buffer with your .tex file. > &

feature/capf 83eddfa3: latex-capf.el: Make it work

2022-10-14 Thread Arash Esbati
branch: feature/capf commit 83eddfa38ef073d78b6808cf4e79f50fa970ffaf Author: Arash Esbati Commit: Arash Esbati latex-capf.el: Make it work --- latex-capf.el | 313 +- 1 file changed, 221 insertions(+), 92 deletions(-) diff --git

feature/capf updated (255ba0c2 -> df92458f)

2022-10-14 Thread Arash Esbati
esbati pushed a change to branch feature/capf. from 255ba0c2 * latex-capf.el: New file. new a119b921 Drop using `catch/throw' adds 8404fe8b Provide generic completion functions adds 3a1a820b ; Rearrange code after last commit. adds 64a8e189 Remove

feature/capf a119b921 1/2: Drop using `catch/throw'

2022-10-14 Thread Arash Esbati
branch: feature/capf commit a119b92153df2b8b206303cbc8a7958f80e46799 Author: Arash Esbati Commit: Arash Esbati Drop using `catch/throw' * latex-capf.el (LaTeX-what-macro): Drop using `catch/throw', use `unless' instead. This is feasible since the `condition-case' form

Re: Improving algpseudocode.el

2022-10-11 Thread Arash Esbati
Uwe Brauer writes: > Thanks I will test it soon. Right now, I have to bisect GNU emacs master[1], > since > there is a serious bug for my current (quite old I admit) Ubuntu 16.04 > GTK version. > > So I hope, to give it a try soon No worries, as time permits. Thanks. > Footnotes: > [1] The

master 4c26ef9b: ; Delete ineffective string escapes

2022-10-11 Thread Arash Esbati
branch: master commit 4c26ef9b0b0aa72fa660f85ec5bc8bd206732995 Author: Arash Esbati Commit: Arash Esbati ; Delete ineffective string escapes * latex.el (LaTeX-outline-name) (TeX-arg-verb-delim-or-brace) (LaTeX-error-description-list): * tex.el (TeX-submit-bug-report

Improving algpseudocode.el

2022-10-11 Thread Arash Esbati
Hi Uwe, you might know the package algpseudocodex which is based on algpseudocode and uses the same syntax. I thought making an AUCTeX style algpseudocodex.el is straight forward, and while copying the file, I thought I can touch the user interface, so I added the function

Declare indent in `TeX-arg-conditional'

2022-10-11 Thread Arash Esbati
Hi all, is there any objection if I install this change: --8<---cut here---start->8--- diff --git a/latex.el b/latex.el index 9e5cff3d..00a24cdf 100644 --- a/latex.el +++ b/latex.el @@ -2109,6 +2109,7 @@ It will setup BibTeX to store keys in an auto file." If

master b302fdce: Add missing argument for `TeX-argument-prompt'

2022-10-10 Thread Arash Esbati
branch: master commit b302fdce1d87ad1abd74de630d45e4eb561c50b8 Author: Arash Esbati Commit: Arash Esbati Add missing argument for `TeX-argument-prompt' * latex.el (TeX-read-completing-read) (TeX-read-completing-read-multiple): Fix the value of third argument of `TeX

master updated (6baccb40 -> e2ce8ae4)

2022-10-07 Thread Arash Esbati
esbati pushed a change to branch master. from 6baccb40 Recognize '=' argument modifier new 9fc41106 Add new style/parskip.el new 1e594815 Improve interaction between fancyvrb.el and fvextra.el new e2ce8ae4 Improve style/fvextra.el Summary of changes:

master 9fc41106 1/3: Add new style/parskip.el

2022-10-07 Thread Arash Esbati
branch: master commit 9fc41106dc82e240959c1ecbe40536496fd43367 Author: Arash Esbati Commit: Arash Esbati Add new style/parskip.el * Makefile.in (STYLESRC): Add new style. * style/parskip.el: New file. --- Makefile.in | 2 +- style/parskip.el | 50

master 1e594815 2/3: Improve interaction between fancyvrb.el and fvextra.el

2022-10-07 Thread Arash Esbati
branch: master commit 1e59481512cacefeb59f26e06d6b11025e870691 Author: Arash Esbati Commit: Arash Esbati Improve interaction between fancyvrb.el and fvextra.el * style/fancyvrb.el ("fancyvrb"): Check if the fvextra package is loaded which allows \Verb and \SaveV

master e2ce8ae4 3/3: Improve style/fvextra.el

2022-10-07 Thread Arash Esbati
branch: master commit e2ce8ae4db3168d46971fea55cec21f227b74f20 Author: Arash Esbati Commit: Arash Esbati Improve style/fvextra.el * style/fvextra.el: Don't require cl-lib, `cl-pushnew' isn't used. (font-latex-set-syntactic-keywords): Declare the function. ("fvextra&q

master 6baccb40: Recognize '=' argument modifier

2022-10-06 Thread Arash Esbati
branch: master commit 6baccb40548a380dd9dfd8a584e0f17cc8d53de8 Author: Arash Esbati Commit: Arash Esbati Recognize '=' argument modifier * style/xparse.el (LaTeX-xparse-macro-parse): Support '={...}' argument modifier for key-vals. --- style/xparse.el | 16 1

Re: AUCTeX and "builtin latex mode" integration

2022-10-02 Thread Arash Esbati
Stefan Monnier writes: > You may have seen an on-going discussion about the annoyance of the > mixups between latex-mode and LaTeX-mode and such. Yes, it was time for it again. Some time before that there was a discussion on emacs-devel if AUCTeX should replace the stock tex/latex mode :-) >

Re: automatic notification for push to git

2022-09-13 Thread Arash Esbati
Uwe Brauer writes: > I am used to bitbucket and to helix which in the case of a > collaboration send notification emails if one of the collaborators > pushes a change. > Is this possible in savannah? Is this a general question or are you looking for AUCTeX-diffs? If the former, I think the

master ae2922ce: Update style/amsart.el

2022-09-13 Thread Arash Esbati
branch: master commit ae2922ce76f8b068e8d036117094bc07ed95674a Author: Arash Esbati Commit: Arash Esbati Update style/amsart.el * style/amsart.el: Add missing header. (LaTeX-amsart-class-options): New variable. ("amsart"): Update the style hook for the macro

master 07a8a3cf: ; Use `TeX-dialect' in style/tcolorboxlib-theorems.el

2022-09-13 Thread Arash Esbati
branch: master commit 07a8a3cf9886466384f7f2f4bd452e4c2961 Author: Arash Esbati Commit: Arash Esbati ; Use `TeX-dialect' in style/tcolorboxlib-theorems.el * style/tcolorboxlib-theorems.el ("tcolorboxlib-theorems"): Use `TeX-dialect' instead of obsolete `LaT

Re: new amsart patch, only gradual improvements are added for the moment

2022-09-11 Thread Arash Esbati
Uwe Brauer writes: > I am also a bit confused, if the author is the auctex-dev team, > couldn't you also install it? I thought you're still working on it. I will install my version. Best, Arash

Re: new amsart patch, only gradual improvements are added for the moment

2022-09-09 Thread Arash Esbati
Uwe Brauer writes: > What I am trying to say is this. If amssymb is loaded, then amsfonts > is also loaded and that is why I think it should be > > (TeX-run-style-hooks "amsmath" "amsthm" "amssymb") Sorry, I think we are miscommunicating. I meant: If amsart.cls loads the package amssymb.sty,

Re: new amsart patch, only gradual improvements are added for the moment

2022-09-09 Thread Arash Esbati
Uwe Brauer writes: > I am testing it right now, looks good, Thanks. > one question, though > > You have added > >(TeX-run-style-hooks "amsmath" "amsthm") > > The documentation tells me > > , > | When amsmath is loaded, AMS-LATEX packages amsbsy (for bold > | symbols), amsopn (for

Re: new amsart patch, only gradual improvements are added for the moment

2022-09-08 Thread Arash Esbati
Hi Uwe, Uwe Brauer writes: > [2. text/x-diff; amsart.patch] Thanks. I touched your file a little which is attached. Can you give it a try and see if it works? If so, maybe you can prepare a patch for this file and I will install it. TIA. Best, Arash amsart.el Description:

master 1e2e0971: * style/l3doc.el ("l3doc"): Fix entry for the "env" macro.

2022-09-07 Thread Arash Esbati
branch: master commit 1e2e0971063b928301e0259421ac81bb641a4941 Author: Arash Esbati Commit: Arash Esbati * style/l3doc.el ("l3doc"): Fix entry for the "env" macro. --- style/l3doc.el | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/style/l3doc

Re: amsart: shh I forgot to correct the fortification of one command sorry

2022-09-06 Thread Arash Esbati
Uwe Brauer writes: >>>> "AE" == Arash Esbati writes: > >>> +'("keywords" 1) >>> +'("subjclass" ["Year"] "List of subjects") >>> +'("thanks" 1) > >> This is already a

Re: amsart: shh I forgot to correct the fortification of one command sorry

2022-09-05 Thread Arash Esbati
Uwe Brauer writes: > Yes and no, here is my workflow. > > 1. I edit something in say amsart.el > > 2. I run 'C-x 4 a' adding whatever is needed. In order to comply the > conventions I have > (defun auctex-fill-set () > "Set the fill column to auxtex preset values `74'." >

Re: patch for amsaddr

2022-09-05 Thread Arash Esbati
Hi Uwe, Uwe Brauer writes: > [2. text/x-diff; amsaddr.patch] I slightly adjusted your change and installed it with commit fe801f9e4a. Many thanks for your contribution. Best, Arash

master fe801f9e: Add support for the amsaddr package

2022-09-05 Thread Arash Esbati
branch: master commit fe801f9e4a898d3d181989b2021bc7e2882e91d8 Author: Uwe Brauer Commit: Arash Esbati Add support for the amsaddr package * Makefile.in (STYLESRC): Add new style. * style/amsaddr.el: New file. --- Makefile.in | 2 +- style/amsaddr.el | 37

Re: amsart: shh I forgot to correct the fortification of one command sorry

2022-09-05 Thread Arash Esbati
Hi Uwe, Uwe Brauer writes: Thanks for the changeset. I have some comments below: > # HG changeset patch > # User Uwe Brauer > # Date 1662224349 -7200 > # Sat Sep 03 18:59:09 2022 +0200 > # Node ID a44a02700e8e45e5892a0313c2cea0e2b314f36e > # Parent

Re: seq- functions

2022-09-05 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > Hm, I prefer simpler code, just > (require 'seq) > . However, I don't adhere this idea. Yes, this is the simpler version; the other one was just meant as a note to people in couple of decades that the form isn't needed with Emacs 29 as minimum required version

master b36127cc: * tex.el: Require seq.el for older Emacsen where not preloaded.

2022-09-05 Thread Arash Esbati
branch: master commit b36127cc74808690cc042eac73952e3e75493d90 Author: Arash Esbati Commit: Arash Esbati * tex.el: Require seq.el for older Emacsen where not preloaded. --- tex.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tex.el b/tex.el index 350d9e90..e6f09d8f 100644

Re: seq- functions

2022-09-05 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > Is is safe to assume that those seq- functions are available without > (require 'seq) for all supported emacsen? As far as I can see, emacs > 25.1 doesn't have autoloads for `seq-uniq' and `seq-concatenate'. Thanks for catching this. I thought I had checked

master 4004dc6b: Simplify the function `LaTeX-array-update-column-letters'

2022-09-01 Thread Arash Esbati
branch: master commit 4004dc6b8f61d45ebdc9dc750e25c6fe024b855e Author: Arash Esbati Commit: Arash Esbati Simplify the function `LaTeX-array-update-column-letters' * style/array.el (LaTeX-array-update-column-letters): Simplify by using seq-functions. Fix docstring. --- style

Re: [a new patch]

2022-08-31 Thread Arash Esbati
Uwe Brauer writes: > I think that's it. Thanks. I slightly changed your patch and installed it with commit 10dbae9ab1. Many thanks for your contribution. Best, Arash

master 10dbae9a: Add support for catchfilebetweentags package

2022-08-31 Thread Arash Esbati
branch: master commit 10dbae9ab1725eeb0452b5c4a36d5a25bb121040 Author: Uwe Brauer Commit: Arash Esbati Add support for catchfilebetweentags package * Makefile.in (STYLESRC): Add new style. * tex-style.el (LaTeX-catchfilebetweentags-use-numeric-label): Add a new

Re: master 6b5f00bf: Unquote lambdas in font-latex.el & tex-bar.el; add some FIXMEs

2022-08-29 Thread Arash Esbati
Tassilo Horn writes: > branch: master > commit 6b5f00bfaca715fe7fcbf30d5811cef22f4fd529 > Author: Stefan Monnier > Commit: Tassilo Horn > > Unquote lambdas in font-latex.el & tex-bar.el; add some FIXMEs > > * font-latex.el (font-latex-match-math-env) >

<    1   2   3   4   5   6   7   8   9   10   >