From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud Newsgroups: gmane.emacs.help Subject: overlays and movement Date: Tue, 28 Jun 2022 11:17:15 +0200 Message-ID: <87tu855eqs.fsf@elite.giraud> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32189"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix) To: "help-gnu-emacs" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 28 11:41:01 2022 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 1o67iP-0008Bf-Ck for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 28 Jun 2022 11:41:01 +0200 Original-Received: from localhost ([::1]:47628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o67iO-0006Vn-Av for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 28 Jun 2022 05:41:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o67LX-0002T8-9k for help-gnu-emacs@gnu.org; Tue, 28 Jun 2022 05:17:24 -0400 Original-Received: from ledu-giraud.fr ([51.159.28.247]:1780) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o67LU-0004Cb-3w for help-gnu-emacs@gnu.org; Tue, 28 Jun 2022 05:17:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=UU7mjH6upjGa997k /qnIQHE2bIHzXhFdpuihONcybLg=; h=date:subject:to:from; d=ledu-giraud.fr; b=ROUI3HFug/ZiuaDldVmr4/rWwCf8nOF5QqhYewkN4tkzMirRdV 3/ePJ89lyLL6ohGttj41ckM+nuzVwGFQUh4o8cUSdz0vDRIoTtnXPzBtRPqR8amG+/Dpp5 FUHINdS0qKxWqapdlvrBeL+CvKU5pOso2fgqf4NUgQ5xsuwJdbaqIEiIrzEEmYWVTXyTeA N5dPJMpY/CyUI+PEpLXe4vnAqODQBcafmpmiDzLQQmntJTM79VOIdS4PLaXLgazeB3QQBd cp3rf0x36stU+ICuoQzweh6az5i+VvktvBHjeGubA8o6j4UopIeFtktGFw+gRmDcbpZXaa GoldXFJBojjA== Original-Received: from elite.giraud ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id e44ca88c (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Tue, 28 Jun 2022 11:17:15 +0200 (CEST) Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@ledu-giraud.fr; helo=ledu-giraud.fr 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, SPF_HELO_PASS=-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" Xref: news.gmane.io gmane.emacs.help:138150 Archived-At: Hi, I'd like to have some overlays (just 2 in fact) that have to be updated each time I'm moving into the buffer. What is the prefered way to do this? I have tried to add a hook on `post-command-hook'. It kind of works but it seems to lag sometimes and the docstring says that this is a bad idea anyway. Best regards, -- Manuel Giraud