all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Julien Danjou <julien@danjou.info>
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: [PATCH 1/2] Add frame-pointer-visible-p
Date: Mon, 18 Oct 2010 06:54:22 -0400	[thread overview]
Message-ID: <E1P7nME-0001eI-B8@fencepost.gnu.org> (raw)
In-Reply-To: <sa3eibn7sp9.fsf@cigue.easter-eggs.fr> (message from Julien Danjou on Mon, 18 Oct 2010 11:31:30 +0200)

> From: Julien Danjou <julien@danjou.info>
> Date: Mon, 18 Oct 2010 11:31:30 +0200
> Cc: emacs-devel@gnu.org
> 
> Stefan, thanks a lot for the review. That's my first C patch for Emacs,
> so I'm glad to see your comments and learn!

A few more below.

> > One more thing: while I see that the C code currently stores the
> > visibility in the frame data-structure, I'm not completely sure if this
> > data is truly frame-specific as opposed to terminal-specific.
> > Can someone confirm this issue?
> 
> In theory, since you can have more pointers nowadays, it should/can be
> frame specific. Not sure it's really the case in Emacs, since Emacs
> probably does not support multi-pointer right now (but I don't know for
> sure).

Isn't it possible to have the pointer invisible in one frame, then
switch to another where the pointer is visible, even if there's only
one pointer?

Anyway, as all mouse-specific variables are maintained per frame, I
don't think we should hold this one on a per-terminal basis.

> +@defun frame-pointer-visible-p &opt frame
                                  ^^^^
"&optional"

> +This function return the current visibility status of the mouse
                 ^^^^^^
"returns".  But it is better to rephrase along the lines suggested by
Andreas:

 This predicate function returns non-@code{nil} if the mouse pointer
 displayed on @var{frame} is visible; otherwise it returns
 @code{nil}.  @var{frame} omitted or @code{nil} means the selected
 frame.  This is useful when ...


> +pointer in @var{frame}. This is useful when
> +@code{make-pointer-invisible} is set to @code{t}: it allows to know if

It is a good idea to have here a cross-reference to where
make-pointer-invisible is described (in the Emacs User Manual).

> --- a/src/ChangeLog
> +++ b/src/ChangeLog
> @@ -27,6 +27,11 @@
>  	* font.c (Ffont_variation_glyphs):
>  	* ccl.c (Fccl_execute_on_string): Fix typo in docstring.
>  
> +2010-10-14  Julien Danjou  <julien@danjou.info>
> +
> +	* frame.c (Fframe_pointer_visible_p): Add
> +	`frame-pointer-visible-p' to get the pointer visibility.
> +

Your entry should be at the top of the file.



  parent reply	other threads:[~2010-10-18 10:54 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-14 14:52 Export pointer visibility Julien Danjou
2010-10-14 14:52 ` [PATCH 1/2] Add frame-pointer-visible-p Julien Danjou
2010-10-17 19:11   ` Stefan Monnier
2010-10-18  9:31     ` Julien Danjou
2010-10-18  9:53       ` Andreas Schwab
2010-10-18 10:05         ` Lennart Borgman
2010-10-18 10:31         ` Eli Zaretskii
2010-10-18 10:54       ` Eli Zaretskii [this message]
2010-10-18 12:12         ` Julien Danjou
2010-10-18 13:05           ` Eli Zaretskii
2010-10-18 21:08           ` Stefan Monnier
2010-10-14 14:52 ` [PATCH 2/2] avoid: ignore mouse when it is hidden Julien Danjou
2010-10-18 14:42   ` Stefan Monnier
2010-10-18 14:47     ` Julien Danjou
2010-10-18 21:10   ` Stefan Monnier

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=E1P7nME-0001eI-B8@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=julien@danjou.info \
    --cc=monnier@iro.umontreal.ca \
    /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.