all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: charles@aurox.ch (Charles A. Roelli)
To: aaron peterson <metaxis@gmail.com>
Cc: 25057@debbugs.gnu.org
Subject: bug#25057: Ediff 2.81.5 of July 4, 2013; control panel frame location and focus broken
Date: Sat, 18 Feb 2017 18:06:26 +0100	[thread overview]
Message-ID: <m2lgt3mnsd.fsf@aurox.ch> (raw)
In-Reply-To: <CAMXy5=KnJHN1uzi_rO6VDbfpkjCm_j1rHmxmvp2j-3bW__+hAQ@mail.gmail.com> (aaron peterson's message of "Tue, 29 Nov 2016 15:08:41 -0800")

Ediff normally initializes its control frame to a location just outside
the viewable area of the monitor, then it brings the frame back into the
viewable area shortly afterwards.  With Emacs on OS X, though, it seems
that a frame that left the viewable area cannot return.

The following code slowly moves a frame across the width of the monitor
until it's a little past the viewable edge, then brings it back.

(let ((display-width (display-pixel-width))
      (dx            200)
      (frame-x       1))
  (setq frame-test (make-frame
		    `((top . 1) (left . ,frame-x))))
  (sleep-for 0.5)
  ;; 1. Move it until it's off-screen.
  (while (< frame-x display-width)
    (setq frame-x (+ frame-x dx))
    (modify-frame-parameters frame-test
			     `((left . ,frame-x)))
    (sleep-for 0.5))
  (sleep-for 1)
  ;; 2. Bring it back.
  (while (> frame-x dx)
    (setq frame-x (- frame-x dx))
    (modify-frame-parameters frame-test
			     `((left . ,frame-x)))
    (sleep-for 0.5))
  (sleep-for 1)
  (delete-frame frame-test))

On GNU/Linux, the frame comes back as expected.  But on OS X 10.6 the
frame does not return to the viewable area (step 2).  Maybe there is a
bug in the frame handling code for the NS port.





  parent reply	other threads:[~2017-02-18 17:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-29  7:46 bug#25057: Ediff 2.81.5 of July 4, 2013; control panel frame location and focus broken aaron peterson
2016-11-29 18:03 ` Eli Zaretskii
2016-11-29 22:41   ` Michael Kifer
2016-11-29 23:08     ` aaron peterson
2017-02-16 19:03       ` Charles A. Roelli
2017-02-18 17:06       ` Charles A. Roelli [this message]
2017-08-22 15:47         ` Charles A. Roelli

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=m2lgt3mnsd.fsf@aurox.ch \
    --to=charles@aurox.ch \
    --cc=25057@debbugs.gnu.org \
    --cc=metaxis@gmail.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 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.