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>, Marcin Borkowski <mbork <at> mbork.pl>, 23180 <at> debbugs.gnu.org
Subject: bug#23180: Still a problem (was: bug#23180: 2016-01-31; Auto-capitalize and change env)
Date: Sat, 02 Apr 2016 17:31:04 +0000
>>> "Mosè" == Mosè Giordano <mose <at> gnu.org> writes:

    > Hi Uwe,
    > I dug further into the bug and noticed that it can be better
    > circumvented by setting `auto-capitalize-predicate' to

    >     (lambda () (not (save-match-data (texmathp))))

I did the change


(defun my-set-auto-capitalize ()
  (interactive)
  (set (make-local-variable 'auto-capitalize-predicate)
       (lambda () (not (save-match-data (texmathp))))))

Then when following the recipe;
emacs -Q

And loading the necessary files changing enviroments seems to work,
however not for my standard init setting, it seems that it is important
where that function is in the LaTeX-mode-hook.

(I think everybody is tired with this bug), 
So I thought of modifying directly the auto-capitalize code.

Most likely the line 
	       (funcall auto-capitalize-predicate)))

Should read

	       (funcall (save-match-data (auto-capitalize-predicate))))

Is this correct?

thanks

Uwe 




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.