GNU bug report logs - #54339
13.1.1; TeX-quote-after-quote not set correctly in language styles

Previous Next

Package: auctex;

Reported by: Frank Fischer <frank-fischer <at> shadow-soft.de>

Date: Fri, 11 Mar 2022 10:52:02 UTC

Severity: normal

Found in version 13.1.1

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 54339 <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: Frank Fischer <frank-fischer <at> shadow-soft.de>
Cc: 54339 <at> debbugs.gnu.org
Subject: Re: bug#54339: 13.1.1; TeX-quote-after-quote not set correctly in
 language styles
Date: Sun, 13 Mar 2022 11:04:38 +0100
Hi Frank,

Frank Fischer <frank-fischer <at> shadow-soft.de> writes:

> Language style files initialize the fourth argument of
> `TeX-quote-language` from a language specific variable. For instance
> consider the following lines (currently 45-48) from german.el
>
>    (q-after-q (if (and (boundp 'LaTeX-german-quote-after-quote)
>                        LaTeX-german-quote-after-quote)
>                   LaTeX-german-quote-after-quote
>                 t)))
>
> There is no way q-after-q can be set to nil by setting
> `LaTeX-german-quote-after-quote` to nil because of the if condition.
> The correct code is probably
>
>    (q-after-q (if (boundp 'LaTeX-german-quote-after-quote)
>                   LaTeX-german-quote-after-quote
>                 t)))

Thanks for the report.  I agree, the way q-after-q is currently
implemented it can never become nil.  OTOH, News in 11.81 has this
entry:

• The language-specific insertion of quotation marks was generalized.
  The variables LaTeX-german-open-quote, LaTeX-german-close-quote,
  LaTeX-german-quote-after-quote, LaTeX-italian-open-quote,
  LaTeX-italian-close-quote, and LaTeX-italian-quote-after-quote are now
  obsolete.  If you are not satisfied with the default settings, you
  should customize TeX-quote-language-alist instead.

AUCTeX 11.81 was released in September 2005, I think the transition
period (even in Emacs time calculation) is over and we can safely delete
them which would also fix the bug above.

> There might be similar issues in other language style files.

ngerman.el is another candidate.

Best, Arash




This bug report was last modified 3 years and 71 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.