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:13:27 +1000 Message-ID: <86ikw6dp6g.fsf@gmail.com> References: <864j7q4ohe.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5228"; 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:14:25 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 1sdS4G-0001FT-Ry for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 12 Aug 2024 12:14:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sdS3a-0007Ww-DB; Mon, 12 Aug 2024 06:13:43 -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 1sdS3R-0007Uh-Th for help-gnu-emacs@gnu.org; Mon, 12 Aug 2024 06:13:34 -0400 Original-Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sdS3Q-00019e-FL for help-gnu-emacs@gnu.org; Mon, 12 Aug 2024 06:13:33 -0400 Original-Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-2cb81c0ecb4so3547462a91.0 for ; Mon, 12 Aug 2024 03:13:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723457611; x=1724062411; darn=gnu.org; h=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=XkpOBECdJTLeDliOTf59e0bQIwENlN77x2RiUnPIJtQ=; b=QIs8aNALA9P2ycmlPcAxfWCrK/XwYqBGRgnB2btyKXB6Zs511uCXbmqEKS1hlsaDpe /eLbKTHRXZ4NRKIfa8D/2BjdX3tq3nttPkelANSNGbW2d8KPhkJXUo7b5+bvhri4L/fE A2NJi2WL4KffWWwlfIw3XjcpgzF3bVPRSGG+hrV08qe1cAHG/zQxAFiAPMVtBW29V3dL HEtxAcUegzVByrNA8N1iBJ0uajgi0d1ZaT/lJDQX/OLrWa7S9fOPO1U83mWOy2gdKxmW 92g0oD8FxqvAtASqTL3k9UXwxjfSzoc5TepJ8EyBuTv6j+f64QoRfWAa9GLT3bNgKUOt PwDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723457611; x=1724062411; h=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=XkpOBECdJTLeDliOTf59e0bQIwENlN77x2RiUnPIJtQ=; b=qaBT/KR1tJZGvsjLFHyh0DK6pASBeuwyDAFDI9SYChpb80/iYAC+AvwqlQM416uv6L q3GCGN3OI7ok6oXpj5fTMAmBhfBkUwsW6xu056DThJui1VvKIYinXuu8puwJ8wK76D7T o33uesMnq60orBxCKhHGnGIBo0oUOHAknDyAVnDP4YGYdsFsT7N7DHkti5KL97OnfYUA eLh1mAiPOS4Y5cfJma7K3fOvhd6P7EBsQaSI1FtcNIGq/1tIwGUFV+VC3+MAU9NcjDOJ uDTWCTrfL0zqnlGZYwLShV+r/Rt7DDwwUd3U7s4X8/8lzP9H/ANMIE6dGnYIwgaWm0of MpFA== X-Gm-Message-State: AOJu0Yz5UPFRb6FLEnbgpyBjuU729AkYVWobkyuJCliKcls1jpj3Pnq4 SLTvt3GDWU7riwiCDeSh+uVMfRAotKiNt8RddNQOLefxojrQm4ku8HJE9Jyg X-Google-Smtp-Source: AGHT+IErLVbzXDT6o8bZ312mn/CaIxihY8uSwdQ5Ec0/8AR+sz3wpGf8VCthOZEWWNVRqYKAOUXQQg== X-Received: by 2002:a17:90a:55c3:b0:2d1:c9f9:e871 with SMTP id 98e67ed59e1d1-2d1e7f07945mr14207445a91.8.1723457610696; Mon, 12 Aug 2024 03:13:30 -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 98e67ed59e1d1-2d1c9c847b9sm7781237a91.23.2024.08.12.03.13.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Aug 2024 03:13:30 -0700 (PDT) In-Reply-To: (Heime's message of "Mon, 12 Aug 2024 09:34:35 +0000") Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=joel.reicher@gmail.com; helo=mail-pj1-x1034.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:147625 Archived-At: Heime writes: > On Monday, August 12th, 2024 at 11:41 AM, Joel Reicher > wrote: > >> Heime heimeborgia@protonmail.com writes: >> >>> I made this interactive function that adds items to imenu >>> menubar. >>> >>> But I want a rescan to happen automatically rather than having >>> to do it after I call the function. >> >> I think you mean you want your function to do an imenu rescan? > > Yes, the function changes imenu-generic-expression and I want 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? Cheers, - Joel