GNU bug report logs - #23180
2016-01-31; Auto-capitalize and change env

Previous Next

Package: auctex;

Reported by: Uwe Brauer <oub <at> mat.ucm.es>

Date: Fri, 1 Apr 2016 09:39:01 UTC

Severity: normal

Tags: notabug

Done: mose <at> gnu.org (Mosè Giordano)

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Uwe Brauer <oub <at> mat.ucm.es>
To: Mosè Giordano <mose <at> gnu.org>
Cc: Uwe Brauer <oub <at> mat.ucm.es>, 23180 <at> debbugs.gnu.org
Subject: bug#23180: 2016-01-31; Auto-capitalize and change env
Date: Fri, 01 Apr 2016 12:27:08 +0000
[Message part 1 (text/plain, inline)]
    > 2016-04-01 12:47 GMT+02:00 Uwe Brauer <oub <at> mat.ucm.es>:

    > Then can we close this? :-)

Hm, I found the recipe:

 emacs -Q
 load auto-capitalize manually.

Load the following two files

Open a latex buffer and proceed as I said.

The problem is caused by this


 (add-hook 'LaTeX-mode-hook 'my-set-auto-capitalize) 
 (defun my-set-auto-capitalize ()
 (interactive)
         (set (make-local-variable 'auto-capitalize-predicate)
              (lambda () (not (texmathp)))))

That was recommended to me by Kevin in order that
auto-capitalize is deactivated in math environment.

For example
\begin{equation}
 A_i
\end{align}
should not be expanded to 
\begin{equation}
 A_I
\end{align}

The above function provides such a behavior but the price is that change
environment does not work properly. Any thoughts?





[my-auto.el (application/emacs-lisp, attachment)]
[auc-init.el (application/emacs-lisp, attachment)]

This bug report was last modified 8 years and 229 days ago.

Previous Next


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