* Overlays category - could this be made buffer local?
@ 2008-01-17 21:52 Lennart Borgman (gmail)
2008-01-17 22:07 ` Miles Bader
0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman (gmail) @ 2008-01-17 21:52 UTC (permalink / raw)
To: Emacs Devel
From Info
-- Function: overlay-get overlay prop
This function returns the value of property PROP recorded in
OVERLAY, if any. If OVERLAY does not record any value for that
property, but it does have a `category' property which is a
symbol, that symbol's PROP property is used. Otherwise, the value
is `nil'.
If 'category where allowed to be a symbol then buffer local values could
be set.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Overlays category - could this be made buffer local?
2008-01-17 21:52 Overlays category - could this be made buffer local? Lennart Borgman (gmail)
@ 2008-01-17 22:07 ` Miles Bader
2008-01-17 22:12 ` Lennart Borgman (gmail)
0 siblings, 1 reply; 3+ messages in thread
From: Miles Bader @ 2008-01-17 22:07 UTC (permalink / raw)
To: Lennart Borgman (gmail); +Cc: Emacs Devel
"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
> If OVERLAY does not record any value for that
> property, but it does have a `category' property which is a
> symbol, that symbol's PROP property is used. Otherwise, the value
> is `nil'.
>
> If 'category where allowed to be a symbol then buffer local values could
> be set.
`category' is already a symbol. I presume you're saying, "if the user
were able to specify a custom forwarding symbol to use instead of
`category', then ..."
I'm not sure it's a good idea though, as in many cases overlay lookups
are implicit, so there's no easy/clean way to specify what symbol to use
(instead of `category').
-Miles
--
"Suppose He doesn't give a shit? Suppose there is a God but He
just doesn't give a shit?" [George Carlin]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Overlays category - could this be made buffer local?
2008-01-17 22:07 ` Miles Bader
@ 2008-01-17 22:12 ` Lennart Borgman (gmail)
0 siblings, 0 replies; 3+ messages in thread
From: Lennart Borgman (gmail) @ 2008-01-17 22:12 UTC (permalink / raw)
To: Miles Bader; +Cc: Emacs Devel
Miles Bader wrote:
> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
>> If OVERLAY does not record any value for that
>> property, but it does have a `category' property which is a
>> symbol, that symbol's PROP property is used. Otherwise, the value
>> is `nil'.
>>
>> If 'category where allowed to be a symbol then buffer local values could
>> be set.
>
> `category' is already a symbol. I presume you're saying, "if the user
> were able to specify a custom forwarding symbol to use instead of
> `category', then ..."
Sorry, I meant "to be a variable containing a symbol". Would that be any
problem?
> I'm not sure it's a good idea though, as in many cases overlay lookups
> are implicit, so there's no easy/clean way to specify what symbol to use
> (instead of `category').
>
> -Miles
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-01-17 22:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-17 21:52 Overlays category - could this be made buffer local? Lennart Borgman (gmail)
2008-01-17 22:07 ` Miles Bader
2008-01-17 22:12 ` Lennart Borgman (gmail)
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).