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 6336443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:03:29+00:00 2026-05-24T19:03:29+00:00

I apologize if I use the incorrect terminology here, I’ve only been using emacs

  • 0

I apologize if I use the incorrect terminology here, I’ve only been using emacs for a few months.

I just reinstalled Aquamacs on a macbook that I reformatted and am having the oddest problem.

I open a .py file, and use C-c ! to open a python shell. So I have (as expected), the .py file in the top window and the python shell in the bottom window.

If I then run C-c C-c (py-execute-buffer) in the .py file, the two windows swap positions. I mean, the .py file buffer opens in the bottom window in a new buffer, while the python shell opens in the top window in a new buffer. So basically, they swap positions. Repeatedly using C-c C-c swaps the windows back again… so they’re shuffling positions. Also, both windows (top and bottom) have both buffers (.py file and python shell) in tabs.

I’ve not made any modifications to the default settings yet, and I’ve gotten the problem with both 2.3a and 2.3 (2.3 was on the machine previously and didn’t have this problem, so I tried rolling back… to no avail).

Does anyone know how to stop this behavior? Thanks in advance!

  • 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-24T19:03:30+00:00Added an answer on May 24, 2026 at 7:03 pm

    Add the following to your Emacs init file in Aquamacs to prevent it from swapping the buffers around:

    (defadvice py-execute-buffer
      (around keep-buffers-same activate)
      "Don't swap buffers in Aquamacs."
      (save-window-excursion 
        ad-do-it))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I apologize in advance if the terminology in my question is incorrect. I want
Apologies if my terminology is incorrect, I have only started Java (and OO programming
Accept my apologize because of my low English level I use to load a
i apologize in advance for the elementary questions i am using: command.CommandText = select
I apologize in advance for the newbie nature of this question. Here is my
I apologize if this has been asked before, but I haven't quite found the
I apologize for the weird question wording... here's the design problem: I am developing
After reading a few related questions I've decided to use the tpl library to
I apologize if this question has been answered already, but I cannot seem to
I apologize that this isn't a question on how to use Mathematica, but rather

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.