From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QFMfKmqxr1+NYAAA0tVLHw (envelope-from ) for ; Sat, 14 Nov 2020 10:28:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id cPvwJWqxr181WQAAbx9fmQ (envelope-from ) for ; Sat, 14 Nov 2020 10:28:58 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2683E9403EA for ; Sat, 14 Nov 2020 10:28:58 +0000 (UTC) Received: from localhost ([::1]:42116 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdsng-0002vf-DD for larch@yhetil.org; Sat, 14 Nov 2020 05:28:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdsn0-0002vJ-Kp for emacs-orgmode@gnu.org; Sat, 14 Nov 2020 05:28:14 -0500 Received: from mail-ej1-f54.google.com ([209.85.218.54]:42691) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdsmx-0005yY-FD; Sat, 14 Nov 2020 05:28:14 -0500 Received: by mail-ej1-f54.google.com with SMTP id i19so17457213ejx.9; Sat, 14 Nov 2020 02:28:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DZ1dU2ZdfHUGEitEaKSY9jeVU42Z3TjFz/7B1/bRWmQ=; b=tAd/SWQ/N+rovrcldhTae+quHOxIp46S3UG+PuBMgIPC5vz97Zf1iDDaK6TrKN/hVf c01PtXzywalI1n2R34YcG0Tj9blpVLj2S2S9w35YSgp/txQaK/DUOlurZObORwfgmIDc L8VF0zvJmVgoStP7PJ565zQJl91Di4shwDTqZXHTRev6WMfzvzEz/meMOx5kTnhkn2Hh LSN/JXsab6cJXfjmNbaK/hPhetCFLHfhwh6PmOk82VuOQcKK6rPUJvgkNM0JfMpVynXG zyIw+PCesist1B1gqCPA+V1Ynpi4l7vL3krOTGiQ4waCHw+imBNH+YEn/kf28T+LsFkY P0bQ== X-Gm-Message-State: AOAM530alT3Kb5yIgSX4qjV9ruJty2et6sJGPogo1o8mr1aqPDPmOl9r etMKc8IReP7F5Qbhpe+pFyMoiPAfDzs1c3WzHUfpr1I9De3cDA== X-Google-Smtp-Source: ABdhPJw1F8t0gwfHLMeX8QikBK9FdTE9DjmgTmCc+5Hvt57TgcZeAP7MULYuVb+vQ9aOTHqPMX7R5YXRzNOBLW3p0JY= X-Received: by 2002:a17:906:3daa:: with SMTP id y10mr5963972ejh.23.1605349689221; Sat, 14 Nov 2020 02:28:09 -0800 (PST) MIME-Version: 1.0 References: <87pn4kcob7.fsf@gnu.org> In-Reply-To: <87pn4kcob7.fsf@gnu.org> From: ian martins Date: Sat, 14 Nov 2020 05:27:57 -0500 Message-ID: Subject: Re: default :results To: Bastien Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=209.85.218.54; envelope-from=ianxm1@gmail.com; helo=mail-ej1-f54.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/14 05:28:09 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Org-Mode mailing list Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=jhu.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -0.91 X-TUID: 1z8DkkDtukNt On Wed, Nov 11, 2020 at 3:04 AM Bastien wrote: > > The default for ob-shell execution was to use the output, not the > value. Then we had a long discussion, leading to this: > > - The default (no :result) is to display the functional value > > - For some languages, it may break expectations, so in this case we > allow a variable that let the default (no :result) use the output > instead of the functional value. > > This is what is being done for ob-shell.el where we have > `org-babel-shell-results-defaults-to-output' set to `t'. > > See https://orgmode.org/list/877dt5trjr.fsf@bzg.fr/ for the conclusion > of the discussion. I agree with your reasoning. I already reverted the behavior, but Instead of adding a `org-babel-java-results-defaults-to-output variable' I set the default in `org-babel-default-header-args:java'. It was better because it didn't add a new variable, but worse because it isn't customizable. Should I change it? > Also see `org-babel-shell-results-defaults-to-output' docstring: > > Let shell execution defaults to ":results output". > > When set to t, use ":results output" when no :results setting > is set. This is especially useful for inline source blocks. > > When set to nil, stick to the convention of using :results value > as the default setting when no :results is set, the "value" of > a shell execution being its exit code. > > > And is this inconsistent behavior across languages something that > > should be fixed? or is it intentional or at least not worth doing > > anything about? > > What was suggested is to have a page on Worg listing the behavior of > various packages regarding block execution. > > I started a section on https://orgmode.org/worg/library-of-babel.html > with a table -- feel free to add more to this table. Thanks, I will add to it. Would it be better for the table to be on the languages [1] page? If so, I can move it when I update. Also, there are two library of babel pages ([2], [3]) that appear to serve the same purpose. I was thinking of merging them. Is that fine? [1] https://orgmode.org/worg/org-contrib/babel/languages/index.html [2] https://orgmode.org/worg/org-contrib/babel/library-of-babel.html [3] https://orgmode.org/worg/library-of-babel.html