1

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

a_subscriber
  • 4,062
  • 1
  • 18
  • 56

0 Answers0