Re: GNU AUCTeX is going ELPA-only and the main development branch changed

2024-07-26 Thread Tassilo Horn
Uwe Brauer writes: > So are you saying, if somebody just change some docstrings in > functions and push that commit, there will be new ElPA release? Or for > every new style file added? Whenever there's a new commit when the cron job on the ELPA machine runs (every 6 hours, I think), there will

GNU AUCTeX is going ELPA-only and the main development branch changed

2024-07-26 Thread Tassilo Horn
Hi all, from now on, AUCTeX releases are only made through the Emacs Lisp Package Archive [1], so auctex-13.3 is the last standalone tarball release. Distro packagers are encouraged to use the ELPA packages as-is and install them under one of the new Emacs locations for system-wide packages, see

Re: string variables in LaTeX-indent-level-count: "" or nil?

2024-05-06 Thread Tassilo Horn
Mandar Mitra writes: >> But note that the update to AUCTeX 14 from 13 or older can be a bit >> tricky because of heavy changes. If something seems fishy, do M-x >> package-delete auctex RET, restart emacs, and then install auctex >> again. > > That did the trick, many thanks! You are welcome. :

Re: string variables in LaTeX-indent-level-count: "" or nil?

2024-05-03 Thread Tassilo Horn
Mandar Mitra writes: Hi Mandar, > I just upgraded from MELPA last night. You mean ELPA, right? > I'm looking at (no pun intended) the function LaTeX-indent-level-count > in elpa/auctex-14.0.4/latex.el. It contains tests of the form > > (looking-at LaTeX-indent-begin-regexp-exceptions-local) >

Re: Fontification of $ sign

2023-09-16 Thread Tassilo Horn
Jean Eid writes: Hi Jean, > Anyway to turn off the fontification of math within $ signs? I know I > can change the color  to white but that is not what I want,  I would > like to  turn it right off. There is no simple option for it but this seems to work: --8<---cut here---

Re: The auto-completion behavior of parenthesis.

