[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#53419: 27.1; Occur edit mode should also handle RET properly before
From: |
ndame |
Subject: |
bug#53419: 27.1; Occur edit mode should also handle RET properly before the line number |
Date: |
Sat, 22 Jan 2022 16:44:15 +0000 |
> I'm not sure I understand the issue. Could you give a recipe to
> reproduce the problem, starting from "emacs -Q"?
1. start Emacs with -Q, you are in scratch
2. M-x occur and type the word "file" for the regexp
3. you have one match from the initial scratch message
4. switch to the occur window and press e for edit mode,
then go to before the line number on the line (2:) and
press RET
6. RET inserts a newline character which does not make sense
for occur edit, because the matches are line based
RET should always go the the match location like in non-edit
mode, wherever the cursor is on the matching line, because
adding newlines does not really make sense, not even in edit
mode.