From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Itaj Sherman Newsgroups: gmane.emacs.bugs Subject: bug#35635: Ediff 2.81.5 of July 4, 2013; The ediff-registry buffer doesn't set focus to frame when viewing an open session. Date: Wed, 8 May 2019 17:06:40 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e0a0e0058860d9c1" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="39643"; mail-complaints-to="usenet@blaine.gmane.org" To: kifer@cs.stonybrook.edu, 35635@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 08 16:29:20 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hONZP-000ACR-Vv for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 May 2019 16:29:20 +0200 Original-Received: from localhost ([127.0.0.1]:38157 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hONZO-00045H-SE for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 May 2019 10:29:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hONZA-00043O-5O for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 10:29:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hONZ8-0002ln-KL for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 10:29:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48397) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hONZ8-0002lY-2l for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 10:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hONZ7-0006PR-Sx for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 10:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Itaj Sherman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 May 2019 14:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35635 X-GNU-PR-Package: emacs X-Debbugs-Original-To: kifer@cs.stonybrook.edu, bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.155732570224560 (code B ref -1); Wed, 08 May 2019 14:29:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 May 2019 14:28:22 +0000 Original-Received: from localhost ([127.0.0.1]:33706 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hONYT-0006O3-Mi for submit@debbugs.gnu.org; Wed, 08 May 2019 10:28:22 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33168) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hONEK-0005mc-O8 for submit@debbugs.gnu.org; Wed, 08 May 2019 10:07:34 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50192) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hONED-0005Fa-Q3 for submit@debbugs.gnu.org; Wed, 08 May 2019 10:07:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hONEB-0002qr-UD for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 10:07:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hONEA-0005Df-1j for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 10:07:23 -0400 Original-Received: from mail-it1-x147.google.com ([2607:f8b0:4864:20::147]:56421) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hONE8-0005BO-Ea for bug-gnu-emacs@gnu.org; Wed, 08 May 2019 10:07:21 -0400 Original-Received: by mail-it1-x147.google.com with SMTP id g63so2257017ita.6 for ; Wed, 08 May 2019 07:07:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elastifile-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=/f6cL/AYwBDbQLEfi3Bfb0NwYGtmnT4iobCegSP2Ki8=; b=DTevMRVSFyfN8bjLrPvj5lVKOf8xGzvwkzFU4FT4fadsdyMYYuXqPYPBrIJ1mwCtOa bmVOWuA92AXL8kV+LH7n+11QYvDzUvVWYDJxLj7xRp6MXV9PTtBrbu/S4/EhUx8HYLcD sZBgB2NJuw/wlHlCkVfTtvZXI/h/V9zkqxEwc9E/UM0nBCUh86jMb+sVjr39zMXy0/AO T8JtbpabmjsaZDfP0sqYATGH8PxLv0CcvZ3SWi2/8wM4uqofDQUzVJEheK7EmyvMGGjl vDP4QLUhlUGew/2aiiBFsAb8Xw9ZoO+YpFwblKuDstEWizy4mUxENv+3voprbHbYFzTE dg4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=/f6cL/AYwBDbQLEfi3Bfb0NwYGtmnT4iobCegSP2Ki8=; b=QzxilWHJwjJ05FlCWkIVYuAeul9avZzBID5Eefme/ANGu1BZgzVEGA2Ho/Ja1zXPvk OaRQxUtDShkxBfJ9ba5ECdg5rjeJ1pmIAL8HbSjyeEM/KZDu6mDlz59UD/7GCWw2RHyq D8yTsdeqRnLLgkFzevuibZV7C5F2RYDVSvwqYZ+pYfRzAfp5tp6uvrA4vP1V7o86lHXy SSIhWvW3SFHcX13/W3xyTJgZlRtdXs6exoBQp59CwO9tXEOmCnXiCYYctn/dEG67H2bl MJ7f0Xht5mIACUS0lQefgiUcyAWaLa3jp1x71C8PWqh5VfYNSM2qH78q8WHbhY97Icuy ykSA== X-Gm-Message-State: APjAAAVXwZ4+5TCJC+km8WU/0ymYXF77FTiEXQnE/F7y/WsI9hgzxLED Dir9AUHnbpm8is/dunpSV8bVIxI3XbnGudnGc2c+OQ== X-Google-Smtp-Source: APXvYqxhHnz86fxnljLfE4IR7gro+nHv/V+Y8ujTbVJhsbbYAJjTdIoHHhzijRBdAPVRQEMlnW7VYDdMYPytRXH2wNM= X-Received: by 2002:a02:a10d:: with SMTP id f13mr28252596jag.23.1557324437160; Wed, 08 May 2019 07:07:17 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Wed, 08 May 2019 10:28:20 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:158946 Archived-At: --000000000000e0a0e0058860d9c1 Content-Type: text/plain; charset="UTF-8" Congratulations! You may have unearthed a bug in Ediff! Please make a concise and accurate summary of what happened and mail it to the address above. ----------------------------------------------------------- 1) Open several ediff-files3 sessions (whether on single frame or multiple). Say sessions 1, 2, 3 ... 2) focus the control panel of a diff session-1 3) click 'R' to show registry. A new frame is opened with registry buffer, raised and focused. 4) select session-1. Click 'RET' to show the session. The frame with this session will be raised **but not be focused**. 6) focus this frame's contron panel and click 'R' to go back to registry. The registry frame will be raised **but not focused**. 7) focus registy and select session-2. Click 'RET'. session-2 frame is raised and focused. 8) click 'R' back to registry The registry frame will be raised **but not focused**. 9) focus registy and select session-2. Click 'RET'. session-2 frame is raised **but not focused**. Generally another frame you ask to see is raised - but is only focused the first time it is opened - on later requests it will be raised but not focused. My conf: (customize-set-variable 'ediff-split-window-function 'split-window-horizontally) (customize-set-variable 'ediff-window-setup-function 'ediff-setup-windows-plain) (setq itaj-ediff-face-noncurrent '((t (:background "#404010")))) (setq itaj-ediff-face-current '((t (:background "#006000")))) (setq itaj-ediff-face-fine '((t (:background "#903030")))) (custom-set-faces `(ediff-fine-diff-A ,itaj-ediff-face-fine)) (custom-set-faces `(ediff-fine-diff-B ,itaj-ediff-face-fine)) (custom-set-faces `(ediff-fine-diff-C ,itaj-ediff-face-fine)) (custom-set-faces `(ediff-current-diff-A ,itaj-ediff-face-current)) (custom-set-faces `(ediff-current-diff-B ,itaj-ediff-face-current)) (custom-set-faces `(ediff-current-diff-C ,itaj-ediff-face-current)) (custom-set-faces `(ediff-even-diff-A ,itaj-ediff-face-noncurrent)) (custom-set-faces `(ediff-even-diff-B ,itaj-ediff-face-noncurrent)) (custom-set-faces `(ediff-even-diff-C ,itaj-ediff-face-noncurrent)) (custom-set-faces `(ediff-odd-diff-A ,itaj-ediff-face-noncurrent)) (custom-set-faces `(ediff-odd-diff-B ,itaj-ediff-face-noncurrent)) (custom-set-faces `(ediff-odd-diff-C ,itaj-ediff-face-noncurrent)) (defun disable-y-or-n-p (orig-fun &rest args) (cl-letf (((symbol-function 'y-or-n-p) (lambda (prompt) t))) (apply orig-fun args))) (advice-add 'ediff-quit :around #'disable-y-or-n-p) Emacs : GNU Emacs 25.2.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2017-09-22, modified by Debian Package: Ediff 2.81.5 of July 4, 2013 current state: ============== (setq ediff-diff-program "diff" ediff-diff-options "" ediff-diff3-program "diff3" ediff-diff3-options "" ediff-shell "sh" ediff-use-faces t ediff-auto-refine 'on ediff-highlighting-style 'face ediff-buffer-A #> ediff-buffer-B #> ediff-control-buffer #*> ediff-forward-word-function 'ediff-forward-word ediff-control-frame nil ediff-control-frame-parameters '((name . "Ediff") (minibuffer) (user-position . t) (vertical-scroll-bars) (scrollbar-width . 0) (scrollbar-height . 0) (menu-bar-lines . 0) (tool-bar-lines . 0) (left-fringe . 0) (right-fringe . 0) (auto-lower) (auto-raise . t) (visibility) (width . 1) (height . 1) (top . 1081) (left . 1921)) ediff-control-frame-position-function 'ediff-make-frame-position ediff-prefer-iconified-control-frame nil ediff-window-setup-function 'ediff-setup-windows-plain ediff-split-window-function 'split-window-horizontally ediff-job-name 'ediff-files3 ediff-word-mode nil buffer-name "*Ediff Control Panel<5>*" ediff-device-type 'x ) --000000000000e0a0e0058860d9c1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Congratulations!=C2= =A0 You may have unearthed a bug in Ediff!

