From: "Drew Adams" <drew.adams@oracle.com>
To: "'York Zhao'" <gtdplatform@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: How to add property for a buffer object
Date: Wed, 12 Sep 2012 08:58:11 -0700 [thread overview]
Message-ID: <C36C591161B640C59BE71DBB1D81D191@us.oracle.com> (raw)
In-Reply-To: <CAD3zm23pfqjStMO1gaV9ZKUCu-x8E4g-YuJHKvsxOG_2ghA2pQ@mail.gmail.com>
> 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).
next prev parent reply other threads:[~2012-09-12 15:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-12 15:30 How to add property for a buffer object York Zhao
2012-09-12 15:58 ` Drew Adams [this message]
2012-09-12 16:36 ` York Zhao
2012-09-12 17:10 ` Drew Adams
2012-09-12 18:49 ` York Zhao
2012-09-12 20:55 ` Drew Adams
2012-09-13 1:43 ` York Zhao
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=C36C591161B640C59BE71DBB1D81D191@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=gtdplatform@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.