[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH 09/10] Remove org-babel-check-confirm-evaluate macro
From: |
Eric Schulte |
Subject: |
Re: [O] [PATCH 09/10] Remove org-babel-check-confirm-evaluate macro |
Date: |
Wed, 03 Apr 2013 08:05:39 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Achim Gratz <address@hidden> writes:
> Aaron Ecay writes:
>> * lisp/ob-core.el (org-babel-check-confirm-evaluate): remove
>> (org-babel-check-evaluate),
>> (org-babel-confirm-evaluate): move logic here
>>
>> This macro is used in only two places, and has two almost-independent
>> complex logics coded into it. So, suppress the macro and move the logic
>> into the respective functions.
>
> I have recently introduced that macro because no amount of documentation
> can guarantee that the two functions using these values compute them the
> same way when somebody makes further changes down the road. That is,
> however, mandatory for these functions to work properly and safely.
>
> I haven't checked if the logic hasn't changed with that patch, but I
> don't think it's any easier to understand than before.
>
I agree with Achim, I think we should retain the macro.
Best,
--
Eric Schulte
http://cs.unm.edu/~eschulte
- [O] [PATCH 05/10] Remove info arg from several org-babel functions, (continued)
- [O] [PATCH 05/10] Remove info arg from several org-babel functions, Aaron Ecay, 2013/04/01
- [O] [PATCH 08/10] Fix testing/lisp/test-ob-emacs-lisp.el, Aaron Ecay, 2013/04/01
- [O] [PATCH 06/10] Use prefix arg in org-edit-special, Aaron Ecay, 2013/04/01
- [O] [PATCH 09/10] Remove org-babel-check-confirm-evaluate macro, Aaron Ecay, 2013/04/01
- [O] [PATCH 10/10] Document how :var introduces code block dependencies., Aaron Ecay, 2013/04/01
- Re: [O] [PATCH 00/10] babel cleanups, Eric Schulte, 2013/04/02