Please = make a concise and accurate summary of what happened
and mail it = to the address above.
-------------------------------------------= ----------------

1) Open several ediff-files3 sess= ions (whether on single frame or
multiple). Say sessions 1, 2, 3 = ...
2) focus the control panel of a diff session-1
3) c= lick 'R' to show registry. A new frame is opened with registry
buffer, raised and focused.
4) select session-1. Click '= ;RET' to show the session.
The frame with this session will b= e raised **but not be focused**.
6) focus this frame's contro= n panel and click 'R' to go back to
registry.
T= he registry frame will be raised **but not focused**.
7) focus re= gisty and select session-2. Click 'RET'.
session-2 frame = is raised and focused.
8) click 'R' back to registry
The registry frame will be raised **but not focused**.
9) f= ocus registy and select session-2. Click 'RET'.
session-2= frame is raised **but not focused**.

Generally an= other frame you ask to see is raised - but is only focused
the fi= rst time it is opened - on later requests it will be raised but
n= ot focused.


My conf:

=
(customize-set-variable 'ediff-split-window-function 'sp= lit-window-horizontally)
(customize-set-variable 'ediff-windo= w-setup-function 'ediff-setup-windows-plain)

(= setq itaj-ediff-face-noncurrent '((t (:background "#404010"))= ))
(setq itaj-ediff-face-current '((t (:background "#006= 000"))))
(setq itaj-ediff-face-fine '((t (:background &q= uot;#903030"))))
(custom-set-faces `(ediff-fine-diff-A ,itaj= -ediff-face-fine))
(custom-set-faces `(ediff-fine-diff-B ,itaj-ed= iff-face-fine))
(custom-set-faces `(ediff-fine-diff-C ,itaj-ediff= -face-fine))
(custom-set-faces `(ediff-current-diff-A ,itaj-ediff= -face-current))
(custom-set-faces `(ediff-current-diff-B ,itaj-ed= iff-face-current))
(custom-set-faces `(ediff-current-diff-C ,itaj= -ediff-face-current))
(custom-set-faces `(ediff-even-diff-A ,itaj= -ediff-face-noncurrent))
(custom-set-faces `(ediff-even-diff-B ,i= taj-ediff-face-noncurrent))
(custom-set-faces `(ediff-even-diff-C= ,itaj-ediff-face-noncurrent))
(custom-set-faces `(ediff-odd-diff= -A ,itaj-ediff-face-noncurrent))
(custom-set-faces `(ediff-odd-di= ff-B ,itaj-ediff-face-noncurrent))
(custom-set-faces `(ediff-odd-= diff-C ,itaj-ediff-face-noncurrent))


(defun disable-y-or-n-p (orig-fun &rest args)
=C2=A0 (cl-le= tf (((symbol-function 'y-or-n-p) (lambda (prompt) t)))
=C2=A0= =C2=A0 (apply orig-fun args)))

(advice-add 'e= diff-quit :around #'disable-y-or-n-p)



Emacs=C2=A0 : GNU Emacs 25.2.1 (x86_64-pc-linux-gnu, = X toolkit, Xaw3d scroll bars)
=C2=A0of 2017-09-22, modified by De= bian
Package: Ediff 2.81.5 of July 4, 2013

current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
(setq
=C2=A0ediff-diff-program "diff"
= =C2=A0ediff-diff-options ""
=C2=A0ediff-diff3-program &= quot;diff3"
=C2=A0ediff-diff3-options ""
=C2=A0ediff-shell "sh"
=C2=A0ediff-use-faces t
=C2=A0ediff-auto-refine 'on
=C2=A0ediff-highlighting-style= 'face
=C2=A0ediff-buffer-A #<buffer test_npal_locks_out_o= f_resources.c<t0>>
=C2=A0ediff-buffer-B #<buffer test= _npal_locks_out_of_resources.c<w>>
=C2=A0ediff-control-b= uffer #<buffer *Ediff Control Panel<5>*>
=C2=A0ediff-= forward-word-function 'ediff-forward-word
=C2=A0ediff-control= -frame nil
=C2=A0ediff-control-frame-parameters '((name . &qu= ot;Ediff") (minibuffer) (user-position . t) (vertical-scroll-bars)
=C2=A0 (scrollbar-width .= 0) (scrollbar-height . 0) (menu-bar-lines . 0)
=C2=A0 (tool-bar-lines . 0) (left-fringe . 0) (ri= ght-fringe . 0) (auto-lower)
= =C2=A0 (auto-raise . t) (visibility) (width . 1) (height . 1) (top .= 1081)
=C2=A0 (left . = 1921))
=C2=A0ediff-control-frame-position-function 'ediff-mak= e-frame-position
=C2=A0ediff-prefer-iconified-control-frame nil
=C2=A0ediff-window-setup-function 'ediff-setup-windows-plain
=C2=A0ediff-split-window-function 'split-window-horizontally
=C2=A0ediff-job-name 'ediff-files3
=C2=A0ediff-word-= mode nil
=C2=A0buffer-name "*Ediff Control Panel<5>*&q= uot;
=C2=A0ediff-device-type 'x
=C2=A0)
<= br>
--000000000000e0a0e0058860d9c1--