From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id YFi5AQHFs1/rRwAA0tVLHw (envelope-from ) for ; Tue, 17 Nov 2020 12:41:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id OKoROQDFs1+kBAAA1q6Kng (envelope-from ) for ; Tue, 17 Nov 2020 12:41:36 +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 5B66F940415 for ; Tue, 17 Nov 2020 12:41:36 +0000 (UTC) Received: from localhost ([::1]:57362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kf0Ih-0006LQ-AH for larch@yhetil.org; Tue, 17 Nov 2020 07:41:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36768) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kf0HX-0006L2-1V for emacs-orgmode@gnu.org; Tue, 17 Nov 2020 07:40:23 -0500 Received: from mail-ed1-f48.google.com ([209.85.208.48]:44119) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kf0HT-0002L4-Qj for emacs-orgmode@gnu.org; Tue, 17 Nov 2020 07:40:22 -0500 Received: by mail-ed1-f48.google.com with SMTP id l5so22229887edq.11 for ; Tue, 17 Nov 2020 04:40:19 -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; bh=wl74F6jkU6uPgm9OD3m35mAt+uz9JGmJott1EWR60aM=; b=HW91usStaxAn4XjyQj/Lma+NvDRULMfvV03zr76QEYQcdCw7W+BCf+3+QWPh99hdX/ AHIVYza+fc4+gIjX9dNfFzJuRizO/mRSJRed2ZVfYd3ct+8aJDdIfxcppfQNNJjZU2PY qA6+qSpcnTMoCAUW0JaZlMijtHHuGT+65+vq7psZQ7DZj2X+D+OMqI3SnzkJPJjGya0T ogMKFWPHBNgCTNy49KfqrRAIKJN8XT6y2cyie4kQ+QM/PT6SVf51VYeoUgl2YE1JEoE5 ZGe9cZj+Zm8Duatf6E16/MzgElQSwBwXMoJvRlCgX6wCnZXgBkeo14DxPep7U3uU5P4I iPiQ== X-Gm-Message-State: AOAM530NiOUK5yBb1pf79VeOxzRaqZsyHaVBZK5pXnU2449COcV7Dncp 0mCtuowfXtFAEIUA+ZFYu9tpx3MJwn/f+NXxH+pUsdsK3rXd5w== X-Google-Smtp-Source: ABdhPJz+ulLkz+U+xBxJoBVyo6/oyqRjRV8AGz2cq36J+OC5TeQb2NYOikPdLhHTl8v3+Vkragie1VsoWBrboiEavm8= X-Received: by 2002:aa7:cac2:: with SMTP id l2mr20786364edt.141.1605616818051; Tue, 17 Nov 2020 04:40:18 -0800 (PST) MIME-Version: 1.0 References: <87pn4kcob7.fsf@gnu.org> In-Reply-To: From: ian martins Date: Tue, 17 Nov 2020 07:40:06 -0500 Message-ID: Subject: Re: default :results To: Org-Mode mailing list Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=209.85.208.48; envelope-from=ianxm1@gmail.com; helo=mail-ed1-f48.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/17 07:40:18 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 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_H2=-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: , 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: EhO9QGwhzbCL On Sat, Nov 14, 2020 at 5:27 AM ian martins wrote: > > 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? shortly after sending this I reverted another change I'd made to default behavior by setting it in `org-babel-default-header-args:java'. Another benefit of doing it here is that this variable becomes a list of ways in which a language doesn't follow normal babel default conventions, making it easy to find.