1

This question already has an answer here:

Windows 10, Emacs 26.1

I have file - file_first.txt:

enter image description here

I want to find all line content word hello. So I use occur for this

enter image description here Nice.

Now I want to save result to SEPARATE file: file_second.txt

To do this I use menu File->Save As (C-x C-w)

enter image description here

And success save content of occur buffer to file file_second.txt

enter image description here

Nice.

Now I want to delete first line

2 matches for "hello"...

in file file_second.txt enter image description here

To do this I go to first line, select whole line and press any key.

enter image description here

But I get message:

Text is read only

And first line NOT DELETE.

Why? This is not any more *occur* buffer. It's a SEPARATE file.

But I can success delete another line (e.g. second line)

Why I can edit any lines EXCEPT FIRST LINE? enter image description here

marked as duplicate by DoMiNeLa10 Jan 6 at 18:21

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • You already asked essentially the same question and got some pointers there. – Harald Hanche-Olsen Jan 6 at 15:16
  • @HaraldHanche-Olsen but it not help – a_subscriber Jan 6 at 15:35
  • The the right thing to do is to ask for clarification on that other question, or possibly updating it to making it clearer. (That will also bump it to the front page.) Certainly, without feedback indicating why it did not help, I am unable to help further. – Harald Hanche-Olsen Jan 6 at 15:53
  • "facemenu-remove-all" - this help. – a_subscriber Jan 6 at 17:38
  • Why when I save occur buffer to separate file not whole lines are editable? – a_subscriber Jan 7 at 11:09

Browse other questions tagged or ask your own question.