emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default


From: Leo Butler
Subject: Re: [BUG] Re: The orgframe construct in the Beamer exporter as a default needs a rethink
Date: Sun, 17 Mar 2024 13:18:12 +0000
User-agent: Gnus/5.13 (Gnus v5.13)

On Sun, Mar 17 2024, Ihor Radchenko <yantar92@posteo.net> wrote:

> Leo Butler <Leo.Butler@umanitoba.ca> writes:
>
>>>> I'd prefer to keep this information in the INFO channel.
>>>> It will be more consistent.
>>
>> Apologies, I messed up the patch in the previous email.
>>
>> Attached is a patch that compiles cleanly and uses INFO.
>
> Thanks!
>
>> +         (frame (let ((selection
>> +                       (or (and fragilep
>> +                                (or (string-search "\\begin{frame}" 
>> contents)
>> +                                    (string-search "\\end{frame}" contents))
>
> Please use `string-match-p'. `string-search' is not available in Emacs
> 27, which we still support.

Done.

>
>> +                                org-beamer-frame-environment)
>> +                           "frame")))
>> +                  (unless (string= selection "frame")
>> +                    (setq info (plist-put info :define-frame t)))
>
> Let's use "beamer" prefix to indicate that this plist entry is
> beamer backend-specific. Something like :beamer-define-frame.

Done.

Attached is the updated patch. In addition, I have written three
regression tests that are attached in a separate patch.

Leo

Attachment: 0001-lisp-ox-beamer.el-constrain-use-of-org-beamer-frame-.patch
Description: 0001-lisp-ox-beamer.el-constrain-use-of-org-beamer-frame-.patch

Attachment: 0002-testing-lisp-test-ox-beamer.el-New-regression-tests-.patch
Description: 0002-testing-lisp-test-ox-beamer.el-New-regression-tests-.patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]