From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 20 16:11:13 2021 Received: (at submit) by debbugs.gnu.org; 20 Apr 2021 20:11:13 +0000 Received: from localhost ([127.0.0.1]:56100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYwiH-0007VW-8d for submit@debbugs.gnu.org; Tue, 20 Apr 2021 16:11:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:42528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYwiF-0007VP-Ea for submit@debbugs.gnu.org; Tue, 20 Apr 2021 16:11:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYwiF-0006HW-9i for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2021 16:11:11 -0400 Received: from bumble.maple.relay.mailchannels.net ([23.83.214.25]:56021) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYwiD-00061U-Aa for bug-gnu-emacs@gnu.org; Tue, 20 Apr 2021 16:11:10 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id B5C8B6419A2 for ; Tue, 20 Apr 2021 20:11:06 +0000 (UTC) Received: from pdx1-sub0-mail-a55.g.dreamhost.com (100-105-161-119.trex.outbound.svc.cluster.local [100.105.161.119]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 5FCF76411A1 for ; Tue, 20 Apr 2021 20:11:06 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a55.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.105.161.119 (trex/6.1.1); Tue, 20 Apr 2021 20:11:06 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Abiding-Bitter: 00989fcb3fc699ab_1618949466592_753079575 X-MC-Loop-Signature: 1618949466592:438868853 X-MC-Ingress-Time: 1618949466592 Received: from pdx1-sub0-mail-a55.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a55.g.dreamhost.com (Postfix) with ESMTP id 1FE1A86426 for ; Tue, 20 Apr 2021 13:11:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=yoP1O4rWWkpby8ddnQ wkaJT1W9I=; b=Fwmq9ouZYzma5hPeKZ7QLQ2fdAhT7tlo7+cESffOISNBxizx15 5XmNcFXWG0plV/KsTHE8VJIc70HZxtH1r2oipfuquhy3/yOODvbxbEJ+U4EYf9ej cZVjz98/LfUl5e9n2h8FTdV8yyRkL/FxKyTHPI/53/+adaN/TRTJpbKRg= Received: from jidanni.org (114-41-15-244.dynamic-ip.hinet.net [114.41.15.244]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a55.g.dreamhost.com (Postfix) with ESMTPSA id DFFFD809AE for ; Tue, 20 Apr 2021 13:11:05 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a55 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs@gnu.org Subject: M-x occur should jump to the first match Date: Wed, 21 Apr 2021 04:11:02 +0800 Message-ID: <87v98g7m3t.8.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=23.83.214.25; envelope-from=jidanni@jidanni.org; helo=bumble.maple.relay.mailchannels.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) occur is an interactive compiled Lisp function in =E2=80=98replace.el=E2=80= =99. Odd that it doesn't jump to the first match like other similar emacs functions do. So it should, unless the user disables it via a variable. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 20 16:25:06 2021 Received: (at 47918) by debbugs.gnu.org; 20 Apr 2021 20:25:06 +0000 Received: from localhost ([127.0.0.1]:56122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYwvi-0007rY-8V for submit@debbugs.gnu.org; Tue, 20 Apr 2021 16:25:06 -0400 Received: from mail-pg1-f175.google.com ([209.85.215.175]:43950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYwvg-0007qw-KS for 47918@debbugs.gnu.org; Tue, 20 Apr 2021 16:25:05 -0400 Received: by mail-pg1-f175.google.com with SMTP id p12so27510801pgj.10 for <47918@debbugs.gnu.org>; Tue, 20 Apr 2021 13:25:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc :content-transfer-encoding; bh=GTtq41HJdCU5HxBbsBhxT4OnDxKIFbsjDhXuqNpi5vw=; b=aL3+9wd7fXbMsHj9gKP2fU9NtoglwehxeNVcTthazofpoA7aRnr6kBezfNd1kEQXyu Q90I2ZmMWPaUexU5iqThOXOnuy2wS+TiyyB6pjJeOzuuC6wCUnaMQYttAl1gaGp2qgcF lmvc6Wu8fleHmn0/zT2sS/qPzMyIqdqAlxrS5PEajZhVFe1q42wTOcxb3YiZotOBYcIm YO1uaRHIep2w2khen3AJ8cfU4CUqf8UuGpa1Lmt/N/EpG/Vk+gZasNDqGXmKzcHPmo0H VywuNpAQlcd4Jht911w3I4X3MMskrb3/9A6P5zWU5cDaCo25HrKqUdaWrRMsNeGxizGa 0OHQ== X-Gm-Message-State: AOAM5304HY/GDAP7rNdj7U2Kw/vaVUZOPCPvgHuuDpLfTTF0vRQuQ+Cw 4cJIXS6TEXQrpYIl6clhEm2/cmdKi38qghu0ApU= X-Google-Smtp-Source: ABdhPJzn16UMehaY63xgeksS3R1zw62Io+SazQ+eu+aNHRBQWhEAfFh9EKJ7narKAUZfDPdReyimgtfSBmja6DBo5jo= X-Received: by 2002:a63:a16:: with SMTP id 22mr4920666pgk.345.1618950298901; Tue, 20 Apr 2021 13:24:58 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 20 Apr 2021 15:24:58 -0500 From: Stefan Kangas In-Reply-To: =?UTF-8?B?PDg3djk4ZzdtM3QuOC5mc2ZAamlkYW5uaS5vcmc+ICgi56mN5Li55bC8IERhbiBK?= =?UTF-8?B?YWNvYnNvbiIncyBtZXNzYWdlIG9mICJXZWQsIDIxIEFwciAyMDIxIDA0OjExOjAyICswODAwIik=?= References: <87v98g7m3t.8.fsf@jidanni.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Tue, 20 Apr 2021 15:24:58 -0500 Message-ID: Subject: Re: bug#47918: M-x occur should jump to the first match To: =?UTF-8?B?56mN5Li55bC8IERhbiBKYWNvYnNvbg==?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 47918 Cc: 47918@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) tags 47918 wontfix notabug close 47918 thanks =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > occur is an interactive compiled Lisp function in =E2=80=98replace.el=E2= =80=99. > > Odd that it doesn't jump to the first match like other similar emacs > functions do. > > So it should, unless the user disables it via a variable. That would break existing workflows. Also, `rgrep' and `compile' doesn't jump to the first match, so I don't see why `occur' should be different. If you want to do this, I recommend: (add-hook 'occur-hook #'next-error) Closing as wontfix. From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 21 13:06:18 2021 Received: (at 47918) by debbugs.gnu.org; 21 Apr 2021 17:06:18 +0000 Received: from localhost ([127.0.0.1]:59688 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZGIs-0002zX-1C for submit@debbugs.gnu.org; Wed, 21 Apr 2021 13:06:18 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:35067) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZGIm-0002zD-5D for 47918@debbugs.gnu.org; Wed, 21 Apr 2021 13:06:16 -0400 X-Originating-IP: 91.129.102.166 Received: from mail.gandi.net (m91-129-102-166.cust.tele2.ee [91.129.102.166]) (Authenticated sender: juri@linkov.net) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 282291BF209; Wed, 21 Apr 2021 17:06:03 +0000 (UTC) From: Juri Linkov To: Stefan Kangas Subject: Re: bug#47918: M-x occur should jump to the first match Organization: LINKOV.NET References: <87v98g7m3t.8.fsf@jidanni.org> Date: Wed, 21 Apr 2021 19:54:35 +0300 In-Reply-To: (Stefan Kangas's message of "Tue, 20 Apr 2021 15:24:58 -0500") Message-ID: <87sg3jd384.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 47918 Cc: 47918@debbugs.gnu.org, =?utf-8?B?56mN5Li55bC8?= Dan Jacobson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > That would break existing workflows. Also, `rgrep' and `compile' > doesn't jump to the first match, so I don't see why `occur' should be > different. There is 'compilation-auto-jump-to-first-error', but it doesn't visit matches. > If you want to do this, I recommend: > > (add-hook 'occur-hook #'next-error) This is a nice solution to immediately visit matches. From debbugs-submit-bounces@debbugs.gnu.org Mon May 03 11:07:34 2021 Received: (at 47918) by debbugs.gnu.org; 3 May 2021 15:07:34 +0000 Received: from localhost ([127.0.0.1]:46863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldaAY-0005d5-3Q for submit@debbugs.gnu.org; Mon, 03 May 2021 11:07:34 -0400 Received: from cross.elm.relay.mailchannels.net ([23.83.212.46]:32203) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldaAV-0005cz-5x for 47918@debbugs.gnu.org; Mon, 03 May 2021 11:07:32 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id BC1B2184478; Mon, 3 May 2021 14:59:57 +0000 (UTC) Received: from pdx1-sub0-mail-a61.g.dreamhost.com (100-105-161-122.trex.outbound.svc.cluster.local [100.105.161.122]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 6111118440B; Mon, 3 May 2021 14:59:56 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a61.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.105.161.122 (trex/6.2.1); Mon, 03 May 2021 14:59:57 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Macabre-Thread: 72c5ebd377f16d19_1620053997531_3693779399 X-MC-Loop-Signature: 1620053997531:827336600 X-MC-Ingress-Time: 1620053997531 Received: from pdx1-sub0-mail-a61.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a61.g.dreamhost.com (Postfix) with ESMTP id 051ED86C5F; Mon, 3 May 2021 07:59:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=DqY9LRCI0/uQBl1fLO8gPgnKMNk=; b=FtoiGi6okEq1Z J8DF2BAvB01XqMPjylpcxrYCBEw6aSQu9t9DW+oYNCm2rWyIl/tYwZyBOGuSAvbR GZz8vQuqBRyQsE8u7qk7Cw1kRQY8LqHRnmuD0LMBSWcwIhxdGuypCRqlGe5jCAEM LB8dSn4txOWv1oEpAMNGmXNfsuWrR8= Received: from jidanni.org (114-41-23-222.dynamic-ip.hinet.net [114.41.23.222]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a61.g.dreamhost.com (Postfix) with ESMTPSA id 1C4F680235; Mon, 3 May 2021 07:59:53 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a61 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: Juri Linkov Subject: Re: bug#47918: M-x occur should jump to the first match References: <87v98g7m3t.8.fsf@jidanni.org> <87sg3jd384.fsf@mail.linkov.net> Date: Mon, 03 May 2021 22:06:11 +0800 Message-ID: <875yzzhpyk.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 47918 Cc: 47918@debbugs.gnu.org, Stefan Kangas X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> "JL" == Juri Linkov writes: >> (add-hook 'occur-hook #'next-error) Nifty! Sure wish the occur docstring in replace.el, and perhaps even (info "(emacs) Other Repeating Search") would mention that. From unknown Sun Jun 22 00:21:02 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 01 Jun 2021 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator