Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6327585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:18:22+00:00 2026-05-24T17:18:22+00:00

I normally work in emacs with the frame split into two side-by-side windows. Committing

  • 0

I normally work in emacs with the frame split into two side-by-side windows. Committing a change via git (C-x v v) opens a buffer in the other window for the change comment. The problem is that when I finish the comment and type C-c C-c, the window containing the comment is killed along with the VC-log buffer. Then I have to split the frame into two windows again and find the buffer that had been in deleted window.

Is there any way to keep this process (C-x v v [commit message] C-c C-c) from messing up my window layout? I’d be happy for the VC-log to open in the other window and then disappear without changing the window layout, or for the VC-log to temporarily split one of the windows, as long as my original buffer/window layout is restored when I’m done with the commit. I could write a wrapper function for vc-next-action that saves and restores the window configuration, but it seems like there should be a more straightforward way to do this. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T17:18:22+00:00Added an answer on May 24, 2026 at 5:18 pm

    A quick look through the vc options offered no possibility, but you can advise vc-next-action (bound to C-x v v) with a save-window-excursion that restores the windows

    (defadvice vc-next-action (around keep-windows activate)
      (save-window-excursion
        ad-do-it))
    

    There is also winner-mode for general restoring. And if you use git, you definitely should look at magit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I normally don't work on Windows development, and am completely unfamiliar with the toolchain
I use two emacs (Aquamcs and text based emacs) on my Mac. I normally
I normally work on single threaded applications and have generally never really bothered with
I normally run VS 2008 at home and LINQ is built in. At work
I'll preface this by saying that I usually work in C#/.Net. Normally, I use
I normally work on Python projects and we have a good tool called virtualenv
I normally work with jQuery, which takes away most of the cross browser pain
I'm somewhat new at C++ (I normally work in C#, but right now I'm
I have used in my site jScrollPane jquery plugin. It is normally work in
I am using emacs I find that sometimes I have 2 files separated into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.