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

T. Baumann <[email protected]>
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
Frank Küster <frank <at> kuesterei.ch> writes:

> 
> Hello everybody,
> 
> 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
> >
> > Hi there.
> > 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.
> 
> Regards, Frank

The following patch should add the C-u functionality. I'll get back with the
customization this week after I checked other style files...

Thomas

25a26,27
>    (defvar beamer-use-item-overlay-flag nil
>      "Controls whether (optional) overlays are added for in items")
133c135,139
<   "Insert a new item with an optional overlay argument."
---
>   "Insert a new item with an optional overlay argument. 
> If the prefix argument is given the overlay specification is not asked for."
>   (if (listp current-prefix-arg)
>       (setq current-prefix-arg (car current-prefix-arg))
>     current-prefix-arg)
136c142,143
<   (TeX-arg-beamer-overlay-spec 0)
---
>   (if (eq current-prefix-arg nil)
>        (TeX-arg-beamer-overlay-spec 0))
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.