Re: Bug#290635: auctex: Should allow customizeation of LaTeX-item-beamer

David Kastrup <[email protected]>
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
T. Baumann <[email protected]> writes:

> Frank Küster <frank <at> kuesterei.ch> writes:
>
>> a user of beamer.el in Debian has reported the following wishlist bug:
>> 
>> Jorgen Schaefer <forcer <at> debian.org> wrote:
>> 
>> > Package: auctex
>> > Version: 11.53-1
>> > Severity: wishlist
>> >
>> > LaTeX-item-beamer should have an option that stops it from reading an
>> > overlay argument (or otherwise allow that (setq LaTeX-item-list ...) in the
>> > TeX-add-style-hook to be overridden). Not all people use overlays
>> > extensively, and for those who don't it's annoying to always say "no,
>> > really, I don't want overlays"...
>> 
>> As far as I can see, TeX-arg-beamer-overlay-spec is still always and
>> unconditionally called in TeX-item-beamer.
>> 
>> As usual, it seems to me that a customizable option along with a C-u
>> toggle would be the best solution.
>
> The following patch should add the C-u functionality. I'll get back with the
> customization this week after I checked other style files...

I don't think this makes sense.  Typing C-u before the command
certainly is more effort than just typing RET as an answer to the
prompt.

However, the context sensitivity could save typing indeed, at least by
offering a sensible default: if the previous item in the current
environment is without beamer tag, offer an empty string for
completion, if it is of the form <a-b>, offer <b+1-> as completion, if
it is of the form <a->, offer <a+1->.  Something like that.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.