Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 2
    If you put the cursor on that column and type C-x C-n then the cursor will start on that column when you change lines. Then it's pretty trivial. C-u C-x C-n to clear the goal column. Commented Feb 8 at 9:26
  • 1
    N.b. If you just wanted to delete all lines matching the pattern, you wouldn't use occur, but rather M-x flush-lines (and see also its inverse, keep-lines). Commented Feb 8 at 9:28
  • 1
    I'm still not quite clear: are you talking about deleting the lines in the diary buffer` or in the *Occur* buffer? I assumed the latter (and based my edit to your question on that assumption) but I'm doubting myself. Commented Feb 8 at 17:25
  • I am wanting to delete lines in the occur buffer. In this case I was editing my diary file. Commented Feb 9 at 4:52
  • 1
    Okay - thanks for clarifying! I don't have to live in doubt any more :-) Commented Feb 9 at 18:15