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

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

RE: How to add property for a buffer object


From: Drew Adams
Subject: RE: How to add property for a buffer object
Date: Wed, 12 Sep 2012 08:58:11 -0700

> is there any way to "get" and "put" property on a buffer?

You can use `get' and `put' on the symbol that is the value of variable
`major-mode'.

Or you can simply make some variable buffer-local for a given mode.

> Or, is there any other solution to have one function toggle
> either `longlines-mode' or 'refill-mode'?

Test something specific to the buffer or its mode (see above).
Or just use a prefix arg (and test that).




reply via email to

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