From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: ndame via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs 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 Message-ID: References: <87mtjoj84u.fsf@gnus.org> Reply-To: ndame Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22131"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 53419@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 22 17:45:59 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBJWZ-0005c0-8h for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jan 2022 17:45:59 +0100 Original-Received: from localhost ([::1]:54850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBJWY-0004Hn-5b for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Jan 2022 11:45:58 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBJVe-0004G0-Ak for bug-gnu-emacs@gnu.org; Sat, 22 Jan 2022 11:45:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44862) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nBJVd-0001QZ-Uh for bug-gnu-emacs@gnu.org; Sat, 22 Jan 2022 11:45:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nBJVd-0008Nz-TL for bug-gnu-emacs@gnu.org; Sat, 22 Jan 2022 11:45:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ndame Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Jan 2022 16:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53419 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 53419-submit@debbugs.gnu.org id=B53419.164286986532175 (code B ref 53419); Sat, 22 Jan 2022 16:45:01 +0000 Original-Received: (at 53419) by debbugs.gnu.org; 22 Jan 2022 16:44:25 +0000 Original-Received: from localhost ([127.0.0.1]:37765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBJV3-0008Mt-DR for submit@debbugs.gnu.org; Sat, 22 Jan 2022 11:44:25 -0500 Original-Received: from mail-40130.protonmail.ch ([185.70.40.130]:63071) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBJV1-0008Md-9p for 53419@debbugs.gnu.org; Sat, 22 Jan 2022 11:44:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1642869856; bh=zeJCRGA6xQh6CCFbqEokHYzwtANK541f3fYPDCqCugw=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc; b=rYjnElXmg8kKqX6ckMO24FYgoDxw3R62yYSL4nThPG6n7PhIqubu4xb/+vfnQqYrl Cs3idtSpIeWk5y2LtHU+WpNedepp22xWp9leRbgKyJ7RFiOAwYFr9xyNubJ5Na7mGv VZZ5+irKTlAdDNNxABJ6LT+4S8O9Qz1QRdzg9s8n66JHaoWr/wJ4YP7zCJIdd24jw3 0/YG+lWqA1EteKaaBf1iHujgfjRpkmXxn+zkcp1XHzKIoCEYDtFETV0oSz/yv3bUdU Vg0qlfIjlxpO8smp1wi00D6S80GDevbfIT+qNFxfvK+TmoLj5VsX/ItLo13zYLVzA/ 6rCN9avBdPZnw== In-Reply-To: <87mtjoj84u.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" X-ACL-Warn: , ndame Xref: news.gmane.io gmane.emacs.bugs:224850 Archived-At: > 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.