all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* window-dedicated-p's "window's dedicated object"
@ 2007-05-25  9:06 Juanma Barranquero
  2007-05-25 14:51 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Juanma Barranquero @ 2007-05-25  9:06 UTC (permalink / raw)
  To: Emacs-Devel

The Emacs Lisp Reference implies that the second argument for
`set-window-dedicated-p' (and the return value for
`window-dedicated-p') is just a flag. There's no indication that the
value you pass to set the window's dedication state is the one you'll
get back when you ask the window's state.

However, the implementation allows indeed to pass any value as window
dedication flag, and getting it back with window-dedicated-p. The
docstring for that function goes as far as calling the return value
"window's dedicated object".

I don't know what's so special about (set-)window-dedicated-p to merit
this behavior; (set-)buffer-modified-p, for example, treat their
argument as a simple flag:

  (progn
     (set-buffer-modified-p 'my-value)
     (buffer-modified-p))

 => t

and AFAICS, the special status of the dedication flag is used nowhere
in the sources (ffap.el prudently saves and restores it, but it does
not use the fact that it could be anything).

Anyway, I'm not proposing changing it, but if it is supported and
useful behavior (it is?), it should be more clearly stated in the
docstring and the Emacs Lisp Reference, I think.

             Juanma

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: window-dedicated-p's "window's dedicated object"
  2007-05-25  9:06 window-dedicated-p's "window's dedicated object" Juanma Barranquero
@ 2007-05-25 14:51 ` Stefan Monnier
  2007-05-25 17:14   ` Juanma Barranquero
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2007-05-25 14:51 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: Emacs-Devel

> Anyway, I'm not proposing changing it, but if it is supported and
> useful behavior (it is?), it should be more clearly stated in the
> docstring and the Emacs Lisp Reference, I think.

I made this change because I use it.  And I hope to install changes in the
future which make use of it (by providing different levels of dedication).


        Stefan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: window-dedicated-p's "window's dedicated object"
  2007-05-25 14:51 ` Stefan Monnier
@ 2007-05-25 17:14   ` Juanma Barranquero
  0 siblings, 0 replies; 3+ messages in thread
From: Juanma Barranquero @ 2007-05-25 17:14 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Emacs-Devel

On 5/25/07, Stefan Monnier <monnier@iro.umontreal.ca> wrote:

> I made this change because I use it.  And I hope to install changes in the
> future which make use of it (by providing different levels of dedication).

Cool.

Thanks for clearing this up,

             Juanma

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-05-25 17:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-25  9:06 window-dedicated-p's "window's dedicated object" Juanma Barranquero
2007-05-25 14:51 ` Stefan Monnier
2007-05-25 17:14   ` Juanma Barranquero

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.