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


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

From: Mosè Giordano <mose <at> gnu.org>
To: Uwe Brauer <oub <at> mat.ucm.es>
Cc: 23180 <at> debbugs.gnu.org, Marcin Borkowski <mbork <at> mbork.pl>
Subject: Re: Still a problem
Date: Sat, 2 Apr 2016 20:06:22 +0200
2016-04-02 19:44 GMT+02:00 Uwe Brauer <oub <at> mat.ucm.es>:
>>>> "Mosè" == Mosè Giordano <mose <at> gnu.org> writes:
>
>    > Hi Uwe,
>    > 2016-04-02 19:31 GMT+02:00 Uwe Brauer <oub <at> mat.ucm.es>:
>    >>>>> "Mosè" == Mosè Giordano <mose <at> gnu.org> writes:
>    >> (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?
>
>    > Yes.  Since that function is to be run in `after-change-functions' I
>    > believe that it should be auto-capitalize task to make sure match data
>    > is preserved after `auto-capitalize-predicate' is executed.
>
> No that did not work, gave a syntax error(!)
>
> it seems that the correct syntax is
>
>                (save-match-data (funcall auto-capitalize-predicate))))
>
>
> now (for the moment being, finger crossed) everything works as expected.

Sorry, I didn't look closely to the code.  `funcall' takes a function
as argument, `save-match-data' has to protect the whole `funcall'.

> If Kevin is not responding in due time, I try to find out how I could
> change the code in MELPA.

MELPA fetches that package from Emacswiki
https://www.emacswiki.org/emacs/auto-capitalize.el see the recipe
https://raw.githubusercontent.com/melpa/melpa/master/recipes/auto-capitalize

Bye,
Mosè




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.