From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: Auto Fill Comments Date: Mon, 30 Nov 2020 23:26:01 +0100 Message-ID: <20201130222601.GA30426@tuxteam.de> References: <871rgd6jzk.fsf@web.de> <87r1oclvkp.fsf@web.de> <87blffzq7f.fsf@web.de> <87wny2r1a1.fsf@web.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nFreZHaLTZJo0R7j" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22200"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 30 23:26:45 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 1kjrd6-0005gG-Q7 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 30 Nov 2020 23:26:44 +0100 Original-Received: from localhost ([::1]:39956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjrd5-0000EI-Ma for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 30 Nov 2020 17:26:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjrcU-0000CR-Rj for help-gnu-emacs@gnu.org; Mon, 30 Nov 2020 17:26:06 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:43391) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1kjrcS-0007io-Ik for help-gnu-emacs@gnu.org; Mon, 30 Nov 2020 17:26:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=fXWufYI2ePluGca19qzWUaB+plauSrvBB6IwKAyIh54=; b=mfiiqokKsFCJM+DMrTW2y4dJrHAIy9fY2TSrkcOTe7yVXpL5c/0pMuPaRdW2hdzqH2fagFe2ckKQmyokawuiFWJBo/1nq4DgtyCp8ttl5oLKHXxCu1PtAplIuMoz44JKkMLmfiC0MT5MKLf4Z7773p6ZmPlfBuRlq1Ur6XzH29QeVqK6tOUR5vhIAwz0/t+JE7+sIQ/+anRxHQgrSyxmrIcAEbjhIxNfaYVY1XZCShD9jifs7VcKOsdwZgMDy5NZUY7bRbn94hf1htsEDMxI/oXGo5ob78lx0waxzE2EQoWU3k/xDs3I5s+Si47xm6bJOiwB+NXtsPH4se+1IbhgAA==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1kjrcP-0000xz-Sq for help-gnu-emacs@gnu.org; Mon, 30 Nov 2020 23:26:01 +0100 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de 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, SPF_HELO_NONE=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:125777 Archived-At: --nFreZHaLTZJo0R7j Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On Mon, Nov 30, 2020 at 11:14:59PM +0100, Christopher Dimech wrote: > I understand that local variables are meant for buffer customization that ^^^^^ > one uses most often in mode hooks. There has been some misunderstanding. You surely mean... "buffer-local" up there. > By not very good I meant: Can we have a typical example and how it would look like. > I mean, rather than with foo, bar, a, g, temp, body. For instance, making a command > for some particular mode buffer, and a brief description of what is achieved. Apologies > should I not understand how hard that can be. Hope my comment helps transmit what I mean > better. I just have a typical example in front of me right now. I have a small program written in Scheme. To make sure Emacs starts Scheme mode, the end of the file has: ;; Local Variables: ;; mode: scheme ;; End: This makes sure the variable `mode' is set to the value "scheme". But this has to happen buffer-locally, so only the buffer visiting that file is set to scheme major mode. Would that happen to all buffers, I might end up pretty confused. Does that make sense? Cheers - t --nFreZHaLTZJo0R7j Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAl/FcXkACgkQBcgs9XrR2kbAFACfcfWeQ0paM+ied6QhDZVSvyKz PVwAoIA1zTkchV0fXrJsUSyNDiheVAYQ =GUx2 -----END PGP SIGNATURE----- --nFreZHaLTZJo0R7j--