From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: outline-regexp) using ";; *+ " for elisp code Date: Tue, 11 May 2021 10:32:24 +0200 Message-ID: References: <87o8dhpx5a.fsf@fastmail.fm> <87lf8lptle.fsf@fastmail.fm> 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="6745"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Joost Kremers Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 11 11:07:50 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 1lgOMn-0001g2-W0 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 11:07:50 +0200 Original-Received: from localhost ([::1]:46496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgOMn-0002BL-16 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 05:07:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgNod-0006JN-Ce for help-gnu-emacs@gnu.org; Tue, 11 May 2021 04:32:31 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:53363) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgNob-00038c-8n for help-gnu-emacs@gnu.org; Tue, 11 May 2021 04:32:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1620721945; bh=VftbgWHt3RcIxJcYbVeFkZab+1Ny+Y18oNgvk7haKS8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=LCJkDVsNTHu8W/rytBEc2Ag0O5ciHLeeyRbUvQ77Tp+54i3pETKmRQojV+iZb0eJa UTyDxkJh+IO8OIlcyMiZ0/wfJZ50LKTY+t3u7AdDl7NvSnyxwXUakoVmAM2hUauiFt jC0mGhnHSAK6Xsj32zCVZXSi10UDlWJW0a5F1b4I= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs03.server.lan [172.19.170.169]) (via HTTP); Tue, 11 May 2021 10:32:24 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <87lf8lptle.fsf@fastmail.fm> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:ajUYPMT8xpJVIJ2yRZNBqY5Xh+pr8pIUOA3Jae5xbX9eepf6DxmDTE7RVyitVhU+ZLSrm oCNIdngqD0Btyj3Gkig6nkIMNsnq/4cIE1+T7DBXb/soweVWv08AU2vffkboJw3o30Udb5JA3IE+ cWh37C98rMddTJnTgZaddqRvQT2tAKAJ/QAb8EYDE4cbep9o71W6LDkgaCNAOj+9mEfABJxweLsH aD+5PHXfEaL9NpQ3EftY3kTxDfoEbqAR6XhTcAW3MSCoc5oSen566iXtphB3AWU0cKYY2KscJcKT DM= X-UI-Out-Filterresults: notjunk:1;V03:K0:iYBQnLSULIw=:zLrhOALWWlphiZp5tdFOTq IEj1BPCBpyl/zmK4KRRO79dS1h6FgiFtDWBgXqgoeWVwbJijGIiKj6Lh9dJ5YG8YlKTkf5FzA ad05Wx2PNafNIzaeFm4LLGovt7fIByY5QR50cpmammCSz4bGJbHJI/HiS1KpBPr5lYztk4SxD 0i2p58rZDEKP+ZjmczEol23SR1JxjJ4GaKDGssAawQHjYJBgxmNKW4bDXIIJ8/RYd+qfcEuPc 8M0YvDr+mZxBKSNwJunKi0aNWapufx49vYeFjgvEAU79hvlCdcj9K1sfGJf4NZwaKVTWdBoWg CrCTTHijS2jhhcmYv6NsKMWWx1wTGOmo93KjF/bFrvUQoyLH4U7bps2iftSGQxeJl8JLYcLKu byZhOkpdMWpqzCM7hQ8AXU7cntIr3avhpGGtWYZyBTMNNFaJxslwLyu1JHpshsjHHWasYorg1 Sb3qJ4BveuAvWwFPzjTKW3Z7iX1nB2bzmq0ERiuTFyjiDTI4gmGNo9eDBObg17rnD4rPeHmTU a5DxfcdmTOGGVC45DxTD0ULpLASITTAuEgtToVO8UQ4eF8mF8T4xJQ/VePWyOVYiLMKK84vFT HMj9dCvn0R9eCp/nV42LEdEccwldnDVHryOS0N7Xb8TN9tQu6iMf0/b02GBsHt+2WPZM+HQkm VX2iidomvR04+NEfH1BxHhS21HXWrd3m0LjKXosm0wg8qrdwFCIv/dyflr+r7jqFMMG8OYNxH g76oJEGV6nALPWnSZf+2VDDkkXZANnnmQw/yb3gLAqh3sWlihrJHPeMiHlvYinp/WwXq99Ny Received-SPF: pass client-ip=212.227.15.15; envelope-from=dimech@gmx.com; helo=mout.gmx.net 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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:129688 Archived-At: You are right, setq-local does not take effect. How does defvar solve the= problem? (setq-local rgc ";;; \\*+ ") (add-hook 'emacs-lisp-mode-hook (lambda () (set (make-local-variable 'outline-regexp) rgc))) > Sent: Tuesday, May 11, 2021 at 8:19 PM > From: "Joost Kremers" > To: "Christopher Dimech" > Cc: help-gnu-emacs@gnu.org > Subject: Re: outline-regexp) using ";; *+ " for elisp code > > > On Tue, May 11 2021, Christopher Dimech wrote: > > Any reason why using rgc does not work, whereas things are good when I= use > > the string directly in the call "make-local-variable"? > > > > (setq-local rgc ";;; \\*+ ") > > Where is this call? =3Dsetq-local=3D sets the variable's value in the bu= ffer in > which it is executed. If this call is in your init file, it's not going = to have > any effect on your Emacs session. > > In your init file, you'll want =3Ddefvar=3D or =3Ddefvar-local=3D. (Note= , the =3Dlocal=3D part > here does not have the same meaning as the =3Dlocal=3D part in =3Dsetq-l= ocal=3D. See the > doc strings for details.) > > -- > Joost Kremers > Life has its moments >