Skip to main content
added 191 characters in body
Source Link
NickD
  • 36k
  • 4
  • 33
  • 50

The Emacs occur buffer is editable, but it does not make it easy to delete lines. One normally gets something like this:

2 matches for "Wyk" in buffer: diary 59:%%(diary-anniversary 5 15 2014) Nicholas Wyk 61:%% van Wyk 

To delete the above lines one has to position one's cursor after each line number and invoke C-k. The line numbers themselves are given the read-only text property, so even if the buffer is made read-write, C-k will refuse to delete the line if the cursor is before the line number. It would be easier if line numbers were not shown.

Is there a better way?

The Emacs occur buffer is editable, but it does not make it easy to delete lines. One normally gets something like this:

2 matches for "Wyk" in buffer: diary 59:%%(diary-anniversary 5 15 2014) Nicholas Wyk 61:%% van Wyk 

To delete the above lines one has to position one's cursor after each line number and invoke C-k. It would be easier if line numbers were not shown.

Is there a better way?

The Emacs occur buffer is editable, but it does not make it easy to delete lines. One normally gets something like this:

2 matches for "Wyk" in buffer: diary 59:%%(diary-anniversary 5 15 2014) Nicholas Wyk 61:%% van Wyk 

To delete the above lines one has to position one's cursor after each line number and invoke C-k. The line numbers themselves are given the read-only text property, so even if the buffer is made read-write, C-k will refuse to delete the line if the cursor is before the line number. It would be easier if line numbers were not shown.

Is there a better way?

added 9 characters in body
Source Link
NickD
  • 36k
  • 4
  • 33
  • 50

The Emacs occur buffer is editable, but it does not make it easy to delete lines. One normally gets something like this:

2 matches for "Wyk" in buffer: diary 59:%%(diary-anniversary 5 15 2014) Nicholas Wyk 61:%% van Wyk 

To delete the above lines one has to position one's cursor after each line number and invoke C-kC-k. It would be easier if line numbers were not shown.

Is there a better way?

The Emacs occur buffer is editable, but it does not make it easy to delete lines. One normally gets something like this:

2 matches for "Wyk" in buffer: diary 59:%%(diary-anniversary 5 15 2014) Nicholas Wyk 61:%% van Wyk 

To delete the above lines one has to position one's cursor after each line and invoke C-k. It would be easier if line numbers were not shown.

Is there a better way?

The Emacs occur buffer is editable, but it does not make it easy to delete lines. One normally gets something like this:

2 matches for "Wyk" in buffer: diary 59:%%(diary-anniversary 5 15 2014) Nicholas Wyk 61:%% van Wyk 

To delete the above lines one has to position one's cursor after each line number and invoke C-k. It would be easier if line numbers were not shown.

Is there a better way?

Source Link
edman
  • 1.3k
  • 9
  • 16

Deleting lines in an editable occur buffer

The Emacs occur buffer is editable, but it does not make it easy to delete lines. One normally gets something like this:

2 matches for "Wyk" in buffer: diary 59:%%(diary-anniversary 5 15 2014) Nicholas Wyk 61:%% van Wyk 

To delete the above lines one has to position one's cursor after each line and invoke C-k. It would be easier if line numbers were not shown.

Is there a better way?