From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [PATCH 09/10] Remove org-babel-check-confirm-evaluate macro Date: Wed, 03 Apr 2013 08:05:39 -0600 Message-ID: <878v4zy79m.fsf@gmail.com> References: <1364794944-13826-1-git-send-email-aaronecay@gmail.com> <1364794944-13826-10-git-send-email-aaronecay@gmail.com> <87zjxgso8m.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:37727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNPQP-0002IP-Ee for emacs-orgmode@gnu.org; Wed, 03 Apr 2013 11:16:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNPQJ-0007lg-62 for emacs-orgmode@gnu.org; Wed, 03 Apr 2013 11:16:33 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:63651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNPQJ-0007lR-00 for emacs-orgmode@gnu.org; Wed, 03 Apr 2013 11:16:27 -0400 Received: by mail-pa0-f54.google.com with SMTP id fa11so943255pad.27 for ; Wed, 03 Apr 2013 08:16:26 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Achim Gratz Cc: emacs-orgmode@gnu.org Achim Gratz 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