2 Jan 21:56 2008

### RefTeX: More flexible reference style selection

Hi,

following up on the discussion about the support for \autoref on the
auctex' mailing list I've tried to come up with something more flexible
than the current approach where you are limited to fancyref and varioref
(through customizing reftex-{vref,fref}-is-default').  The idea is that
there is a list of styles which can be cycled through when selecting the
reference for insertion.  This list includes all reference styles,
i.e. the macros \ref, \vref, \fref, etc.  If RefTeX has information
about the LaTeX packages used in the document, the list can be limited
to the macros made available by the packages.

Attached you may find a patch which demonstrates the idea.  The code is
not finished yet.  For example the logic for restricting the available
macros is not there yet, the chosen style is not remembered yet and it
does not honor reftex-{vref,fref}-is-default' for backwards
compatibility.  An interesting part of the patch is likely the variable
reftex-ref-style-alist' which can be adapted by the user to include
more referencing macros and information on the LaTeX package they are
defined in.

If people think this is an approach worth pursuing I'll try to develop
it further.

--

--
Ralf
Attachment (ref-style.patch): text/x-diff, 7092 bytes
_______________________________________________

4 Jan 14:10 2008

### Re: RefTeX: More flexible reference style selection

Ralf Angeli wrote:
> Hi,
>
> following up on the discussion about the support for \autoref on the
> auctex' mailing list I've tried to come up with something more flexible
> than the current approach where you are limited to fancyref and varioref
> (through customizing reftex-{vref,fref}-is-default').  The idea is that
> there is a list of styles which can be cycled through when selecting the
> reference for insertion.  This list includes all reference styles,
> i.e. the macros \ref, \vref, \fref, etc.  If RefTeX has information
> about the LaTeX packages used in the document, the list can be limited
> to the macros made available by the packages.
>
> Attached you may find a patch which demonstrates the idea.  The code is
> not finished yet.  For example the logic for restricting the available
> macros is not there yet, the chosen style is not remembered yet and it
> does not honor reftex-{vref,fref}-is-default' for backwards
> compatibility.  An interesting part of the patch is likely the variable
> reftex-ref-style-alist' which can be adapted by the user to include
> more referencing macros and information on the LaTeX package they are
> defined in.
>
> If people think this is an approach worth pursuing I'll try to develop
> it further.

I can't comment on the implementation, but I think anything that allows
users to add their own referencing macros sounds great. In general this
idea seems pretty good to me.
12 Jan 17:17 2008

### Happy Birthday 11.84

11.84 turns one today.  What do people think about releasing 11.85 in
the near future?  Off the top of my head the only outstanding task would
be relicensing AUCTeX to GPLv3.  Anything else?

--

--
Ralf
12 Jan 18:53 2008

### Re: Happy Birthday 11.84

Ralf Angeli wrote:
> 11.84 turns one today.  What do people think about releasing 11.85 in
> the near future?  Off the top of my head the only outstanding task would
> be relicensing AUCTeX to GPLv3.  Anything else?

I'd love to see the kind of autoref support you introduced in your
recent patch.
12 Jan 19:02 2008

### Re: Re: Happy Birthday 11.84

* Michael Hoffman (2008-01-12) writes:

> Ralf Angeli wrote:
>> 11.84 turns one today.  What do people think about releasing 11.85 in
>> the near future?  Off the top of my head the only outstanding task would
>> be relicensing AUCTeX to GPLv3.  Anything else?
>
> I'd love to see the kind of autoref support you introduced in your
> recent patch.

The autoref support would be part of RefTeX, not AUCTeX.  And with
"11.85" I was referring to a new AUCTeX release.

--

--
Ralf
12 Jan 19:10 2008

### Re: Happy Birthday 11.84

Ralf Angeli <angeli <at> caeruleus.net> writes:

> 11.84 turns one today.  What do people think about releasing 11.85 in
> the near future?  Off the top of my head the only outstanding task would
> be relicensing AUCTeX to GPLv3.  Anything else?

I seem to remember that you wanted to have something
done/finished/whatever before doing that, but I don't quite remember
what it could have been.

--

--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
12 Jan 19:16 2008

### Re: Happy Birthday 11.84

* David Kastrup (2008-01-12) writes:

> Ralf Angeli <angeli <at> caeruleus.net> writes:
>
>> 11.84 turns one today.  What do people think about releasing 11.85 in
>> the near future?  Off the top of my head the only outstanding task would
>> be relicensing AUCTeX to GPLv3.  Anything else?
>
> I seem to remember that you wanted to have something
> done/finished/whatever before doing that, but I don't quite remember
> what it could have been.

Font locking perhaps.  This certainly comprises the bulk of changes.
There haven't been many reports about it, so either it behaves
acceptably or nobody has used it.  I'll run some tests in other modes
than LaTeX to check if it produces sane results as soon as I have time.

--

--
Ralf
13 Jan 11:11 2008

### Re: Spam on AUCTeX CVS mailing lists

On Sat, Nov 03 2007, Reiner Steib wrote:
> On Tue, Oct 30 2007, Reiner Steib wrote:
>> Oh, I found Privacy options... / Spam filters'.  Seems suitable.  At
>> least no spam since yesterday evening when I changed it.
>
> No more spam since then.  I refined the regexps a little.  Note: Don't
> use "^" for the header filters ("Subject: ..." instead of "^Subject:
> ...").

No more spam since then, AFAICS.

>> If one day Savannah changes the format (Subject and Message-ID) we
>> need to adjust the filters.

Savannah in fact changed the Message-ID back in December, but Sylvain
Beucler changed it back on my request (see

>> Also if we add another (top-level) module to CVS.
>
> Ralf, maybe you'd like to unset nomail again (or take a look at the
> (Gmane) archives) and notify us if legitimate commits don't appear on
> the lists.

Did anyone notice missing commit messages?  Ralf?

Bye, Reiner.
--

--
,,,
(o o)

13 Jan 11:09 2008

### Re: Happy Birthday 11.84

On Sat, Jan 12 2008, Ralf Angeli wrote:

> 11.84 turns one today.  What do people think about releasing 11.85
> in the near future?

Good idea.

> Off the top of my head the only outstanding task would be
> relicensing AUCTeX to GPLv3.

FWIW, here's the bash command I used to relicense Gnus (I didn't test
it for the AUCTeX sources):

find . -name Entries|while read ent; do dir=$(dirname$(dirname $ent)); \ sed -ne "s,^/$$[^/]*$$/.*$,$dir/\1,p" <$ent; done | \
xargs sed -i -e 's|Free Software Foundation; either version 2, or|Free Software Foundation; either
version 3, or|'

> Anything else?

I just glanced over the ChangeLog since 11.84 and saw this "TODO":

2007-02-25  David Kastrup  <dak <at> gnu.org>

input method if feasible.  TODO: replace calls of read-string'
with this wherever it may be appropriate.

But maybe it's better to leave this for "after the release"?

13 Jan 11:06 2008

### Re: Happy Birthday 11.84

On Sat, Jan 12 2008, Ralf Angeli wrote:

> * Michael Hoffman (2008-01-12) writes:
>> I'd love to see the kind of autoref support you introduced in your
>> recent patch.
>
> The autoref support would be part of RefTeX, not AUCTeX.  And with
> "11.85" I was referring to a new AUCTeX release.

Any plans to release RefTeX as well?

Bye, Reiner.
--

--
,,,
(o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

Gmane