2023-07-30 Thread Tassilo Horn
Hongyi Zhao writes: > 1. You said: > > "emacs -Q" session resulted in built-in latex mode > > Yes. This is true in all my testings. > > After the above step 1, I observed the following behavior: > > 2. If AUCTeX hasn't installed by `package-install', after I installed > it by `package-install' an

Re: LaTeX, long line, and synctex.

2023-05-11 Thread Tassilo Horn
Hongyi Zhao writes: >> When working with AUCTeX, if I have long-lines in LaTeX file, then >> the SyncTeX positioning will not so accurate. How to tackle this >> problem? > > It seems that the only feasible way is to use `M-q ( fill-paragraph )` > to do the trick. Right, I think synctex is line-b

Re: (Un)comment line(s) with markers at arbitrary position(s) in this/these line.

2023-05-03 Thread Tassilo Horn
Hongyi Zhao writes: >> > Really, that is the content intercepted by copyq [1] >> > clipboard. What should I do tackling such key binding confliction? > > Very strange: even I've closed the copyq and other clipboard tools, I > still can see the same stuff in vscode when hitting `Ctrl + ;`. I cann

Re: (Un)comment line(s) with markers at arbitrary position(s) in this/these line.

2023-05-03 Thread Tassilo Horn
Hongyi Zhao writes: >> That popup is not from emacs, isn't it? I guess you window manager >> captures the key so that emacs never sees it. You can test that >> assumption by doing C-h k C-x C-;. If emacs doesn't react and tell >> you what this key is bound to, then something captures it. > > R

Re: (Un)comment line(s) with markers at arbitrary position(s) in this/these line.

2023-05-03 Thread Tassilo Horn
Hongyi Zhao writes: >> Use comment-line instead of comment-dwim. > > But when I try `C-x C-;`, the weird behavior is triggered, as shown in > the attached file. That popup is not from emacs, isn't it? I guess you window manager captures the key so that emacs never sees it. You can test that as

Re: (Un)comment line(s) with markers at arbitrary position(s) in this/these line.

2023-05-02 Thread Tassilo Horn
Hongyi Zhao writes: > I want to have the feature of (Un)comment a line or several lines with > markers at an arbitrary position(s) in/spanning this/these line(s). Use comment-line instead of comment-dwim. --8<---cut here---start->8--- C-x C-; runs the command

Re: Use double-click in Evince instead of `Ctrl+left-click` for performing reverse search.

2023-04-28 Thread Tassilo Horn
Hongyi Zhao writes: >> > I want to use double-click in Evince instead of `Ctrl+left-click` >> > for performing reverse search to jump to the corresponding location >> > in the LaTeX source code. Any tips for achieving this goal? >> >> I've had a look at Evince's settings but could not find a way

Re: Use double-click in Evince instead of `Ctrl+left-click` for performing reverse search.

2023-04-27 Thread Tassilo Horn
Hongyi Zhao writes: > I want to use double-click in Evince instead of `Ctrl+left-click` for > performing reverse search to jump to the corresponding location in the > LaTeX source code. Any tips for achieving this goal? I've had a look at Evince's settings but could not find a way to change its

Re: AUCTeX 13.2 released

2023-04-24 Thread Tassilo Horn
Mosè Giordano writes: >> As a minor nit, it seems a release_13.2 tag is still missing. > > I do see the tag in https://git.savannah.gnu.org/cgit/auctex.git, and > https://git.savannah.gnu.org/cgit/auctex.git/tag/?h=release_13_2. Am > I missing something? Not you but I. It seems that "git pull"

Re: AUCTeX 13.2 released

2023-04-24 Thread Tassilo Horn
Hi Mosè, thanks a lot for making the release! As a minor nit, it seems a release_13.2 tag is still missing. Did you forget to push the tag (git push itself doesn't push tags)? Otherwise, I can create and push it for commit bd2c1c67, I guess. I'll also make a new ELPA release now. Bye, Tassilo

Re: DDE support of AUCTeX.

2023-04-02 Thread Tassilo Horn
Tassilo Horn writes: >> I noticed on the wiki [1], which says that the DDE support is absent >> in AUCTeX, as shown in the attachment. I wonder whether this is true. >> >> [1] https://en.wikipedia.org/wiki/Comparison_of_TeX_editors > > Reading [Note 8] suggests

Re: DDE support of AUCTeX.

2023-04-02 Thread Tassilo Horn
Hongyi Zhao writes: > I noticed on the wiki [1], which says that the DDE support is absent > in AUCTeX, as shown in the attachment. I wonder whether this is true. > > [1] https://en.wikipedia.org/wiki/Comparison_of_TeX_editors Reading [Note 8] suggests that with DDE forward/backward sync via oth

Re: AUCTeX does not ask for width for \includegraphics macro anymore

2023-03-16 Thread Tassilo Horn
Kourosh Kalayeh writes: >> I do, too, so just using those two shouldn't be problematic. BTW, >> during key-val completion (through multi-prompt-key-value) I see no >> sign of vertico/maginalia, i.e., no vertical display of completion >> candidates but just standard Completions buffer on hitting T

Re: AUCTeX does not ask for width for \includegraphics macro anymore

2023-03-07 Thread Tassilo Horn
Kourosh Kalayeh writes: >> Do you use some non-standard completion framework? > > Yes, I am using Vertico and Marginilia. I do, too, so just using those two shouldn't be problematic. BTW, during key-val completion (through multi-prompt-key-value) I see no sign of vertico/maginalia, i.e., no ver

Re: AUCTeX does not ask for width for \includegraphics macro anymore

2023-03-07 Thread Tassilo Horn
Kourosh Kalayeh writes: Hi Kourosh, >> Didn't you hit just RET for "(Optional) Overlay:" query? If so, >> that's default behavior of AUCTeX: When you hit just RET for a query >> of optional argument, the rest of queries of optional argument is >> skipped. To avoid that behavior, customize >> Te

Re: AUCTeX does not ask for width for \includegraphics macro anymore

2023-03-05 Thread Tassilo Horn
kaykal writes: Hi Kourosh, >> Should be fixed now. Apparently, overpic only referred to the >> removed function in a docstring so wasn't really broken. > > Thanks! Is it pushed yet? Yes, but only to Git master. > I cannot see it on gnu. I've just made a new ELPA release GNU AUCTeX 13.1.10 wh

Re: AUCTeX does not ask for width for \includegraphics macro anymore

2023-03-04 Thread Tassilo Horn
Tassilo Horn writes: >> It only happens for Beamer. It works fine when using article class >> for example. > > Ah, that's the thing. Arash, you broke it with commit > b7b498baad045685c7fcec0bce61f7290b86d09b where you removed the > function LaTeX-arg-graphicx-inc

Re: AUCTeX does not ask for width for \includegraphics macro anymore

2023-03-03 Thread Tassilo Horn
kaykal writes: >> Tassilo Horn t...@gnu.org writes: > >>> It's not. For me using the current master version, it still queries for >>> the keyval parameters (width, height, angle, scale, etc.). > > It only happens for Beamer. It works fine when using articl

Re: AUCTeX does not ask for width for \includegraphics macro anymore

2023-03-03 Thread Tassilo Horn
kaykal writes: Hi Kourosh, > I recently noticed that when using TeX-insert-macro (C-c RET) for > \includegraphics AUCtex does not inquire about graphics width in the > minibuffer anymore. Can anyone comment if this is expected or not? It's not. For me using the current master version, it still

Re: preview-latex.el

2023-02-11 Thread Tassilo Horn
Colin Baxter writes: > What's happened to preview-latex.el? I notice it's absent from a fresh > git clone. It's generated by running make. Bye, Tassilo

Re: Keybinding C-M-a for LaTeX-find-matching-begin does not work!

2022-07-26 Thread Tassilo Horn
Ikumi Keita writes: Hi Keita, >> Heiko Schröder writes: >> I use Emacs Version 26.3 with AUCTeX 13.1. > > It seems that my failure[1] bothered you, sorry. I guess that you are > using ELPA AUCTeX before version 13.1.3. If that's the case, please > upgrade it to the latest version (and resta

Re: Keybinding C-M-a for LaTeX-find-matching-begin does not work!

2022-07-26 Thread Tassilo Horn
Heiko Schröder writes: Hi Heiko, >> Hm, the docs are a bit outdated. C-M-a is bound to >> `beginning-of-defun' which in turn calls >> `beginning-of-defun-function' which AUCTeX sets to >> `LaTeX-find-matching-begin'. > Hm, a bit peculiar, because M-x LaTeX-find-matching-begin says after > the a

Re: Keybinding C-M-a for LaTeX-find-matching-begin does not work!

2022-07-26 Thread Tassilo Horn
Heiko Schröder writes: Hi Heiko, > it is said, that C-M-a is bound to LaTeX-find-matching-begin. And it > should move to the \begin of the environment. Hm, the docs are a bit outdated. C-M-a is bound to `beginning-of-defun' which in turn calls `beginning-of-defun-function' which AUCTeX sets to

