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 mNUAFLUe01/JWgAA0tVLHw (envelope-from ) for ; Fri, 11 Dec 2020 07:24: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 8JTUD7Ue019GHgAA1q6Kng (envelope-from ) for ; Fri, 11 Dec 2020 07:24:37 +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 E3E749402A9 for ; Fri, 11 Dec 2020 07:24:36 +0000 (UTC) Received: from localhost ([::1]:54462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kncn5-0006pF-SH for larch@yhetil.org; Fri, 11 Dec 2020 02:24:35 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kncm3-0006p2-86 for emacs-orgmode@gnu.org; Fri, 11 Dec 2020 02:23:31 -0500 Received: from mail-lj1-x242.google.com ([2a00:1450:4864:20::242]:43280) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kncm1-00039A-2C for emacs-orgmode@gnu.org; Fri, 11 Dec 2020 02:23:31 -0500 Received: by mail-lj1-x242.google.com with SMTP id e7so9739882ljg.10 for ; Thu, 10 Dec 2020 23:23:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=madlon-kay.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=+N8HUmb3MWsBuaO18e8bh90PRwsAc05QVxMXI31grFQ=; b=dmdvxaQTvtLAUKWzb1C/ivXaAR+Tzbiz4EW2bqT3DpY8QB4drI24+frOj0BWA3oUCZ xXPoYbOZIJx8yAuF8iKO3n9QSWZNyiHBsFaYCQmQ4b2qVpDeg3M9iIRQ3AvV4lNU6037 C7gG9x9sfpVAm/X/M3SdtLL4b3mVCCY6yM8/M= 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=+N8HUmb3MWsBuaO18e8bh90PRwsAc05QVxMXI31grFQ=; b=jiNZ5mzWM3kU863GGAyZDAtpBy3I2Msg4CbBKtU8hmnvWQESiYqfHGf+8+E9mCO3Vl m2kyaArk96uZhvv8voZB7m3VV0u6XjODbtHiO4FT5DsZiX8EM0PX8eutvARfr3nE2/G+ kbaDGR4TjHE7To7950GNsrZGKVcKgs6jHO0o6moJuwKqKbQoZL+FGNQIu7ALClwXnt9C oBx7H/7C04CRrxdbIsrqdaIRJdbHWvAJpIVJ7o/A3OLhyLLbhIlgzKj3HzO+id8h0/mb NBH3hHoBUJj/m2iQQgyBtFGL9FLrjkAcIDElzMfvjU92LpsXit6PNXsIDbh0qXQOBXJa xe2g== X-Gm-Message-State: AOAM530EFn1U5bIqw1ezG6Z6p7ihNEmCQsw2RJcguA6geMKPxsCSepsX VxWglDVwezELde3aQWdjNF53sxMljSnd+3fYBNUq9J7XtOyM9P0y X-Google-Smtp-Source: ABdhPJzBqRdIuEuR754WLBj1jEAsx6DuBnUOD2ak7yjXb9ER9/zm5JR8qWrlLaWFyWEBnb71OCpuc1omkQ1IbvJoCpM= X-Received: by 2002:a2e:5018:: with SMTP id e24mr4656656ljb.425.1607671402858; Thu, 10 Dec 2020 23:23:22 -0800 (PST) MIME-Version: 1.0 References: <87pn3zpag9.fsf@kyleam.com> <87o8jhqfwq.fsf@kyleam.com> In-Reply-To: <87o8jhqfwq.fsf@kyleam.com> From: Aaron Madlon-Kay Date: Fri, 11 Dec 2020 16:23:11 +0900 Message-ID: Subject: Re: [PATCH] ob-ruby.el: Don't reuse the same buffer among different named To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: none client-ip=2a00:1450:4864:20::242; envelope-from=aaron@madlon-kay.com; helo=mail-lj1-x242.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham 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-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.50 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=madlon-kay.com header.s=google header.b=dmdvxaQT; dmarc=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-Migadu-Queue-Id: E3E749402A9 X-Spam-Score: -2.50 X-Migadu-Scanner: scn1.migadu.com X-TUID: sRi+KNo24I4X > + (run-ruby-or-pop-to-buffer > + cmd (or session "ruby") > + (unless session > + (inf-ruby-buffer))) I have just run into an issue with this: If you don't specify :ruby then `cmd' for me is calculated by (cdr (assoc inf-ruby-default-implementation inf-ruby-implementations)) which gives the function `inf-ruby--irb-command' as a result. However `run-ruby-or-pop-to-buffer' expects to get a string only. I'm not sure if it should be org-mode's responsibility to resolve the actual command string, or if it should be done by `run-ruby-or-pop-to-buffer'. (It kind of seems like the latter?) Any thoughts? -Aaron