From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: RE: RE: Auto Fill Comments Date: Fri, 27 Nov 2020 09:21:53 +0300 Message-ID: References: <20201126160013.GD28931@tuxteam.de> <20201126182734.GA5175@tuxteam.de> <54331aa0-6a9a-4809-9f2d-88deee31558b@default> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13851"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0 (3d08634) (2020-11-07) Cc: help-gnu-emacs@gnu.org To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 27 07:23:25 2020 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 1kiXAC-0003VX-Oj for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 07:23:24 +0100 Original-Received: from localhost ([::1]:46132 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiXAB-0008NP-R9 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 01:23:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39424) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiX9n-0008LV-Qg for help-gnu-emacs@gnu.org; Fri, 27 Nov 2020 01:22:59 -0500 Original-Received: from static.rcdrun.com ([95.85.24.50]:43101) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiX9l-0003ol-VD for help-gnu-emacs@gnu.org; Fri, 27 Nov 2020 01:22:59 -0500 Original-Received: from localhost ([::ffff:41.202.241.56]) (AUTH: PLAIN admin, TLS: TLS1.2,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by static.rcdrun.com with ESMTPSA id 00000000002C0003.000000005FC09B3F.000050B7; Fri, 27 Nov 2020 06:22:54 +0000 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=95.85.24.50; envelope-from=bugs@gnu.support; helo=static.rcdrun.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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham 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:125627 Archived-At: * Christopher Dimech [2020-11-27 09:08]: > Started with Emacs Lisp Manual , then Emacs Lisp Intro. > But when I got the buffer-local for the sake of auto-fill, > I was finished, Kaput. > > Anyway, we don't want to rant forever. I have never used buffer local variables. Recently, developers of `emacs-libpq' dynamic module for direct access to PostgreSQL mentioned using buffer local variables to keep note of a variable holding the database handle. That would probably mean it would be opening multiple TCP connections to the database per each buffer using such handles. As I am working with the database being displayed in Emacs I will soon need to start creating different buffers for different displays of the database backed reports. And I wonder if I will need to use buffer local variables for that or I will just need to make buffers by new names that they reuse the database handle. Probably this way. But what about using multiple buffers where one has per buffer marked items or filtering options. Then such should probably become buffer local or otherwise such variables global over buffers would influence display in various buffers.