Re: Indenting the code written in square brackets as optional parameters

2022-03-05 Thread Tassilo Horn
Ikumi Keita writes: >> Text [% >> Do we have the same level of confidence for [? >> \end{document} > > Well, isn't it almost impossible? AUCTeX cannot know whether the > author intends to insert closing "]" later but hasn't done that yet, > or "]" is to be really missing when the document is comp

Re: [Info-AUCTeX] AUCTeX 13.1 released

2022-02-20 Thread Tassilo Horn
Ikumi Keita writes: >> Mosè Giordano writes: >> Release notes for AUCTeX 13.1 with preview-latex > > Thank you, Mosè! Yeah, thank you! I've also released 13.1.0 on ELPA just now which should be exactly the same as release_13_1 (modulo the ELPA changes). Bye, Tassilo

Re: TEXINPUTS as a local variable

2022-01-03 Thread Tassilo Horn
Leo Butler writes: Hi Leo, > I have been using: > > %%% Local Variables: > %%% mode: latex > %%% eval: (setenv "TEXINPUTS" ".:..:../resources:../../resources:") > %%% TeX-master: t > %%% End: > > but this changes TEXINPUTS for every invocation of (pdf)latex. Would this slightly longish snippet

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-22 Thread Tassilo Horn
Hongyi Zhao writes: >> I've just pushed a commit which makes the annotation function also >> look into `LaTeX-math-list' and `LaTeX-math-default' if >> `tex--prettify-symbols-alist' did not find a match. That seems to >> have filled quite some gaps. > > But there are still so many symbols can't

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-22 Thread Tassilo Horn
Tassilo Horn writes: >> There's already LaTeX-math-default in AUCTeX which has some of >> TeX-name -> unicode character mapping. > > I've just pushed a change which uses `tex--prettify-symbols-alist' for > the translation but I'll extend that to al

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-21 Thread Tassilo Horn
Hongyi Zhao writes: >> I've just pushed a change which uses `tex--prettify-symbols-alist' >> for the translation but I'll extend that to also try >> `LaTeX-math-default' if no match is found in the former. > > I tried the latest auctex commit, but can't see any effect, as shown > in the attachmen

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-21 Thread Tassilo Horn
Ikumi Keita writes: > There's already LaTeX-math-default in AUCTeX which has some of > TeX-name -> unicode character mapping. I've just pushed a change which uses `tex--prettify-symbols-alist' for the translation but I'll extend that to also try `LaTeX-math-default' if no match is found in the f

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-21 Thread Tassilo Horn
Hongyi Zhao writes: >> I mean, if this works, maybe a lisp script can be created to complete >> the work in batches. I don't know what that means. Either, one could use this other package math-symbol-list or maybe the TeX input method in stock emacs also has this TeX-name -> unicode character m

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-20 Thread Tassilo Horn
Hi again, sorry, attached is a patch which can actually be applied. Bye, Tassilo diff --git a/tex.el b/tex.el index ab6d3d9e..c93e723a 100644 --- a/tex.el +++ b/tex.el @@ -3322,6 +3322,17 @@ The variable will be temporarily let-bound with the necessary value.") (defvar TeX-macro-history nil)

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-20 Thread Tassilo Horn
Hongyi Zhao writes: >> Could someone here give a minimal working example for the question >> discussed here with `completion-table-dynamic'? > > I found an example here [1], but I still can't figure out how to > modify it to meet the problems discussed in this topic: Here's a patch against tex.e

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-19 Thread Tassilo Horn
Tassilo Horn writes: > Or are you asking if that will make that work for all standard AUCTeX > completion functions. I guess so, although just setting > > (setq-local completion-extra-properties > '(:annotation-function > (lambda (x) (m

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-19 Thread Tassilo Horn
Hongyi Zhao writes: >> Oh, allright. We would need to provide an :annotation-function in >> `completion-extra-properties' which translates, e.g., \alpha to α. > > Only such a function will do the tick for the predefined commands? I'm not enitrely sure what you are asking. Are you asking if tha

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-19 Thread Tassilo Horn
Hongyi Zhao writes: >> What do you mean with "the actual characters corresponding to each >> command"? Could you give an example/mockup of what you would like to >> see in your example screenshot? > > Similar to the one given by company-math. Oh, allright. We would need to provide an :annotati

Re: Feature request: Show the characters corresponding to the LaTeX commands displayed in minibuffer.

2021-12-19 Thread Tassilo Horn
Hongyi Zhao writes: Hi! > When I call `TeX-insert-macro' by hitting `C-c RET', the predefined > LaTeX commands are displayed in the minibuffer, so I can choose from > them, as shown in the attached file. > > It would be better if the actual characters corresponding to each > command can be displ

Re: \frametitle macro is not automatically indented in frame environment in beamer

2021-08-26 Thread Tassilo Horn
Arash Esbati writes: >> I installed it through ELPA and emacs package manager >> (`package-install auctex`). > > Ok, the next release might be soon if you kindly ask the release > manager (CC'ed) :-). I've just released GNU AUCTeX 13.0.14 which should appear anytime soon on GNU ELPA. ;-) Bye, T

Re: Failed to install auctex from within Emacs with straight.

2021-08-17 Thread Tassilo Horn
Hongyi Zhao writes: >> Then I'd try something like >> >> (let ((default-directory "~/auctex-checkout")) >> (call-process "~/auctex-checkout/configure" nil "*configure-output*" t)) > > I try to `C-x C-e' the following code in *scratch* buffer: > > (let ((default-directory "~/auctex")) >

Re: Failed to install auctex from within Emacs with straight.

2021-08-16 Thread Tassilo Horn
Hongyi Zhao writes: Hi, > I'm on Ubuntu 20.04.2 LTS, and use straight [1] as the Emacs package > manager. Now, I try to install auctex from within Emacs with straight, > but it always freezes at the configure stage. I describe the detailed > test steps as follows. I've never used straight.el b

Re: Multiple TeX-masters

2021-07-22 Thread Tassilo Horn
Kourosh Kalayeh writes: Hi Kourosh, >> With a personal_macros.tex file which you include in multiple documents, >> you'd usually set TeX-master to the symbol `shared'. > > This is great, how can I set TeX-master to the symbol ‘shared’? %%% Local Variables: %%% mode: latex %%% TeX-master: shared

Re: preview-environment: No enclosing outer environment found

2021-07-19 Thread Tassilo Horn
David Kastrup writes: > You can preview $...$ just fine, you just don't get to call it an > environment. Yes, you are right. C-c C-p C-p on the example works with $...$. > C-c C-p C-p inside of an already existing (but edited) preview would > just use the already established boundaries I think

Re: preview-environment: No enclosing outer environment found

2021-07-19 Thread Tassilo Horn
Hongyi Zhao writes: > With the point inside the math environment, I run the `Preview for > environment' with `C-c C-p C-e', I will meet the following error: > preview-environment: No enclosing outer environment found. I attached > the screenshot here, just FYI. > > Any hints for this problem? Ye

Re: Multiple TeX-masters

2021-07-19 Thread Tassilo Horn
Kourosh Kalayeh writes: Hi Kourosh, > I am working on a NIH grant which consists of several separate > sections; specific aims, background and goals, significance, etc. I > have a separate LaTeX file for each of these sections with one file > for macros. I don't understand that. Are specific_a

Re: Failed to skip from chapter tex file to master pdf file.

2021-07-12 Thread Tassilo Horn
Hongyi Zhao writes: >> (delq nil '(nil 1 nil)) ;=> (1) >> (delq nil '(nil nil nil)) ;=> nil, aka, the empty list () >> (eq nil '()) ;=> t > > Got it. The `nil' shown in my example just means the empty result list > (). The `nil' in itself can be used in different context, when it's > used as bool

Re: Failed to skip from chapter tex file to master pdf file.

2021-07-12 Thread Tassilo Horn
Hongyi Zhao writes: >> (delq nil (mapcar (lambda (buf) >> (with-current-buffer buf >> (when (eq major-mode 'LaTeX-mode) >> (cons (buffer-file-name buf) >> (TeX-master-file "pdf") >>

Re: Failed to skip from chapter tex file to master pdf file.

2021-07-11 Thread Tassilo Horn
Hongyi Zhao writes: > Sorry for my misunderstanding. Really, it can pinpoint the problem: > > (delq nil (mapcar (lambda (buf) > (with-current-buffer buf > (when (eq major-mode 'latex-mode) > (cons (buffer-file-name buf) >

Re: Failed to skip from chapter tex file to master pdf file.

2021-07-11 Thread Tassilo Horn
Hongyi Zhao writes: >> > Or as a first step, you could also find the master file and all chapter >> > files and eval the following in *stratch* and post the output: >> > >> > (delq nil (mapcar (lambda (buf) >> > (with-current-buffer buf >> > (when (eq maj

Re: Failed to skip from chapter tex file to master pdf file.

2021-07-11 Thread Tassilo Horn
Hongyi Zhao writes: >> > ``` >> > epdfinfo: Error opening >> > /home/werner/Public/hpc/tools/thesis/gitlab.kwant-project.org/jbweston/thesis.git/content/conclusion.pdf:No >> > such file or directory >> >> What would be the right filename? The project looks like thesis.tex is >> the master file s

Re: Failed to skip from chapter tex file to master pdf file.

2021-07-10 Thread Tassilo Horn
Hongyi Zhao writes: > On Ubuntu 20.04, I compiled this project: > , with xelatex + > xdvipdfmx via latexmk. When I open the tex master file in Emacs > integrated with the auctex and pdf-tools, I can skip from the pdf file > to the corresponding te

Re: dwim as the value of TeX-master

2021-07-10 Thread Tassilo Horn
Hongyi Zhao writes: >> > If the variable is dwim, AUCTeX will try to avoid querying by >> > attempting to “do what I mean”; and then change the file. >> > >> > But I'm still not so clear on the specific mechanism/algorithm >> > denoted by “do what I mean”. >> >> AUCTeX will look at the TeX-master

Re: dwim as the value of TeX-master

2021-07-09 Thread Tassilo Horn
Hongyi Zhao writes: > The AUCTeX document on > > says the following: > > If the variable is dwim, AUCTeX will try to avoid querying by > attempting to “do what I mean”; and then change the file. > > But I'm still not so clear on t

Re: Eglot Failed to completion for commands defined in specified loaded packages for auctex.

2021-06-16 Thread Tassilo Horn
Mandar Mitra writes: >> You can use company-mode with capf (and dabbrev) backend with auctex >> to get completion popups, see this screenshot: > > Nice font, btw! Looks a little like a slightly taller version of > Liberation Mono, but what is it? Thanks! It's Iosevka and the theme is doom-one.

Re: Eglot Failed to completion for commands defined in specified loaded packages for auctex.

2021-06-15 Thread Tassilo Horn
Hongyi Zhao writes: > Then I open the following tex document in Emacs > > ``` > \documentclass{paper} > \usepackage{braket} > \begin{document} >Some testing comes here. > \end{document} > ``` > > and enable Eglot (M-x eglot), but I find that Eglot Failed to do the > completion for commands de

Re: Export Emacs highlighting to LaTeX?

2021-05-14 Thread Tassilo Horn
jfbu writes: Hi Jean-François, > This leds me to wonder if a poor man solution is feasible which would > rely on Emacs own fontlocking support: i.e. is it feasible to add an > "export to LaTeX mark-up" feature to convert the produced (internal to > Emacs eLisp) mode-dependent highlight into LaTe

Re: LaTeX-fill-paragraph problem

2021-04-27 Thread Tassilo Horn
Erwan Hingant writes: Hi Erwan, > Hope to be to the right place (if not let me know). It's fine here. Another possibility would be `M-x % TeX-submit-bug-report'. > I have a trouble > with a minimal configuration of emacs with auctex when filling a > commented line. Indeed, when I use M-q

Re: keybindings for insert font not working

2021-04-23 Thread Tassilo Horn
David Denton writes: Hi David, > I am unable to use the usual keys for inserting a font,  for example, > emphasized. The expected behaviour is keys C-c C-f C-e produces > \emph{selected text} wrapped around selected text. What does `C-h k C-c C-f' in a latex buffer tell? It's supposed to say

Re: \hologo with selected text

2021-03-03 Thread Tassilo Horn
Denis Bitouzé writes: Hi Denis, >> Please test! > > I would love but I must admit I don't know how to proceed. Any > pointer? See (info "(auctex) Advice for non-privileged users"), especially the section "1.2.6.1 Using AUCTeX from local Git repo" which explains how to run auctex from a local Gi

Re: \hologo with selected text

2021-03-02 Thread Tassilo Horn
>> (defun LaTeX-hologo--arg-use-region-or-query-logo-name (optional) >> (if (and (use-region-p) >>(member (buffer-substring (region-beginning) (region-end)) >>LaTeX-hologo-logo-names)) >> (progn >> (insert TeX-grop) >> (goto-char (region-end)) >>

Re: \hologo with selected text

2021-03-02 Thread Tassilo Horn
Hi Arash, >> I've now implemented that. If the region is active and the region's >> text is a logo name contained in `LaTeX-hologo-logo-names', it'll just >> be wrapped like \hologo{existingLogoName} instead of being queried. >> >> Please test! > > I did test it: Marking LaTeX2e in a .tex file an

Re: \hologo with selected text

2021-03-02 Thread Tassilo Horn
Denis Bitouzé writes: Hi Denis, > when the `hologo` package is loaded and its \hologo command used, it > is asked to specify the logo name in the minibuffer. It is nice, > except if the logo name is already present and selected in the > document. > > IMO, it would be nice when this command is us

Re: [PATCH] Deprioritize "\\.drv\\'" in auto-mode-alist

2021-02-11 Thread Tassilo Horn
Brian Leung writes: Hi Brian, > Ping Sorry, I've been busy. I've applied your patch (with minor modification so that the commit message matches our style). Thanks, Tassilo >> >> From: Brian Leung >> Sent: Fri Jan 22 21:41:19 CET 2021 >> To: >> Subje

Re: wrong-type-argument stringp nil

2021-01-23 Thread Tassilo Horn
Denis Bitouzé writes: Hi Denis, >> Done, GNU AUCTeX 13.0.4 should appear on ELPA shortly. > > Still the same phenomenon (buffer open, but not on the front, but > available nevertheless), with the following message: > > ┌ > │ TeX-auto-parse-region: The TeX auto-parser’s regexp has too man

Re: wrong-type-argument stringp nil

2021-01-23 Thread Tassilo Horn
Denis Bitouzé writes: Hi Denis, >> I'll probably make a new ELPA release this weekend. > > Thanks! Done, GNU AUCTeX 13.0.4 should appear on ELPA shortly. Bye, Tassilo

Re: wrong-type-argument stringp nil

2021-01-21 Thread Tassilo Horn
Denis Bitouzé writes: >> If you can run auctex from the Git master, I'd welcome some testing. > > I guess I could (tomorrow) if: > > - someone give me a pointer (I don't where the Git master is), > - there is a way to easily come back to the "normal" installation. Ah, well, I think I didn't mess

Re: wrong-type-argument stringp nil

2021-01-20 Thread Tassilo Horn
Ikumi Keita writes: Hi Ikumi, >> - (set (make-local-variable 'TeX-auto-full-regexp-list) >> - (append LaTeX-auto-regexp-list plain-TeX-auto-regexp-list)) >> + (setq-local TeX-auto-full-regexp-list >> + (delete-dups (append LaTeX-auto-regexp-list >> +

Re: wrong-type-argument stringp nil

2021-01-19 Thread Tassilo Horn
Denis Bitouzé writes: Hi Denis, >> So basically what we are seeing here is a result of your "use and >> enable any latex package on earth" test file. > > Note that wasn't the initial aim :) That's what the users always say. ;-) >> But maybe I can do something about it as it seems that there mi

Re: wrong-type-argument stringp nil

2021-01-19 Thread Tassilo Horn
Denis Bitouzé writes: >> Hey, I can now reproduce the problem simply by finding the file, >> killing the buffer, finding it again, etc. After a few times, I get >> the error. > > Please drop this random function in your `init.el` file! ;) No, the problem is that the regexp which gets built for

Re: wrong-type-argument stringp nil

2021-01-19 Thread Tassilo Horn
Denis Bitouzé writes: >> Of course, I forgot to attach the patch (as I always do). Here it >> is. > > Please, don't disappoint me: you're not as dizzy as I am, are you?! ;) Be assured, I totally am. ;-) > Here is the content of the *Messages* buffer: > > │ entry: > ("use\\(package\\)\\(

Re: wrong-type-argument stringp nil

2021-01-18 Thread Tassilo Horn
Tassilo Horn writes: >>> The backtrace is helpful but having your test file as well would be >>> perfect. Could you please send (maybe gzipped)? >> >> Sure, here it is (if attachment are allowed). > > Thanks, but I can't reproduce the error. I can open

Re: wrong-type-argument stringp nil

2021-01-16 Thread Tassilo Horn
Denis Bitouzé writes: Hi Denis, > each I open my test file `test.tex`, which is rather big (5452 lines: > it accumulates all my LaTeX tests :), the buffer is open but not on > the front (it is available, nevertheless) because of a > `wrong-type-argument stringp nil` error. > > After toggling `de

Re: Cannot expand string in command on 13.0.3

2021-01-12 Thread Tassilo Horn
Tak Kunihiro writes: Hi Kunihiro, > (defun sesame-TeX-jobname () >"Return option `-jobname' or empty string." >(TeX-active-master-with-quotes nil t) >;; " -jobname=LaTexMkJob" >"") > > (defun sesame-TeX-outdir (&optional looptex-p) >"Return option `-outdir' or empty strin

Re: Cannot expand string in command on 13.0.3

2021-01-12 Thread Tassilo Horn
Tak Kunihiro writes: Hi Kunihiro, > I cannot replace keywords listed in my command in TeX-command-list by > expansion string in TeX-expand-list. I have problem under 13.0.3 but > no problem under 12.3.1. Yes, we've refactored this quite a bit for auctex 13 in order to be able to use lexical-bi

Re: add-to-list on lexical vars (Re: Error on loading polyglossia.el)

2021-01-09 Thread Tassilo Horn
Ikumi Keita writes: > OK, the attached revised patch includes a new test. Looks good. Is there a problem with just adding a (defvar TeX-test-dummy-alist nil) for the test variable and then declaring lexical-binding t for the file? Usually, the test are only run thru make, and then there's n

Re: cannot get AUCTeX to work

2021-01-09 Thread Tassilo Horn
Pastiche P writes: > The error is gone, but I'm not sure AUCTeX itself is properly > loaded. E.g., the command LaTeX-section is undefined. Or perhaps I'm > misunderstanding something? Sorry, I think I wanted to suggest this recipe: (use-package tex-site :ensure auctex :config (setq TeX-

Re: cannot get AUCTeX to work

2021-01-09 Thread Tassilo Horn
Pastiche P writes: Hi Pastiche, > I just installed AUCTeX 13.0.1 using M-x list-packages. This is Emacs > 27.1 under Windows. > > I put this in my config: > > (use-package tex > :ensure auctex > :config > (setq TeX-auto-save t) > (setq TeX-parse-self t)) > > Whenever I open a *.tex file,

Re: add-to-list on lexical vars (Re: Error on loading polyglossia.el)

2021-01-09 Thread Tassilo Horn
Ikumi Keita writes: Hi Ikumi, >>> I did notice, BTW, that this function uses `add-to-list`, the doc >>> string of which warns against using it in Lisp code. > >> Yes, you should definitely not use it on lexical local variables. >> With AUCTeX 13, we switched to lexical-binding, and now that does

Re: Error on loading polyglossia.el

2021-01-08 Thread Tassilo Horn
Joost Kremers writes: Hi Joost, > I did notice, BTW, that this function uses `add-to-list`, the doc > string of which warns against using it in Lisp code. Yes, you should definitely not use it on lexical local variables. With AUCTeX 13, we switched to lexical-binding, and now that doesn't work

Re: Flycheck gutter reporting of LaTeX compiler errors

2020-12-31 Thread Tassilo Horn
Joey Eremondi writes: Hi Joey, > Is there any way to have this set up, so flycheck can highlight > compile errors in the gutter, and I can navigate compile-errors using > flycheck? I don't know flycheck exactly but usually such packages have some kind of regexp to extract the problematic file a

Re: [13.0.0] TeX-auto-parse-region: Wrong type argument: stringp, nil

2020-12-30 Thread Tassilo Horn
Denis Bitouzé writes: Hi Denis, >>> But I have found the culprit, which in my init file: sorry for the >>> noise! >> >> Good to hear. Out of curiosity, was it some breaking change we did or >> just an error of yours? > > In fact, something which used to work was indeed broken. This is not > my

Re: [13.0.0] TeX-auto-parse-region: Wrong type argument: stringp, nil

2020-12-29 Thread Tassilo Horn
Denis Bitouzé writes: Hi Denis, >> Please do `M-x toggle-debug-on-error RET' after step 2 and before >> step 3 above. That should pop up a *Backtrace* buffer telling us >> where the error happens. > > Unfortunately, the problem doesn't appear anymore with emacs started > with the `-Q` option. >

Re: [13.0.0] TeX-auto-parse-region: Wrong type argument: stringp, nil

2020-12-29 Thread Tassilo Horn
Denis Bitouzé writes: Hi Denis, > since AUCTeX has been updated to 13.0.0, it cannot be used anymore > with GNU Emacs 27.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version > 3.24.8). > > Steps to reproduce: > > 1. emacs -Q & > 2. C-x C-e on each line of: >┌ >│ (package-initialize) >

Re: Empty line after an environment & bug#35284: 12.1.1; new verbatim environment wrongly commented out

2020-12-24 Thread Tassilo Horn
Hi Ikumi, > I expect that the attached patch does this job. It introduces a new > flag to distinguish whether there is additional text after the > position where the new environment is inserted, and does another > indent if such text exists. > > I used this patch for 3 months or so and it worked a

Re: TeX-style-path

2020-12-11 Thread Tassilo Horn
Greg Bognar via General discussion about AUCTeX writes: Hi Greg, > Hi, I'm having a problem with TeX-style-path that I don't understand. > > In my config, I set the values for TeX-auto-global, TeX-auto-private, > TeX-auto-local, TeX-style-private, and TeX-style-local variables. > TeX-style-path

Re: Caching package information

2020-11-13 Thread Tassilo Horn
Maximilian Wuttke writes: Hi Maximilian, >> PS: AUCTex is great! It was one of the reasons why I switched from >> vim to Emacs. :) I've already written my bachelor's thesis and a >> paper with Emacs, and now I'm writing my master's thesis. Good to hear! > OK, I implemented this feature for mys

Re: Auctex not loading in Emacs 27.1 from Homebrew on MacOS

2020-08-15 Thread Tassilo Horn
Benedikt Nordhoff writes: Hi Benedikt, > homebrew updated my Emacs to 27.1 today and now auctex 12.2.0 fails to > load with the following error. > > Debugger entered--Lisp error: (wrong-type-argument stringp (require . info)) > > string-match("\\(\\`\\|/\\)desktop\\(\\.elc\\|\\.el\\|\\.so\\)?

Re: missing bash in /usr/bin seems to cause auctex to break on buffer initialization

2020-06-30 Thread Tassilo Horn
jfbu writes: > Sorry for spurious inserts (no idea where they came from) in my > previous message. I only wanted to say this: > > It does appear I am on a broken system where GNU Emacs 25.2 > Debian was compiled with SHELL being set to /usr/bin/bash > but in the end I don't have a /usr/bin/bash b

Re: missing bash in /usr/bin seems to cause auctex to break on buffer initialization

2020-06-26 Thread Tassilo Horn
jfbu writes: Hi Jean-François, > On trying to open any .tex file I hit against > > Debugger entered--Lisp error: (file-error "Searching for program" "Aucun > fichier ou dossier de ce type" "/usr/bin/bash") > call-process("/usr/bin/bash" nil t nil "-c" "atril --help") > apply(call-process "/u

Re: LaTeX package completion not working properly

2020-04-23 Thread Tassilo Horn
Brian Elmegaard writes: Hi Brian, > Thanks - this was a good hint. > > I found that kpathsea is mentioned in tex-mik.el. > > It was not clear to me from the installation instructions that I > should (require 'tex-mik) in .emacs, but that made it work. Ah, I didn't know myself but the fine manua

Re: LaTeX package completion not working properly

2020-04-21 Thread Tassilo Horn
Brian Elmegaard writes: Hi Brian, > This is the output of > C-x C-e (TeX-macro-global) RET > > ("c:/Users/brel/AppData/Local/Programs/MiKTeX 2.9/tex/" > "c:/Users/brel/AppData/Local/Programs/MiKTeX 2.9/bibtex/bst/") > > so this looks correct, I guess. Yes, looks good to me, too. > I also have

Re: LaTeX package completion not working properly

2020-04-18 Thread Tassilo Horn
Brian Elmegaard writes: Hi Brian, > It also works for LaTeX commands and environments as soon as I have > entered the package name manually. > But for \usepackage it does not work. > > The only difference I can find is that somehow I have the environment variable > TEXINPUTS set to the path: > .

Re: [AUCTeX] [Info-AUCTeX] Loads of warnings and references to free variable sand undefined functions

2019-10-19 Thread Tassilo Horn
Tassilo Horn writes: >> To Tassilo: Is it trivially easy to exclude "test" directory from >> ELPA release? The regression test kit is not intended for end users, >> and it will reduce a lot of compile warning for ELPA users if it >> isn't distributed in

Re: [AUCTeX] [Info-AUCTeX] Loads of warnings and references to free variable sand undefined functions

2019-10-18 Thread Tassilo Horn
On October 17, 2019 6:12:10 PM Ikumi Keita wrote: To Tassilo: Is it trivially easy to exclude "test" directory from ELPA release? The regression test kit is not intended for end users, and it will reduce a lot of compile warning for ELPA users if it isn't distributed in ELPA. I can simply de

Re: [AUCTeX] Contributing style files

2019-03-09 Thread Tassilo Horn
Mandar Mitra writes: Hi Mandar, > I had earlier emailed a very basic tabu.el as a starting point for > tabu.sty to auctex-devel. I've attached it with this email as well. > I'm not sure of the proper way to go about getting this reviewed and > included in the styles directory if it's found to b

Re: [AUCTeX] Loading beamer.el style file

2019-02-24 Thread Tassilo Horn
Mandar Mitra writes: Hi Mandar, > This may not be the "proper" way to do things (I'm no expert), but it > might work: > > 1. create a file called beamerswitch.el in the directory pointed to by > your TeX-style-private variable; > > 2. in the file, put >(TeX-add-style-hook > "beamers

  1   2   3   4   5   6   7   >