unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Daniel Koning <dk@danielkoning.com>
Cc: 6130@debbugs.gnu.org, busk <busk@lysator.liu.se>
Subject: bug#6130: 23.1; artist-mode spray-can malfunction
Date: Sun, 18 Jan 2015 10:57:09 +0100	[thread overview]
Message-ID: <54BB8375.9000506@gmx.at> (raw)
In-Reply-To: <m2h9voljwu.fsf@danielkoning.com>

 > I've put in a request. I'll write back when I've received and returned
 > the form.

Thanks.  It usually takes some time and it might be a good idea to
complain after a few weeks in order to speed things up.

 >> `posnp' also looks strange in this regard.
 >>
 >
 > It does indeed, and I added a line to check for frames.

No - this might be dangerous for now.  Suppose we have callers that
relied on `posnp' to return nil in that case.  They would all of sudden
have to deal with the fact that they get a frame now, so more or less we
could reintroduce the problem you try to fix presently.  Please take
this out for the moment but state in the doc-string that `posnp' returns
nil if the first element of OBJ is a frame.  Later on we can change this
as you did and see what happens.

 > That said, I don't *think* it's ever possible in practice to change the
 > selected frame in the middle of a drag event through user interaction
 > alone -- either implicitly or by a keypress bound to `other-frame'. I'm
 > basing this on having just tried it in several window systems on both OS
 > X and BSD, including with focus-follows-mouse behavior enabled (and with
 > the corresponding Emacs variable turned on). I was only able to test it
 > by means of an event-reading loop which programmatically called
 > `other-frame' after every down-mouse event.

Fine.  I suppose it would defeat the purpose of mouse dragging if the
selected frame could ever change in between but wanted to make sure.
Here I was not able to produce a frame select event either.

 > Come to think of it, this is wrong either way, because the implication
 > of "the frame with input focus" is the frame with input focus at the
 > time of evaluation, whereas the position list reflects the state at the
 > time it was generated.
 >
 > How about: "If @var{position} represents a location outside the frame
 > where the event was initiated, [...]"

Good.

 >> (frame-selected-window frame)
 >>
 >> sounds more accurate, given what I said about the selected frame above.
 >
 > I haven't changed these lines except for taking them out of a
 > now-superfluous let*, but I agree that they look wrong. (Technically
 > `window' is either the window from the position list or nil. If it is
 > nil, though, `window-buffer' does return the buffer of the selected
 > window. The calculation should be made w/r/t the selected window of the
 > position list's frame, so I'll make that change.)

OK.  Given your observations above it should not matter.

 >>> diff --git a/lisp/textmodes/artist.el b/lisp/textmodes/artist.el
 >>
 >> I didn't look into these but just trust your experience here.
 >
 > This one looks like a major change because of all the diffed lines, but
 > that's just due to adding an extra layer of indentation. The only
 > semantic change is wrapping the `track-mouse' form in an `unwind-protect'.

Ahh.  I didn't notice.  In that case we could commit your patch as a
tiny change.

 > Here's the revised patch.

Looks good.  Please fix the `posnp' thingy I mentioned above, add some
ChangeLog entries and resend the patch as an attachment. If there are no
objections I'll commit it then to the emacs-24 branch.

Thanks, martin





  reply	other threads:[~2015-01-18  9:57 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-07 12:17 bug#6130: 23.1; artist-mode spray-can malfunction busk
2015-01-17  5:25 ` Daniel Koning
2015-01-17 13:56   ` martin rudalics
2015-01-18  5:47     ` Daniel Koning
2015-01-18  9:57       ` martin rudalics [this message]
2015-01-21  0:26         ` Daniel Koning
2015-01-21  8:22           ` martin rudalics
2015-01-21 15:22           ` Stefan Monnier
2015-01-21 16:54             ` martin rudalics
2015-01-22 17:02               ` Stefan Monnier
2015-01-22 18:23                 ` martin rudalics
2015-01-22 23:08                   ` Stefan Monnier
2015-01-23  8:26                     ` martin rudalics
2015-01-23  9:43                       ` Eli Zaretskii
2015-01-23 16:54                         ` martin rudalics
2015-01-23 21:05                           ` Stefan Monnier
2015-01-23 21:26                             ` Eli Zaretskii
2015-01-23 21:52                               ` Daniel Koning
2015-01-24  8:12                                 ` Eli Zaretskii
2015-01-24  9:08                                   ` martin rudalics
2015-01-24  9:49                                     ` Eli Zaretskii
2016-04-06  9:17 ` Johan Busk Eriksson

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54BB8375.9000506@gmx.at \
    --to=rudalics@gmx.at \
    --cc=6130@debbugs.gnu.org \
    --cc=busk@lysator.liu.se \
    --cc=dk@danielkoning.com \
    /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 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).