From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thibaut Verron Newsgroups: gmane.emacs.help Subject: Re: always local shell? Date: Sun, 24 Apr 2022 19:21:34 +0200 Message-ID: References: <87wnffl3l0.fsf@zoho.eu> <87mtgbl16p.fsf@zoho.eu> Reply-To: thibaut.verron@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14920"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 24 19:22:18 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nifwA-0003fI-MM for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 24 Apr 2022 19:22:18 +0200 Original-Received: from localhost ([::1]:47318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nifw9-0005FL-CW for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 24 Apr 2022 13:22:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nifvg-0005Ey-7Z for help-gnu-emacs@gnu.org; Sun, 24 Apr 2022 13:21:48 -0400 Original-Received: from mail-io1-xd2f.google.com ([2607:f8b0:4864:20::d2f]:36490) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nifvd-0005gu-WF for help-gnu-emacs@gnu.org; Sun, 24 Apr 2022 13:21:47 -0400 Original-Received: by mail-io1-xd2f.google.com with SMTP id y85so13622374iof.3 for ; Sun, 24 Apr 2022 10:21:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to; bh=mFsjF6nVdx0NXcHuN3zlZeV+dPd/AujQcwi5UJ+09HQ=; b=a7QFo/YndpQYBceVR/VeVOmFO3pS+ZOTee5PDpornD48gTUbdYS2Z9gCg1KUPMBadX HqzvuU+FZAolQZMc7z7cxFMZT9m3KrBSDbxQkqnRDf7sqLLl3fmderr5Hnk7krDfHncM XV7d5zZSpmQixph6p0xvWVD28xhzG6bYKYJf5gMyQ2GQfOEZyRzchjy6RwEPyXGpVPa5 +w0AntXFTIrq3d1plLcg9ZwySGKu9M/Y2E7NCInUVFcqVsvFTUTscrvAJh7ibRiA3GKr XQtS1qVEJq4QO5vrsBcWDDp5avgCNdpgwOqiDXFEtdy7+jkeMmPyg3wdV5sGMjz3VWKp bQ3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to; bh=mFsjF6nVdx0NXcHuN3zlZeV+dPd/AujQcwi5UJ+09HQ=; b=gEhQwPRZNSgSexkZ9A8Oyq+sbXuR6FpObWm94C1axwfRwTeBR+6bMNxABHydcAJVvL b5nNiLatG5FA3/x6/6rqCbUYXDcCgnMMB8UFQYe2edcaqlvZbdBggd5kqX+dmkHZyH3R PVv1Xn0Gs2WJMC5CZsfkUehIDOZ4no99JWVCaYDLEcIJ8rNDknJkgoZ8pV9Y6c+5YLQh m5lK/b11AQSRCJ7nBA8/aVr7tYUA8lYp3U7owl7AAYZs+P4e8vomsoOE680sUp3gfeMt U8kh1Na35gs8WEKWDBlaCDuE9jboFHaW5F+OziPwPKqBZY+THEIwO7VWtf5+N806X6qr S/pA== X-Gm-Message-State: AOAM531T0UZQneCGNPF81Dq29Z9I4mk51+bysnQANHLKquSRuvDxSK7c d6Cte794I5vkdLJSHrF3dS+opGRq8/eyB/hawZ4= X-Google-Smtp-Source: ABdhPJxy7WGFFloYv/8z6RObRFg6EXZA5wVYLODuHudBe6XG4fT5lI+/mCn4kOujnRer12NlkA2EzjbXYlGPUYXns7Y= X-Received: by 2002:a05:6638:38a6:b0:32a:8462:c151 with SMTP id b38-20020a05663838a600b0032a8462c151mr5893883jav.7.1650820904485; Sun, 24 Apr 2022 10:21:44 -0700 (PDT) In-Reply-To: <87mtgbl16p.fsf@zoho.eu> Received-SPF: pass client-ip=2607:f8b0:4864:20::d2f; envelope-from=thibaut.verron@gmail.com; helo=mail-io1-xd2f.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, HTML_MESSAGE=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-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:137015 Archived-At: Isn't that essentially the same thing as (with-current-buffer "*Messages*" (shell)) ? I think something like (let (default-directory user-emacs-directory) (shell)) should also work. Le dim. 24 avr. 2022 =C3=A0 18:55, Emanuel Berg via Users list for the GNU = Emacs text editor a =C3=A9crit : > > stay tuned for the O(1) solution ... > > (defun shell-local-2 () > (interactive) > (let ((buf (get-buffer "*Messages*"))) > (when (bufferp buf) > (set-buffer buf) > (shell) ))) > (defalias 'sh #'shell-local-2) > > ? > > PS. Why don't you stop delaying my messages? > > -- > underground experts united > https://dataswamp.org/~incal > > >