From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 uGWuHw3CCGPRjgAAbAwnHQ (envelope-from ) for ; Fri, 26 Aug 2022 14:52:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OJOcHw3CCGNjRwEA9RJhRA (envelope-from ) for ; Fri, 26 Aug 2022 14:52:29 +0200 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 1CD7A2EE91 for ; Fri, 26 Aug 2022 14:52:29 +0200 (CEST) Received: from localhost ([::1]:42404 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRYp0-0006Sd-WB for larch@yhetil.org; Fri, 26 Aug 2022 08:52:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56382) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRYmu-0006Rh-KR for emacs-orgmode@gnu.org; Fri, 26 Aug 2022 08:50:19 -0400 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]:33462) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRYms-0006fR-65 for emacs-orgmode@gnu.org; Fri, 26 Aug 2022 08:50:15 -0400 Received: by mail-pg1-x529.google.com with SMTP id g189so1351492pgc.0 for ; Fri, 26 Aug 2022 05:50:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc; bh=pkJX+DVWmsE0njDBkrDCyo/GxFu6CWgrVCV4BmfC5O8=; b=etPTzN3V+2e3YVnUlWGOk+V0jKkxp5EXE13uRMdPSuu+I6y2mL2oRSc5ghchzhh+o9 WzdGsI+SGOsq99tRlvC89lksZj+Ins0Cua8vmpmWfChhCX7c7Czhb5zT2aKvzWRe5Spg Eg8g4SYatRuxYfwtVZSJgq8gAURjECI3O8cWQOOOHOeuIEGegnr8/9TYBYtyK1CyDvrT 1lk91iz521XsoeBcmzg+X41OEGFgtZXe0wv2eJV++kAz2LtUolftzbTE01UrH/6f3Xb1 tRSxFRNco9ZPmf8Lrn257ryCcxQJh2tm0H4uoLVSVLoS9Cuc0JDAPhFJRG+6rA9337WN J20Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc; bh=pkJX+DVWmsE0njDBkrDCyo/GxFu6CWgrVCV4BmfC5O8=; b=2OItiDpEadWaLeorwgVtN+bGa9E1A9pFRRGUFlzQcfYQ4QGvhBvnOGPKrNhPtOUqAQ Q6DsqYs1oy5TpG0mRFx0/X2wr5IwMDDNYKkKXm7SsYECezLaxJRGYSQa9pmNkhn5ZDO+ Uo56xDqvWGH3We5Tu4YWpgdz9hEabtFDWfwNeCJSAJoRrA1L8GcQEW+30660A6jwwvE4 emNmEtjKG0D3k2JYKFMPF0mymFuB+lt7J7NBaZRKAYBZ03y9jDhV8Cy9+weCChr/wfsg OHCUdMhbuH8HsRsOANv/TFCkxAi9hxbdDZG6Ivh4vVlSCeSQJ5iK1+4z/dAF3pJ205Fu pUJQ== X-Gm-Message-State: ACgBeo1oJ25Ic+FojYSos+0uXWNXqrBgszVgHuz2LsCXFDZKkVjhzqhP YfdBP8dWJ0Nwq9Bp3tJUa+g= X-Google-Smtp-Source: AA6agR4c80r2FMvd2YwUQFYzoJLiy6vRLITyCTo1XtQ7HaiPqBFnt+PqrURujmAu9MQi/h/EESeNBQ== X-Received: by 2002:a05:6a00:1501:b0:52f:2556:9b7f with SMTP id q1-20020a056a00150100b0052f25569b7fmr3649189pfu.27.1661518212432; Fri, 26 Aug 2022 05:50:12 -0700 (PDT) Received: from localhost ([2409:8a70:2b3:c8a0:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id m8-20020a17090a668800b001fb1ab15386sm1522638pjj.45.2022.08.26.05.50.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Aug 2022 05:50:11 -0700 (PDT) From: Ihor Radchenko To: Felix Freeman Cc: emacs-orgmode@gnu.org, kaushal.modi@gmail.com, nick@nicksavage.ca Subject: Re: [PATCH] babel output seems to drop anything before % (in session) In-Reply-To: <87pmj6wtc5.fsf@localhost> References: <87pmj6wtc5.fsf@localhost> Date: Fri, 26 Aug 2022 20:51:08 +0800 Message-ID: <87ilmfxj5v.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=yantar92@gmail.com; helo=mail-pg1-x529.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1661518349; 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=pkJX+DVWmsE0njDBkrDCyo/GxFu6CWgrVCV4BmfC5O8=; b=MajSPoynAtAdtl2/R9ofXU+tLmwlwoGk1oXYzhcYCxNHqF1LXunbYBFL1nHqRMr1sFoS4K 8bITl0MPjV5Qt+4cKNMM44muEwo4tAK4p1NS0ic2/uEklGjdZB4Qb9tcC9A+nxl4NW7zd4 F4BtuV+18zKHe9Pya90J7OhOFbJ6yfUVqhelebtj98UXNF0pEHfPmaIwCFRHryw+ow60or TMTV8Y66OvMjFu7b3Ju2G6zcmPApLfVSk5Vv75t/kdyDH4jCHtVsFSInmlamHKWxOj85SD ZTMM9r17t90CLKB2o4vts6a+XZVT734Glg12mEqJl6H8WQc3g0ApWHtLjEgkfg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661518349; a=rsa-sha256; cv=none; b=d3SgBJZaygmeolRhTfOrhjQe5wxNvXLy2g+skKb9np5DKZRgdoWtXk9sCy46KbIzR8O2yT YufO57i0/lNZZZQqza3RCSUDt8YqgAXIPiTRZX9QsT+PKrOYOpdntFx6bA+bqFghMduFvo uAsOlShDQFQQAkC4GAvWmn7VwyMH/n6N2VLFe+9t4HVKsi9ccwrf9k7OF/av3ZVwYJ2KPB bgjrRdWVDAeXRET/HD9ZBlPYBhMg1ffX78i/T7y2g+1qceLg4g5uoWfrfw1NYHyb/dEkHO 1q/xlw4GNpJC2k84AIDL8/JQ/2OFC223E8py1CFm15rgHi3N5cKZUIvjJ9gafg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=etPTzN3V; dmarc=pass (policy=none) header.from=gmail.com; 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: -7.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=etPTzN3V; dmarc=pass (policy=none) header.from=gmail.com; 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: 1CD7A2EE91 X-Spam-Score: -7.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: XWhNS64z9249 Ihor Radchenko writes: > I finally managed to get some working fix. > At least it kind of works on my system using bash. > The idea is changing shell prompt to something unique when we initialize > the session. > > See the attached patch. Fixed. Applied onto main via a35d16368. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=a35d163685908386833a3d549ed110931bf3915a I did not do anything with Daniele's patch because it requires FSF copyright. -- Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92