From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Auto Fill Comments Date: Thu, 26 Nov 2020 13:51:43 -0800 (PST) Message-ID: <54331aa0-6a9a-4809-9f2d-88deee31558b@default> References: <87pn419aha.fsf@robertthorpeconsulting.com> <20201126160013.GD28931@tuxteam.de> <20201126182734.GA5175@tuxteam.de> 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="14668"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Christopher Dimech , tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 26 22:52:51 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 1kiPC6-0003ex-HC for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 22:52:50 +0100 Original-Received: from localhost ([::1]:33130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiPC5-0003n6-DK for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 26 Nov 2020 16:52:49 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiPBD-0003lv-O8 for help-gnu-emacs@gnu.org; Thu, 26 Nov 2020 16:51:55 -0500 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:52838) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiPBB-0006Kn-HZ for help-gnu-emacs@gnu.org; Thu, 26 Nov 2020 16:51:55 -0500 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0AQLigIB091863; Thu, 26 Nov 2020 21:51:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=8y4O7dS4Mv472gcDS4aPJtfqeyt25cXogs6TuYUc58U=; b=bAqtCvIhKQvmV1KnQBU7w+Ih47VpqqqETUY8122HigSSqe6ekoc7pFSE0/JTyPDzBAug Zzq+I3nGVtlwt9PKs8LrzDAVVb8Kt+Co71i3VhHHNJC+TK3fy0Slqd6Wg0ulvYXZws3U X0MUAEsxNyinhceSlsXV1vtKok1PUxYSzZUkLegZ3Jg6Zhb0GPWIDXxOpwFc72dZyvRT rymP4LdLVyvhJtTTMUspxcSBIujc9MOM3tt5S56/MsrxeEhQ8CTb4mDoMU9UajF4cfEx JfQbPgfwvkqJI9h9IM2E/SJbSe1Hjwqts7ZT29XXytVn9IreJfI/GgSk2Jmmehh9cgfW yA== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2130.oracle.com with ESMTP id 351kwhf9be-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 26 Nov 2020 21:51:48 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0AQLp30W152829; Thu, 26 Nov 2020 21:51:47 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3030.oracle.com with ESMTP id 351kwgee0j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 26 Nov 2020 21:51:47 +0000 Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 0AQLpimN015619; Thu, 26 Nov 2020 21:51:44 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5071.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9817 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 spamscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 suspectscore=0 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011260138 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9817 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxscore=0 impostorscore=0 suspectscore=0 adultscore=0 bulkscore=0 phishscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1031 priorityscore=1501 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011260137 Received-SPF: pass client-ip=141.146.126.79; envelope-from=drew.adams@oracle.com; helo=aserp2130.oracle.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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:125594 Archived-At: > Had thought that setq was actually a global > thing, not local. For local variables I was > using "let" and "let*", but that seems a > wrong understanding. Please read the manual, node `Variables', as Tomas advised. But don't just skim it. And read its (5) subnodes. https://www.gnu.org/software/emacs/manual/html_node/emacs/Variables.html As seems to be the case with many of your questions, this is all explained clearly in the Emacs doc. There are local variables and ... local variables. Variables bound by `let', `lambda', and named functions (formal parameters) are typically local in more or less the usual programming sense. [But if such a variable is in fact defined as "special", or global if you prefer, then a `let' binding of it is "local" to the _duration_ of the `let' - the binding is _temporary_. E.g., (defvar foo 42) followed by (let ((foo 24)) ...) may (depending on the context) bind global variable `foo' temporarily to 24.] Buffer-local and file-local variables are something else altogether. They are global variables that have a value that is specific to - local in scope to - the current buffer or file. Some variables have a buffer-local value in some buffers but only a global value in other buffers (no buffer-local value there). Other variables are always only buffer-local. But again, don't listen to my explanation. Consult the doc instead. It's more exact, more complete, and better presented (clearer). And when you've read what the Emacs manual has to tell you about variables, consider reading what the Elisp manual has to say about variables. There too, start with its node `Variables', and move on to its (17!) subnodes. https://www.gnu.org/software/emacs/manual/html_node/elisp/Variables.html You don't do yourself any favors, or encourage help in forums such as this, by not trying to make use of the doc. The doc is the result of years of effort and collaboration, taking into account tons of feedback by users of all sorts. You're not special - try benefitting from the efforts of those who've gone before. THEN, if you have a question, please do ask it. HTH.