'Horizontally Splited Emacs window modifies both windows

I split a file on Emacs using C-x 2. When I modify the top window, the bottom window gets modified simultaneously. How can I modify the top window and not the bottom?



Solution 1:[1]

You may have confused the concepts of Windows, buffers and files. Although you split Windows, they show the same buffer and changes are synchronized between the two Windows. If you really want to, you need to create a new buffer or file with the same content.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tianshu Wang