From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 8Dz5LhPOXGWO1AAAG6o9tA:P1 (envelope-from ) for ; Tue, 21 Nov 2023 16:34:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 8Dz5LhPOXGWO1AAAG6o9tA (envelope-from ) for ; Tue, 21 Nov 2023 16:34:43 +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 6C8F95B905 for ; Tue, 21 Nov 2023 16:34:43 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=JF4wgtbH; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700580883; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=46QVPHfk60m3KEVUJGMX9Zd4ECS1rg9DtcvTSiQMo+Q=; b=djVRUDRZDVIF3W69ufIcI413jZOJGl3KKwjPD/RtJHgxY+ztz/2XE++ogaMN0hBfPAXX7t Ny6n8cNrWoQrsSbKR32mr8R87/vyKlu2qqpVAwxQYMUHdcGvhksQazdXvEpkXlae85N3Uu bQLf6R2N5cDccEByOloDHkN4xtuKZobSHpmqbppbSgypoFkG+dGdFk6+KI6L7vqlOBX/oW QQpq5WYi4T8K7bPBZHdoBWhDQjqIBx7DlpbEe4eQqRA8A/6rdufNXEcctIZKkFYKPUrmBg qQDIeaSrOn5CJd8RWc/hikDDVMdjZDED64+C7Y6lqbhVxvB6Cy7BWdKX6iQ3rg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=JF4wgtbH; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1700580883; a=rsa-sha256; cv=none; b=Aa4nu2NF1+TY14lsmbSBaCyrifbUU3nZkAnPSAEc1XAA3mtUyegi/heUvSZ/azHTrNC6cq 13zz0qUS3a3MCZ6pgnTDTPVQZYBekIP+HIHKjmqgz16PF7/n3zDk8vHdbyNhoHotm/kk3n R8pjk6A6YHALjVPLDztH7u305HUdBqZA26kQTmSlwD8tRQ5zDocuXZgTTTF4DbH9qZHtQE HlbfeROUPQZoh+bd3vYokbiIaLxUyFetVzp6GSvzpvLjhufgys5cCefQMPZkPWcLgJu0qQ 4QdEE+thBJY/qxVIzPyHuJP20dvXqC3n54d9mDe8ItFC7HnC2lQe4g2PHD+UMQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r5Sl4-00021I-6i; Tue, 21 Nov 2023 10:33:50 -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 1r5Sl1-00020l-D9 for emacs-orgmode@gnu.org; Tue, 21 Nov 2023 10:33:47 -0500 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r5Skz-0004w7-Kb for emacs-orgmode@gnu.org; Tue, 21 Nov 2023 10:33:47 -0500 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-40839652b97so24313185e9.3 for ; Tue, 21 Nov 2023 07:33:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700580823; x=1701185623; darn=gnu.org; h=mime-version:date:references:in-reply-to:subject:to:from:message-id :from:to:cc:subject:date:message-id:reply-to; bh=46QVPHfk60m3KEVUJGMX9Zd4ECS1rg9DtcvTSiQMo+Q=; b=JF4wgtbHhZeugxxncTiUMqahLvjK00HVUhaeoxk2wjlJxgO5duXMX5JjhYMAL8qs7S 1AdY3tbwhet2LaIeVrm0uWl8vSzUnmWk9aDGSQbYMUU1MuqZF+WzW+iimG4lVqvA9C9H NXf/6RUdC6onhcFJ6ypDblvoN6cQs13AvVHK76dHz/AjlW76VHmlCTihyJ3ChB4KKbgj T46SqbA3kmHA0+oUndnEUcTif2CbfQxcnGkagpv8q98xrn7nX4goGy2Y8tQKJTwwJp1k zHdu/cZg7NIHqlO5qe0LNJLsiGbixaAXXoFEWbARinXtuXQ/SJSA7Hd8g7U1ab5T0Eil 8wrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700580823; x=1701185623; h=mime-version:date:references:in-reply-to:subject:to:from:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=46QVPHfk60m3KEVUJGMX9Zd4ECS1rg9DtcvTSiQMo+Q=; b=q0d/Tas5kRF4yXaTqPNJVjQjsd9rAOSj1RvYbof3iT+mIYtNdRTbi8rpL2mHTEP6V4 ov4V09j6SIUct2Mu72mqWSj4WA5XehL4EokSE1Dbo3jjS56dsSWBpuxoUcS9yY9Y0W+J 4S2sPwLlF3Il0WZGowhXDwsNLm+ikqqYthk6HiUDTH4UXVp+4odMT6zREXkyqW43lD3d Z1jt+en6NWX3+hLvbQ66WZsjUDoACF5Jc+byJ+Sy+v5gChirm8QnyRlljJAkpQ1ZCjyV ZAjFU7nVDdijDz2ZO6Jpko7hokon9d1YgSZ8sdMN4T+K5MCq7IX4Kit9QkjC4Puk+2HF Qt/w== X-Gm-Message-State: AOJu0YxRhRV5sTrQFcDYZNUYBZPZSh7llRGEAsQX9CXmzhD3jEnVJBvC ndsrif4P18N1ircJYRkqQNI= X-Google-Smtp-Source: AGHT+IFMwPTFMwAzRkc5+JY3n6ZRw9rp1S5a31hOGuMASDdw8CL/iAbAYrRxMvtWEgQ848o2fg/WnA== X-Received: by 2002:a05:600c:4ecb:b0:40a:4c7e:6f37 with SMTP id g11-20020a05600c4ecb00b0040a4c7e6f37mr9533578wmq.20.1700580823025; Tue, 21 Nov 2023 07:33:43 -0800 (PST) Received: from keynux ([2a01:e0a:505:3460:1c18:688d:ece4:372e]) by smtp.gmail.com with ESMTPSA id a15-20020adfed0f000000b003140f47224csm14540348wro.15.2023.11.21.07.33.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 07:33:42 -0800 (PST) Message-ID: <655ccdd6.df0a0220.225ee.2aa8@mx.google.com> Received: by keynux (sSMTP sendmail emulation); Tue, 21 Nov 2023 16:33:41 +0100 From: Bruno Barbier To: Max Nikulin , emacs-orgmode@gnu.org Subject: Re: Non-emacs shell (Re: bash source code block: problem after ssh commands) In-Reply-To: References: <25912.63830.726070.953843@gargle.gargle.HOWL> <25914.26693.101108.954656@gargle.gargle.HOWL> <87fs1xbis1.fsf@localhost> <25916.238.191509.652552@gargle.gargle.HOWL> <653f8a93.050a0220.f2202.5816@mx.google.com> <87zfzr2ejj.fsf@localhost> <18ba5e231e3.f989cde147196.3154436412643995109@excalamus.com> <875y2e2b9y.fsf@localhost> <18bb07473e2.1007b1565819307.6938164403009000496@excalamus.com> <877cmr2ke4.fsf@localhost> <18bb5337346.dfcd5ebb1139895.801408740607633332@excalamus.com> <18bd3d38ff3.115b786cb2560022.7704006411630399228@excalamus.com> <87fs169h7f.fsf@localhost> <18bd984270d.1048050a22954105.2819987720224062869@excalamus.com> <25942.29051.701153.391260@gargle.gargle.HOWL> <18bd9ea2f7b.b77346232985684.5614027527324280790@excalamus.com> <871qcod9ad.fsf@localhost> <25943.14504.245343.443507@gargle.gargle.HOWL> <87sf54bs61.fsf@localhost> <65578b29.050a0220.8941c.b420@mx.google.com> Date: Tue, 21 Nov 2023 16:33:41 +0100 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=brubar.cs@gmail.com; helo=mail-wm1-x32b.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, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.13 X-Spam-Score: -8.13 X-Migadu-Queue-Id: 6C8F95B905 X-Migadu-Scanner: mx13.migadu.com X-TUID: sib7N8cs9gK5 Hi Max, Max Nikulin writes: > On 17/11/2023 22:47, Bruno Barbier wrote: >> FWIW, M-x shell differs from what a plain terminal is doing (xterm, in >> my case), but, I do prefer 'M-x shell' behavior: it allows me to copy >> multiple lines, getting the same results as when I type them manually, >> or copy them line by line. My xterm doesn't seem to allow me to do that. > > I am unsure what do you expect from xterm, but perhaps it is not > responsibility of a terminal application. It has been said in this thread that 'M-x shell' should be fixed to match the behavior that we see in a plain terminal, when we copy multiple lines. I just wanted to point out that I do prefer the way 'M-x shell' handles the copy of multiple lines. > Multiple lines can be copied to regular BASH prompt (bracketed paste is > enabled by default nowadays), however it may be inconvenient to edit. > You may use edit-and-execute-command (C-x C-e) (BASH, not Emacs key > binding) to start an editor and to paste multiple commands there. > See also "fc" BASH built-in for editing and re-executing last commands. Thanks Max! I didn't know that. I should definitely start using this when I'm stuck in a console, to safely copy/edit my commands using Emacs. Thanks, Bruno