From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2KyJFLbUsWOBEAAAbAwnHQ (envelope-from ) for ; Sun, 01 Jan 2023 19:45:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UIu1FLbUsWPbtwAAauVa8A (envelope-from ) for ; Sun, 01 Jan 2023 19:45:10 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DE8353BC22 for ; Sun, 1 Jan 2023 19:45:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pC3Jj-0002ua-Mf; Sun, 01 Jan 2023 13:44:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pC3Ji-0002uJ-IA for emacs-orgmode@gnu.org; Sun, 01 Jan 2023 13:44:18 -0500 Received: from sonic304-9.consmr.mail.bf2.yahoo.com ([74.6.128.32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pC3Jg-0003dW-Cs for emacs-orgmode@gnu.org; Sun, 01 Jan 2023 13:44:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1672598651; bh=dH4iBSU6eO+Q5UfQlj3ICUOk+63h86S22jSrqwmemq8=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To; b=DemuitoSXu2AaJp8z23XfSSHpvP+mOgVdhL0ztWpPU6LNIQ/Ub3vwcft2OzmLYeZMGEjlcxoSqqUq5MCHY8Px7H+HCsYfgeQdwUJo1ob4wUOWPIxYoLgnZFzFt2dcZYRZritEaCkkpwmFpdqmPgvGtAZuDKoCoUyVKWLlETsQ1wh/bsVu3qIGxGnqNwL9JYQPjnY0FEe1BNgvSxapKPrwyEqV/wMX827N/RgsfTPt8Ct1+1vmSjxYLsRsnNBK7uijAjOb5Maa/iPYDK29uWZ0UsfoRgFw14qne7bq+rw4wQjPEQCMvbD2NZdm5OjNBYCs8LnfMzpQEWGFdtnMBF3tw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1672598651; bh=rw8F3uLTYPrqE5z36qpzpSdUJ4iOpGlK6LCEpeQZZci=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=FeL3PwXJCVvnT2fms0cFrC88ZXnASBBEH1Yfnkpm/e6skxw2hYVefOs7PK254cOC4nIDs6LteHbhKAa5TyUkhjHJW3cjSiUTUBRXofTIMyy3Tgpvp/+PbABZSfZKZn3TmOCnGNpil3FrtUWE+5Mvugo+NTLUmroIpfq+9WTsbFqtu97E3aKlzFXjZB+pV/6xDca/PBl0nKKFMHVYESQYpJKaI201LflCskvZA4I6MnKLnu32U2LjWBt4puGNrowaRokecJd+/irnqC6yST41fuZR7RZimFtI+iQDw/zJsMppihYTEgmkHWeeNitZsvKnm0aQsklm4ae/UneCC1RWhw== X-YMail-OSG: vRFO7fgVM1mmt_zsXxjPINKRULdvQr4xg9Vo.HggTyTMlqWyx.GOVGLTuFz1J5b _fXT_Ry9lUmAJrWLLPOQ33HIq1cV9e138yOFdH8qpfTYLQMVC3yh2whVnZmMgPLdcTY0jB6OZm9t C9mv7KLKLQ.3boihZLA43NU858_ZeSZ.6MkwSw3szkUzgIJjVSu5.nsxAM84qPWATBHfHKYCKA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WB4I X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.bf2.yahoo.com with HTTP; Sun, 1 Jan 2023 18:44:11 +0000 Date: Sun, 1 Jan 2023 18:44:09 +0000 (UTC) From: Eric Chun To: Ihor Radchenko Cc: "emacs-orgmode@gnu.org" Message-ID: <1141450532.3462549.1672598649607@mail.yahoo.com> In-Reply-To: <87sfgu75fv.fsf@localhost> References: <1277881757.3298435.1672461584764.ref@mail.yahoo.com> <1277881757.3298435.1672461584764@mail.yahoo.com> <87edsfae23.fsf@localhost> <936605889.1883816.1672500591608@mail.yahoo.com> <87sfgu75fv.fsf@localhost> Subject: Re: search in org-sparse-tree for multiple files MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3462548_2009036833.1672598649605" X-Mailer: WebService/1.1.20982 YMailNorrin Received-SPF: pass client-ip=74.6.128.32; envelope-from=eyc8@yahoo.com; helo=sonic304-9.consmr.mail.bf2.yahoo.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, FREEMAIL_REPLYTO_END_DIGIT=0.25, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eric Chun Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1672598710; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=dH4iBSU6eO+Q5UfQlj3ICUOk+63h86S22jSrqwmemq8=; b=bPDsVeS2r5/8MJ+mvtmSIZ6rhZ3I3gwdGPFHnYCqBEz303/won9HBU3JLecPQKXOEAk72y 4Ha8L7h2IwLLXV5vOPeotrmuZBnRM62zswxjytnJWlwUh/R7NyrPe6KF8814uqD1+RitUq 9u7VqzrO8naZtBBhcfnjBUSdTIW+nUjQ14plF9y4rp/oNMXNoAwJ3BkTAmXX55NYPcwrZL YOGsVdfBwakG7ocdLNMv9Bk7innNllxcokH6aGpwPUwyfTtcZcXfnUc9/W/ymPlnFI2qPJ 0pAIBzHym3pWyk8mCE4EVO/HOb8gfYIYdA9Ix29yMi2KZs+/6iJb9HoIPDdqUw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=yahoo.com header.s=s2048 header.b=DemuitoS; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=yahoo.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1672598710; a=rsa-sha256; cv=none; b=QdzAI98NzPnFscSMor+iUqAvVqp3rvnrX1KlFBLCPU1NLG65uquIRiLUcckkbjC5brUMtH mgLiV/GnO0TBe5Asf4DHKBtAYJmmAg9GY950iq+s55LZQyGl8EvNRFsGXKqztjNX9vZ+C0 +hp1jlyZXgtsFis/EB8ZMUAud6cgYgTUFS4/1oN3LDaty1YJINLi67M7xldSl7GtAGEUJ7 JWG3ITKCdGGh0pdAzgPs9vxrPD9OGp8eCxrsiO5sk38dlEX7yxVs/igohiVHfnXrWQBkKC JsG2pi9FuQwUPA1UMNwHbXFpNLlLHtkMr6WDqp45yiYAts3tL9XE/PmoSZ14oA== X-Spam-Score: -6.20 X-Migadu-Queue-Id: DE8353BC22 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=yahoo.com header.s=s2048 header.b=DemuitoS; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=yahoo.com X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.20 X-TUID: sTET2eysljYk ------=_Part_3462548_2009036833.1672598649605 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I think I found a solution but here are the steps in case others have the = same problem: * First, I open an org file in Emacs.* I then create a sparse tree using a = regular expression.* I then type M-g M-n to move to the next occurrence of = my search string but it doesn't work.=C2=A0 I get a message saying "user-er= ror: Moved past last grep hit". * I kill the pre-existing "*grep*" buffer in Emacs. * I then try M-g M-n again and it works. Writing out these steps got me thinking that there might be an option in co= mpilation mode to switch buffers when finding next error.=C2=A0 I looked in= the compilation mode section of the Emacs manual and found next-error-sele= ct-buffer=C2=A0that switches buffers when searching for errors.=C2=A0 I als= o just realized that you mentioned=C2=A0next-error-find-buffer-function con= figuration variable in an earlier post.=C2=A0 I'll try that as well. You can consider my question answered.=C2=A0 Thanks for the help. On Sunday, January 1, 2023 at 06:24:39 AM MST, Ihor Radchenko wrote: =20 =20 Eric Chun writes: > I'm assuming "current buffer" is the buffer which I can currently type in= put into.=C2=A0 The current buffer is not finding next occurrence of search= string by pressing M-g M-n.=C2=A0 Is this expected? Could you please elaborate? What exactly you did and what do you expect to happen? (see https://orgmode.org/manual/Feedback.html#Feedback) --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at =20 ------=_Part_3462548_2009036833.1672598649605 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I think I found a solution b= ut here are the steps in case others have the same problem:

* First, I open an org file in Emacs.
* I then create a sparse tree using a regular expression.
=
* I then type M-g M-n to move to the= next occurrence of my search string but it doesn't work.  I get a mes= sage saying "user-error: Moved past last grep hit".
* I kill = the pre-existing "*grep*" buffer in Emacs.
* I then try M-g M-n again and it works.

Writing out these steps got me thinking that there might be an option = in compilation mode to switch buffers when finding next error.  I look= ed in the compilation mode section of the E= macs manual and found next-error-select-buffer that switc= hes buffers when searching for errors.  I also just realized that you = mentioned next-error-find-buffer-function configuration variable= in an earlier post.  I'll try that as well.

You can consider my question answered.  Thanks for = the help.

=20
------=_Part_3462548_2009036833.1672598649605--