all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: Stefan Huchler <stefan.huchler@mail.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: special-mode buffer changes to fundamental when modified
Date: Thu, 27 Oct 2016 18:59:22 +0200	[thread overview]
Message-ID: <87r371budx.fsf@web.de> (raw)
In-Reply-To: <877f8zui5g.fsf@jupiter.lan> (Stefan Huchler's message of "Sun, 23 Oct 2016 18:47:23 +0200")

Stefan Huchler <stefan.huchler@mail.de> 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.



      reply	other threads:[~2016-10-27 16:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-20  2:25 special-mode buffer changes to fundamental when modified Stefan Huchler
2016-10-20 15:33 ` Michael Heerdegen
2016-10-20 16:34   ` Stefan Huchler
2016-10-21 10:58     ` Michael Heerdegen
2016-10-22  0:15       ` Stefan Huchler
2016-10-23 11:41         ` Michael Heerdegen
2016-10-23 12:58           ` Stefan Huchler
2016-10-23 16:24             ` Michael Heerdegen
2016-10-23 16:47               ` Stefan Huchler
2016-10-27 16:59                 ` Michael Heerdegen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r371budx.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=stefan.huchler@mail.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.