From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joel Reicher Newsgroups: gmane.emacs.help Subject: Re: imenu rescan automatically Date: Mon, 12 Aug 2024 20:50:29 +1000 Message-ID: <86cymedngq.fsf@gmail.com> References: <864j7q4ohe.fsf@gmail.com> <86ikw6dp6g.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38878"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Heime via Users list for the GNU Emacs text editor To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 12 12:51:08 2024 Return-path: Envelope-to: geh-help-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 1sdSdn-0009zZ-IC for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 12 Aug 2024 12:51:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sdSdO-0004mE-CE; Mon, 12 Aug 2024 06:50:42 -0400 Original-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 1sdSdM-0004m4-W0 for help-gnu-emacs@gnu.org; Mon, 12 Aug 2024 06:50:41 -0400 Original-Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sdSdL-0006ir-Gz for help-gnu-emacs@gnu.org; Mon, 12 Aug 2024 06:50:40 -0400 Original-Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-70d2b921cdfso3767245b3a.0 for ; Mon, 12 Aug 2024 03:50:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723459837; x=1724064637; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VxxGg9Niwkqw38SqR/4exaLjs2S7UK6jc3qi2JP1QfA=; b=aB4Acvl3GIdlNsAcMSbgVjkoefopYfa5GHisleuf35kXA9eNxy+mi51RLpS8R0xlR3 0E+rU9Px2udoJZ9+QXUI45pZhRJtgQxQEMccNbYmNW8P5E8KuouFiLDJ1KH10xzbTDQ/ kDQSeRmw3fIzdX//Fx8xFRwNMcftbMruJckoYMHuXjzPYw46KrMzy6D/g0Zy/Vk1i8AQ 4p9IBKjgrs9FTKvQNiSXnScSZ+uQDoMeE5ybW96Ui0BV+rzh4zQzFrD8eddLDWc6M4TX yVWwKhqGAPQwbAVKm9CFHwOmgsFMGgU2q+9zGoGYI1EtEZNyNIliwu360Lfva9jWVhsl NuAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723459837; x=1724064637; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=VxxGg9Niwkqw38SqR/4exaLjs2S7UK6jc3qi2JP1QfA=; b=HRg6D62CYwCJjEkFzAUZAKUMR5CEPLDxlO+DvxJP/icFbgn0AdWhuiNZeJyrkMGa0F mLjL86LP5uTlg9QBaKAp5Kuz3+Q+t5xkmNNJK0MnpO7TZvqZ6c/vFz/y+xVDFP7Gx2MY 253jfz+mfF0yipRYvQQmmMd3/cGr+r3Y9joq3e2jTgQ2b2hVuRb3+N95J02NUcRug3mw 7CXDeBgd1Xpm/bqBNjkzoMoKw8ETjYmkjHogshbzJw+l8LqY+uY5n7XPi08c1f18Q5vf 6L3FEHHgBy9+KbWJ/xK13FEnsQ1ryDDwnpnZhPJ9EfZY293pBTNRmvek7gds+4cord0j 220w== X-Gm-Message-State: AOJu0Yxt4OIIIJFxiIMgka16VlYcEN6zYBD8uDnwveWrxa6Dn6AaN85w FwfbcqHmSOsU9TcZEepSpsWyozc+aYAJ2lN+36rDGbnKWyx78rP7YTyi2NmI X-Google-Smtp-Source: AGHT+IFsSGyC0wzRabBn5VYwQiQ1zP/r1cFzhdEg8AvSqXybvYHUM3BNcrrS6ELleSArbBMFTYAhVg== X-Received: by 2002:a05:6a00:1482:b0:70b:152:331 with SMTP id d2e1a72fcca58-710dc79c6e5mr12371399b3a.21.1723459837268; Mon, 12 Aug 2024 03:50:37 -0700 (PDT) Original-Received: from LAPTOP-ACR66VVN (139-218-25-158.sta.wbroadband.net.au. [139.218.25.158]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7c3dbe3a3a9sm4002296a12.50.2024.08.12.03.50.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Aug 2024 03:50:36 -0700 (PDT) In-Reply-To: (Heime's message of "Mon, 12 Aug 2024 10:21:39 +0000") Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=joel.reicher@gmail.com; helo=mail-pf1-x42b.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147627 Archived-At: Heime writes: > On Monday, August 12th, 2024 at 10:13 PM, Joel Reicher=20 > wrote: > >> Heime heimeborgia@protonmail.com writes: >> >>> Yes, the function changes imenu-generic-expression and I want=20 >>> it to do a rescan so the user does not have to manually do it. >> >> So add a rescan call to your function? >> >> What am I missing? > > What is the function that achieves this ? Have not found a=20 > rescan function type name. (imenu-flush-cache) Flush the current imenu cache. This forces a full rescan of the buffer to recreate the index=20 alist next time =A1=AEimenu=A1=AF is invoked. I think that will do what you want. Cheers, - Joel