unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: John Owens <john_owens@yahoo.com>
Cc: emacs-devel@gnu.org
Subject: Re: filladapt mode stops filling after lengthy amount of emacs uptime
Date: Fri, 06 Apr 2007 14:18:56 -0400	[thread overview]
Message-ID: <jwv1wix1i96.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <loom.20070406T193330-437@post.gmane.org> (John Owens's message of "Fri\, 6 Apr 2007 17\:36\:59 +0000 \(UTC\)")

> A one-sentence explanation of what this does would be very
> useful for me (I can see having a local variable would be
> good, but how long does a local variable last, "local 
> variable" to me means "local for the lifetime of the function" -
> doesn't this function complete immediately after you call it?

C-h f make-local-variable RET explains that it doesn't make a function-local
variable (these are created with `let'), but a buffer-local one.
The buffer-local variable so-created will last until the buffer dies or
until kill-all-local-variables is called in this buffer (this is called by
major-mode functions as the first thing to do when setting up a major mode).


        Stefan

      reply	other threads:[~2007-04-06 18:18 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-22  5:22 filladapt mode stops filling after lengthy amount of emacs uptime John Owens
2007-03-22 14:49 ` Chong Yidong
2007-03-29  5:03   ` John Owens
2007-03-29 13:53     ` Stefan Monnier
2007-03-29 15:57       ` Chong Yidong
2007-03-29 17:13         ` John Owens
2007-03-29 17:35           ` Davis Herring
2007-03-29 17:45           ` Chong Yidong
2007-03-30  0:43           ` Stefan Monnier
2007-03-30 11:02             ` Andreas Schwab
2007-03-30 16:10               ` Stefan Monnier
2007-03-31 19:05                 ` Michael Olson
2007-03-29 14:21     ` Davis Herring
2007-03-29 18:00       ` Richard Stallman
2007-03-29 18:05         ` Davis Herring
2007-03-29 18:29           ` David Kastrup
2007-03-29 20:35             ` Davis Herring
2007-03-30 12:42           ` Richard Stallman
2007-03-29 18:16         ` John Owens
2007-03-22 22:50 ` Richard Stallman
2007-04-06 17:36 ` John Owens
2007-04-06 18:18   ` Stefan Monnier [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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwv1wix1i96.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=john_owens@yahoo.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).