From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Re: Visiting buffers programmatically Date: Thu, 10 Jun 2021 16:32:09 -0800 Message-ID: <1ed903e6-490a-6e18-3a74-9e08ae11c31c@akwebsoft.com> References: <5fc2e0a6-470e-0ebc-fe81-9eea2dd7fa5f@akwebsoft.com> <87k0n1nuvu.fsf@riseup.net> <2fbb0066-120a-6f06-b2d3-659846bcf923@akwebsoft.com> <87eed9ntaw.fsf@riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28223"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 11 02:32:42 2021 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 1lrV6I-0007CZ-1h for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 11 Jun 2021 02:32:42 +0200 Original-Received: from localhost ([::1]:52520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrV6H-0000ul-3T for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 10 Jun 2021 20:32:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrV5q-0000ud-RL for help-gnu-emacs@gnu.org; Thu, 10 Jun 2021 20:32:14 -0400 Original-Received: from gateway33.websitewelcome.com ([192.185.145.87]:12493) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrV5p-0007be-0t for help-gnu-emacs@gnu.org; Thu, 10 Jun 2021 20:32:14 -0400 Original-Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway33.websitewelcome.com (Postfix) with ESMTP id C18CE46B3E for ; Thu, 10 Jun 2021 19:32:11 -0500 (CDT) Original-Received: from host2075.hostmonster.com ([67.20.113.97]) by cmsmtp with SMTP id rV5nlKlxv8ElSrV5nla9QA; Thu, 10 Jun 2021 19:32:11 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tj49.com; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version: Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=b9yUrNvNZOOpQ8wP8YpAVIUU222OENpqNYdHWA4Ns3s=; b=TFggHqKsSvf5gBKNrxpmN9Yp4z IkA6C3e5S7wmhJEYaACV8CCRS26K2aOx0xN1JR1obQeozmbNjUuNOHSY5u9JYSD7Pm8au5VNWJddr oXkaJRht65O5WimrIT+Z3zRx6; Original-Received: from tjohnson.mtaonline.net ([64.4.232.191]:59304 helo=[192.168.1.2]) by host2075.hostmonster.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1lrV5n-000uvo-4b for help-gnu-emacs@gnu.org; Thu, 10 Jun 2021 18:32:11 -0600 In-Reply-To: <87eed9ntaw.fsf@riseup.net> Content-Language: en-US X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2075.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - akwebsoft.com X-BWhitelist: no X-Source-IP: 64.4.232.191 X-Source-L: No X-Exim-ID: 1lrV5n-000uvo-4b X-Source-Sender: tjohnson.mtaonline.net ([192.168.1.2]) [64.4.232.191]:59304 X-Source-Auth: tim@tj49.com X-Email-Count: 2 X-Source-Cap: bW9sZG92YXM7bW9sZG92YXM7aG9zdDIwNzUuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes Received-SPF: neutral client-ip=192.185.145.87; envelope-from=tim@akwebsoft.com; helo=gateway33.websitewelcome.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_NEUTRAL=0.779 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:130737 Archived-At: On 6/10/21 4:17 PM, pillule wrote: > Tim Johnson writes: > >> On 6/10/21 3:31 PM, pillule wrote: >>> Tim Johnson writes: >>> >>>> GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) >>>>  of 2021-06-04 ubuntu 20.04 >>>> >>>> I would like to write three simple elisp routines that would each visit one of: >>>> *scratch*, *messages* and *shell* >>> Do you need to see the window displaying the buffer ? >> Yes. I would need to see the window that displays the buffer. >> If I grok you correctly, batch processing would mean that a whole list of buffers >> would be processed and displayed. > No. what I call batch processing is exactly when you do not display things and programmatically do all your tasks. > Understood. I stand corrected. :) >> No, I would not need to do that. >> >> It sounds like switch-to-buffer would work fine? > Yes. 'switch-to-buffer' should display the buffer in the selected window (except unordinary cases). > Thanks again. I am good to go. -- Tim tj49.com