From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MBHyEjyKfGOuUwEAbAwnHQ (envelope-from ) for ; Tue, 22 Nov 2022 09:37:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uDHbEjyKfGOs/AAAauVa8A (envelope-from ) for ; Tue, 22 Nov 2022 09:37:16 +0100 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 0673622C3E for ; Tue, 22 Nov 2022 09:37:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxOla-00055U-Ux; Tue, 22 Nov 2022 03:36:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxOlZ-00055M-0N for emacs-orgmode@gnu.org; Tue, 22 Nov 2022 03:36:29 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxOlW-0004S7-DM for emacs-orgmode@gnu.org; Tue, 22 Nov 2022 03:36:28 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 3DB0C240027 for ; Tue, 22 Nov 2022 09:36:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1669106184; bh=FQis3+Lxe/eebrpuwmAote+RIdhIoo58w7U1NzV+zow=; h=From:To:Cc:Subject:Date:From; b=Q+7mUZ3neZhUOCggp68Ev1l5KPJixjGiQN3RKAO+zSJVc9jnnyv7e/6SHSKDnwC8G lgK1QW//tVJHurNuPq9l0F2i8uiKUJdFg+0TYO2RC5fxU1UGJJ7JSVad/xSNgAECxt ysJiBcPjhQ3a+LyLFT8uQAXNUzAu3wYG1M0cvHezHLCjTvh9izTabH4snLGbLuPknF 9S87Y6C3/K1/FotgBv3/yt1pci52Pifhvwxx7FOrp4+niuzqkuYgP+IJk1keAwympZ tyqly0YMvsA5f12Hv0BR21nZkiY88wYCEbOhdyIa/VUkNG15wstlU0b5IQyd6hzChD MvpzeoZdU4zcQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NGczp6hbJz6trD; Tue, 22 Nov 2022 09:36:22 +0100 (CET) From: Ihor Radchenko To: alain.cochard@unistra.fr Cc: Org Mode List Subject: [BUG] Make source block auto-completion work for all the loaded babel backends (was: 2 'echo' bash instructions produce a table) In-Reply-To: <25461.4423.734070.149776@gargle.gargle.HOWL> References: <25447.23346.575598.420558@gargle.gargle.HOWL> <87tu3ba40w.fsf@localhost> <25457.22124.839301.412560@gargle.gargle.HOWL> <87pmdqfao4.fsf@localhost> <25461.4423.734070.149776@gargle.gargle.HOWL> Date: Tue, 22 Nov 2022 08:37:04 +0000 Message-ID: <87r0xvidvz.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669106236; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=z4Y3681xUN2CRBvHF98eDd8F79yOUYB0P6/kXKxj+FA=; b=DdKjYsgpUPXW68tBRU7apHd3lgcP9ZIlBDopuDqIWAp7xZq1I9EcdEIhLxTpROEyTgKDZs Q5AQaNX43RTaS81bYuPFVpmYNxUB2/orlTpV5ZijD/IP+QnFdL3WlcNq9IFTZ1lG49ipSF 0IzYIRf+mOelvKfMwgD5KEgdVKypC5F5GJfrf1bkL9gaTsIgZKPeqzT/D29ZMEW7Elt6MQ roaLDrrXzWHKuCiHxV4PdRogTkQbo7cRWac7vv5SL8Fl/NpOz9Ml6+P8DjL8GqleDwj6Qq GogZqutLdBcc2d/RACizSg14pVchIlm1Lf+H1BBikPEE886ndA8Il83O3Q4U4A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669106236; a=rsa-sha256; cv=none; b=tth8v2PkDMmPMhSYT+/tMaudIPrqIOSx7nG/F9ZCA5f2AGwBvrbYbpUld+xUgbxrT5otig 41pd1lEo6v1HLRi4raTinT5yEUzYWeTbx2o+xqAjS0i1WwMUelwT1b5MAsL0pZqZ/W0bqw 6VwpdYtEpm97wJ90ub+clfsm7Pe4Z8su9LYHW160203st5tQ7XUU6XrrqZxcmiSwfmy011 P0M3p5zQhRUEF+hf8zDUEPg/tj7ku1ops5sjWTX64LmLqLwohPDNPconzZm7DiUMkxCg3r MDxzc3zlI6abXJvPsOAhbinnUt0Vm9zx3vti6JgaYshCdLAfiS5sq0yOx42mOw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Q+7mUZ3n; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.60 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Q+7mUZ3n; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 0673622C3E X-Spam-Score: -3.60 X-Migadu-Scanner: scn1.migadu.com X-TUID: WAk81pVY3H4p Alain.Cochard@unistra.fr writes: > PS 2: Reading the ob-doc-shell.html page, I understood (kind of) what > was so far a mystery to me : that a "#+begin_src bash" group works as > expected while "#+begin_src ba + C-M-i" fails to complete "ba" to > "bash": namely that all the shells fall inside the "shell" umbrella > keyword. Still, would not it make sense that the completion mechanism > also work for all those particular shells? It would indeed make sense. The current implementation of completion is somewhat awkward. It resides in lisp/org-pcomplete.el (pcomplete/org-mode/block-option/src) and relies on pre-defined known values in `org-babel-load-languages' (see :type keyword of the defcustom). Such design is not reliable. Ideally, we should examine the available function symbols org-babel-execute:* and derive the completions from there. Patches welcome! -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at