0

After invoking save-some-buffers, I almost always want to check the diffs with d. But when I do so, I'm not able to do any scrolling in the diff window, nor to change its size, or indeed any window's size, until I have decided whether to save the buffer or not. This makes it impossible to read all but a portion, defeating the purpose for me.

Is this the intended behavior?

5
  • No, that is definitely not the intended behavior. The diff window is in view-mode where scrolling forward/backward is done with SPC/'DEL' and I can change its size (e.g. by click-dragging the mode line of the window above). I can also change the size of other windows. What happens if you do C-h in the diff window? Do you get the help prompt?
    – NickD
    Oct 24, 2023 at 21:11
  • @NickD If I try to activate the diff window, it rings the bell and the minibuffer remains active. (Weird)
    – Eric Auld
    Oct 26, 2023 at 3:18
  • 1
    This looks like an emacs bug, it should be possible to scroll the diff with C-M-v. If you set enable-recursive-minibuffers to t you'll end up with a diff window in view-mode.
    – rpluim
    Oct 26, 2023 at 15:37
  • 1
    Ah, right - enable-recursive-minibuffers is set to t in my case.
    – NickD
    Oct 27, 2023 at 1:27
  • 1
    So my testing was off, and there's no emacs bug: C-M-v scrolls the *Diff* buffer for me, but ESC C-v doesn't.
    – rpluim
    Oct 27, 2023 at 9:32

1 Answer 1

1

The *Diff* buffer can be scrolled up and down respectively with C-M-v and C-S-M-v. If you scroll it past its end, it will be removed from view.

Alternatively, set enable-recursive-minibuffers to t, then d will place you in the diff buffer, with view-mode enabled, which allows you to scroll with DEL and SPC.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.