help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cycle Auto-Fill


From: Robert Thorpe
Subject: Re: Cycle Auto-Fill
Date: Sun, 06 Dec 2020 05:23:01 +0000

Christopher Dimech <dimech@gmx.com> writes:

> I have now started to understand buffer local quite well.  It has been
> occurring to me that most things really got to be buffer local.

It can be useful to think it terms of object-orientated languages.

An Emacs mode is a lot like a class.  A particular Emacs buffer is an
instance of that class.  A buffer-local variable is a conventional
object field (also called an instance variable in some languages).  A
non-buffer-local variable is a class variable.  A variable created by
"let" is a conventional local variable, of course.

Emacs is a bit different to conventional OO languages because the
decision about what-is-what are determined at runtime.  It's done by
calling functions, not compile at time through typing and language
features.

BR,
Robert Thorpe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]