Bug 537531 - xemacs ediff revert region and page-down does not work
Summary: xemacs ediff revert region and page-down does not work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: xemacs-packages-extra
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jerry James
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-14 04:46 UTC by Tim Taiwanese Liim
Modified: 2009-12-10 04:18 UTC (History)
1 user (show)

Fixed In Version: 20090217-7.fc12
Clone Of:
Environment:
Last Closed: 2009-12-10 04:16:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tim Taiwanese Liim 2009-11-14 04:46:32 UTC
Description of problem:
    In xemacs ediff, after a change is copied from buffer B to buffer
    A, 'ra' should revert the change in buffer A.  Instead, I got
    this error
        Nothing saved for diff 1 in buffer nil 
    in mini-buffer line, and the region is not restored.

    Also in diff, ctrl-V should scroll both buffers A,B down a page.
    But in my F11 it scrolls *up* instead of *down*.

Version-Release number of selected component (if applicable):
    xemacs-packages-extra-20090217-4.fc11.noarch

How reproducible:
    always

Steps to Reproduce:
    1. run xemacs, either GUI mode or text mode
    2. M-X ediff-buffers, and select two buffers that are
       different in only a few lines.
    3. 'n' in ediff control panel.
    4. ctrl-V to scroll down both buffers A,B a page.
    5. 'b' to bring the changes from buffer B to buffer A.
    6. 'ra' to revert the change in buffer A.
  
Actual results:
    In step 4, buffers A,B should scroll *up*.
    In step 6, buffer A did not revert its content; got error msg
        Nothing saved for diff 1 in buffer nil

Expected results:
    In step 4, buffers A,B should scroll *down*.
    In step 6, buffer A should revert its content.


Additional info:

Comment 1 Jerry James 2009-11-16 20:35:48 UTC
I can reproduce this.  I have asked the ediff maintainer for ideas on what might be wrong.  Stand by...

Comment 2 Tim Taiwanese Liim 2009-11-17 02:51:39 UTC
Jerry,
Thanks for quick action!

Comment 3 Fedora Update System 2009-12-01 20:24:03 UTC
xemacs-packages-extra-20090217-6.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/xemacs-packages-extra-20090217-6.fc12

Comment 4 Fedora Update System 2009-12-01 20:24:08 UTC
xemacs-packages-extra-20090217-5.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/xemacs-packages-extra-20090217-5.fc11

Comment 5 Fedora Update System 2009-12-03 05:06:34 UTC
xemacs-packages-extra-20090217-5.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update xemacs-packages-extra'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-12567

Comment 6 Fedora Update System 2009-12-03 05:12:43 UTC
xemacs-packages-extra-20090217-6.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update xemacs-packages-extra'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12596

Comment 7 Tim Taiwanese Liim 2009-12-03 16:58:32 UTC
Jeff,
Thanks!  I tried 
    xemacs-packages-extra-20090217-5.fc11.noarch
and it did fix the original issues:
    1. ctrl-V scrolls down both buffers now.
    2. revert works now 

But now Alt-V also scrolls both buffers down (should be up).
Could you check if this is the case for you?  Should I open a new
bug for Alt-V, or should we keep this bug open?

To me -5.fc11 is good for release, because it fixes the revert
function, which is more important (to me) than Alt-V being broken.

Comment 8 Jerry James 2009-12-03 18:43:10 UTC
Let's keep this bug open.  We'll make it the "broken ediff keybindings" bug. :-)  Let me go talk to the ediff maintainer again.  The previous problem was that he had done some development work on Emacs, then synched his changes over to XEmacs, but overlooked a handful of Emacs-specific functions in the code.  I'm guessing there's yet another Emacs-specific function in the code path exercised by Alt-V.  If it looks like it might take more than a couple of days to get a fix, I won't delay releasing the updates in comment 5 and comment 6.

Comment 9 Jerry James 2009-12-03 19:37:52 UTC
By the way, I notice that 'V' scrolls up, so at least there's a workaround until we can get this next one fixed.  It involves modifying muscle memory, though. :-)

Comment 10 Jerry James 2009-12-03 20:21:42 UTC
I see the problem.  Try evaluating this in *scratch* after ediff is loaded and see if it works for you.

(defun ediff-event-key (event-or-key)
  (if (featurep 'xemacs)
      (if (eventp event-or-key) (event-character event-or-key t t) event-or-key)
    event-or-key))

Comment 11 Tim Taiwanese Liim 2009-12-03 23:03:25 UTC
Re: Comment #10
I tried it, but it did not help in my case; Alt-v still scrolls down
(should be up).  Did I miss anything?  I pasted the lisp code in
Comment #10, and did "M-x eval-current-buffer".  Then Alt-v still does
the wrong thing.

Re: Comment #9
Yes, the work around (Shift-V) works well.  Thanks!

Re: Comment #8
I understand; after some major changes, this happens from time to
time.  Thanks for your effort to make xemacs (and ediff) better!

Comment 12 Jerry James 2009-12-03 23:15:16 UTC
Gah, typo. :-(

You have to use ediff once first, otherwise it will load the original (bad) definition again once you start ediff.  After running ediff once, paste the following defun into the *scratch* buffer.  Put the cursor just after the closing parenthesis and press C-j.  Then run ediff again and M-v should work.

(defun ediff-event-key (event-or-key)
  (if (and (featurep 'xemacs) (eventp event-or-key))
      (event-to-character event-or-key t t)
    event-or-key))

Comment 13 Tim Taiwanese Liim 2009-12-04 06:52:34 UTC
Re: Comment #12
Yes, that works well!  I'll wait till we have the proper fix; in the
mean time I can live with Comment #9 (Shift-V).

Comment 14 Fedora Update System 2009-12-07 07:29:23 UTC
xemacs-packages-extra-20090217-7.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update xemacs-packages-extra'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-12596

Comment 15 Fedora Update System 2009-12-07 07:31:15 UTC
xemacs-packages-extra-20090217-6.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update xemacs-packages-extra'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-12567

Comment 16 Tim Taiwanese Liim 2009-12-07 16:11:41 UTC
I tested 
    xemacs-packages-extra-20090217-6.fc11.noarch
It worked as expected; v/ctrl-V scrolls down; shift-V/alt-V scrolls
up; rX reverts the changes properly.

So I think this fix is good to go, and we can close this bug.

Jerry,
Thanks for tracking down this issue!

Comment 17 Fedora Update System 2009-12-10 04:16:51 UTC
xemacs-packages-extra-20090217-6.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 18 Fedora Update System 2009-12-10 04:17:58 UTC
xemacs-packages-extra-20090217-7.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.