From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: special-mode buffer changes to fundamental when modified Date: Thu, 27 Oct 2016 18:59:22 +0200 Message-ID: <87r371budx.fsf@web.de> References: <87wph3n4d7.fsf@jupiter.lan> <87twc79gsa.fsf@web.de> <87eg3bhtcm.fsf@jupiter.lan> <87wph2j7e3.fsf@web.de> <877f911bnm.fsf@jupiter.lan> <87lgxfl2bf.fsf@web.de> <87lgxfusra.fsf@jupiter.lan> <87bmybkp7u.fsf@web.de> <877f8zui5g.fsf@jupiter.lan> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1477587937 24554 195.159.176.226 (27 Oct 2016 17:05:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Oct 2016 17:05:37 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Stefan Huchler Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 27 19:05:29 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzo74-0002mX-5l for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Oct 2016 19:05:10 +0200 Original-Received: from localhost ([::1]:43046 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzo76-00066u-FG for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Oct 2016 13:05:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzo1c-0002HD-Ui for help-gnu-emacs@gnu.org; Thu, 27 Oct 2016 12:59:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzo1Z-0005FC-Tj for help-gnu-emacs@gnu.org; Thu, 27 Oct 2016 12:59:33 -0400 Original-Received: from mout.web.de ([212.227.17.11]:56352) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bzo1Z-0005Ds-LH for help-gnu-emacs@gnu.org; Thu, 27 Oct 2016 12:59:29 -0400 Original-Received: from drachen.dragon ([90.186.0.190]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0LjJH1-1ccB6o1yAx-00dYAT; Thu, 27 Oct 2016 18:59:26 +0200 In-Reply-To: <877f8zui5g.fsf@jupiter.lan> (Stefan Huchler's message of "Sun, 23 Oct 2016 18:47:23 +0200") X-Provags-ID: V03:K0:LSQLPHGm9ANHBx/Yn2N5EYbkr0WsT+fnGAxvS38jWMxSwtd3N5B oVp+KaqIK8eVUS2iWBh0NJ+mBtawLtTxVP+Kn09IbgcCd9qYRq8+1jctSyhv39NAX+eo1dl dSK4joVj/m2smU+UmeJS+FpWaH6BfIycmn5Bg9Pljy65PUDZQPbwIHBMWzDWJuDY5xbjCt4 KfNzvzovV3pM34gA0oROQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:1WWhJiGL5jM=:HuRDbmU+DqRy2l37HRkic4 JU6aOQVgLTZEIXnGnqrZCKgkDu73bntG7LX9jgmj1pwwIlhU0GycOpOu0H/H8Rw8S5mKQ2b1t Bjy3ww/JgmPUUMsQAvgArxDzCn/xKYxnD5mD74EpgHJzHrL2wuqsTWOxI6QDC5AxXKyNz8hB9 gcmVHcs8NkchEoTXOAxfqna5Tm6LQDxoR6dpOehISR5C7g8ion6RYBdTSUDM+PJtQIMjHKVFG +pXF0g0PBR2UtPj1x4EJ1j4qmjLZs4azWwEHi9+m/Lmup1VsSDk7o6yM6IREOHFbyTYLJ9RZP GV5vs7cEbhkjL4yRHlfQv2N0Wwh5bru9h6JWlDr3XcxV8FMtUMuVSBLzkM0KNuw+FwQwtm5GZ aR7iFogPEiXhHJ76PEiW6+5/p6R2yhYhot2ER4sIpvHoUIeno89cyS+jva7wnV19kjnNXVlk3 9UB1lYlmBMZsjECoSArKQCmd7ip9/ySPnFyF97DkjNt0bmN0Ehn23FXPK7o3bUe31JlenmELL VRMqEPHXEv1Ayi0Zgb1VLTj1L56Vno4BMCJCMf5Z9iPXf5EwadCmLRDDwF1TBAVD1nbLrPxES Sj/TDnxjKC5T7Pdqtk+KAacB70fTIH31sTHKg3K8XpgRjtGW6Z+nbAy3C6Ppej5Xoc7iptQwM 2WP8C+wOPhxYNkd7FHSaO3yX/DdilS8POkbx6b52UWLOCaCadmZZ9klS/OhRGfqo19BWKSoaI PeoxEbciKbBomwpaFnpHNvE5Qnjhhmj1M9OIj9hNsJhEU8t71+2GNXCteO2BeXMlUqZ035yM X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.11 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111622 Archived-At: Stefan Huchler writes: > Yes thats exactly what I want. so I thought let is to define new > temporary varibbales, but in this case you use that to set a value > temporary? so it goes back to its default nil? > > thats neat. so basicly you overwrite the buffer wide variable with a > let-scope wide, and after it it falls back to the buffer-wide? Yes, you can say so. Variables defined with `defvar' are always dynamical, and you can `let'-bind them to steer how functions behave or what they return, even when the variable does not appear in your code textually. > Still some more example code especialy for special mode would help, > pointing to other modes as example can be problematic, especialy for > elisp noobs that are not so good in understanding the code. Writing and maintaining documentation is very work intensive, not every question is covered. The things you do are not so noob... and the elisp source code of Emacs is an excellent source of nice real-life examples. No doubt, there is a lot to learn, but maybe more help text would not even be better than learning to read the sources, use the debugger etc as early as possible, even if this is harder at the beginning. Regards, Michael.