View a buffer in read-only mode in a window while editing it in another window
Clash Royale CLAN TAG#URR8PPP
up vote
7
down vote
favorite
A buffer can be made write-protected by toggling the read-only mode via M-x toggle-read-only
.
Is there a way to make a buffer read-only in a window, while editing it in another window?
read-only-mode
add a comment |Â
up vote
7
down vote
favorite
A buffer can be made write-protected by toggling the read-only mode via M-x toggle-read-only
.
Is there a way to make a buffer read-only in a window, while editing it in another window?
read-only-mode
add a comment |Â
up vote
7
down vote
favorite
up vote
7
down vote
favorite
A buffer can be made write-protected by toggling the read-only mode via M-x toggle-read-only
.
Is there a way to make a buffer read-only in a window, while editing it in another window?
read-only-mode
A buffer can be made write-protected by toggling the read-only mode via M-x toggle-read-only
.
Is there a way to make a buffer read-only in a window, while editing it in another window?
read-only-mode
asked Aug 17 at 8:19


AlQuemist
1385
1385
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
8
down vote
accepted
In your original buffer, where you want to keep editing it :
M-x clone-indirect-buffer
This would create another buffer, and by default open it in another window too. Initially both of these are editable. But a buffer specific mode change can be made in the second one - which will now become read only after you do the following :
M-x read-only-mode
Now this second buffer is your buffer in read-only mode - same content as the earlier read-write buffer.
could you please add some explanation?
– AlQuemist
Aug 17 at 10:25
Ah, ok, one min. Since you were using M-x and toggling modes already, I thought you would understand very easily.
– Jeeves
Aug 17 at 10:26
Thanks. IMO, it is better to add some explanation along with the commands for the general audience.
– AlQuemist
Aug 17 at 10:36
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
8
down vote
accepted
In your original buffer, where you want to keep editing it :
M-x clone-indirect-buffer
This would create another buffer, and by default open it in another window too. Initially both of these are editable. But a buffer specific mode change can be made in the second one - which will now become read only after you do the following :
M-x read-only-mode
Now this second buffer is your buffer in read-only mode - same content as the earlier read-write buffer.
could you please add some explanation?
– AlQuemist
Aug 17 at 10:25
Ah, ok, one min. Since you were using M-x and toggling modes already, I thought you would understand very easily.
– Jeeves
Aug 17 at 10:26
Thanks. IMO, it is better to add some explanation along with the commands for the general audience.
– AlQuemist
Aug 17 at 10:36
add a comment |Â
up vote
8
down vote
accepted
In your original buffer, where you want to keep editing it :
M-x clone-indirect-buffer
This would create another buffer, and by default open it in another window too. Initially both of these are editable. But a buffer specific mode change can be made in the second one - which will now become read only after you do the following :
M-x read-only-mode
Now this second buffer is your buffer in read-only mode - same content as the earlier read-write buffer.
could you please add some explanation?
– AlQuemist
Aug 17 at 10:25
Ah, ok, one min. Since you were using M-x and toggling modes already, I thought you would understand very easily.
– Jeeves
Aug 17 at 10:26
Thanks. IMO, it is better to add some explanation along with the commands for the general audience.
– AlQuemist
Aug 17 at 10:36
add a comment |Â
up vote
8
down vote
accepted
up vote
8
down vote
accepted
In your original buffer, where you want to keep editing it :
M-x clone-indirect-buffer
This would create another buffer, and by default open it in another window too. Initially both of these are editable. But a buffer specific mode change can be made in the second one - which will now become read only after you do the following :
M-x read-only-mode
Now this second buffer is your buffer in read-only mode - same content as the earlier read-write buffer.
In your original buffer, where you want to keep editing it :
M-x clone-indirect-buffer
This would create another buffer, and by default open it in another window too. Initially both of these are editable. But a buffer specific mode change can be made in the second one - which will now become read only after you do the following :
M-x read-only-mode
Now this second buffer is your buffer in read-only mode - same content as the earlier read-write buffer.
edited Aug 17 at 10:28
answered Aug 17 at 9:54
Jeeves
45135
45135
could you please add some explanation?
– AlQuemist
Aug 17 at 10:25
Ah, ok, one min. Since you were using M-x and toggling modes already, I thought you would understand very easily.
– Jeeves
Aug 17 at 10:26
Thanks. IMO, it is better to add some explanation along with the commands for the general audience.
– AlQuemist
Aug 17 at 10:36
add a comment |Â
could you please add some explanation?
– AlQuemist
Aug 17 at 10:25
Ah, ok, one min. Since you were using M-x and toggling modes already, I thought you would understand very easily.
– Jeeves
Aug 17 at 10:26
Thanks. IMO, it is better to add some explanation along with the commands for the general audience.
– AlQuemist
Aug 17 at 10:36
could you please add some explanation?
– AlQuemist
Aug 17 at 10:25
could you please add some explanation?
– AlQuemist
Aug 17 at 10:25
Ah, ok, one min. Since you were using M-x and toggling modes already, I thought you would understand very easily.
– Jeeves
Aug 17 at 10:26
Ah, ok, one min. Since you were using M-x and toggling modes already, I thought you would understand very easily.
– Jeeves
Aug 17 at 10:26
Thanks. IMO, it is better to add some explanation along with the commands for the general audience.
– AlQuemist
Aug 17 at 10:36
Thanks. IMO, it is better to add some explanation along with the commands for the general audience.
– AlQuemist
Aug 17 at 10:36
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2femacs.stackexchange.com%2fquestions%2f44176%2fview-a-buffer-in-read-only-mode-in-a-window-while-editing-it-in-another-window%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password