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: Re: overlays and movement Date: Tue, 28 Jun 2022 14:12:09 +0200 Message-ID: <87edz956na.fsf@elite.giraud> References: <87tu855eqs.fsf@elite.giraud> <877d5183l8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19267"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix) Cc: help-gnu-emacs@gnu.org To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 28 14:13:44 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 1o6A6C-0004qO-0u for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 28 Jun 2022 14:13:44 +0200 Original-Received: from localhost ([::1]:46996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6A6A-0002ry-Sd for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 28 Jun 2022 08:13:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6A4p-0002py-Ee for help-gnu-emacs@gnu.org; Tue, 28 Jun 2022 08:12:19 -0400 Original-Received: from ledu-giraud.fr ([51.159.28.247]:8030) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6A4k-0004Zp-44; Tue, 28 Jun 2022 08:12:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=AGs9Lxx+aOwR5Vof jnX1WHubdSmjvKvTQzxVsxC6uKE=; h=in-reply-to:date:references:subject: cc:to:from; d=ledu-giraud.fr; b=gelO6M80IMVNk4ZrYqyZjXDC534rmbp26b7+4Y FDJlZeT7qXUO8DkztlXmc+6Rv3qqedIS/b0dl1UjM4WDptl5kayBAfz/d2YxynKQZuP/tp Pij03BgNgYnQNhlBX/xBNvDoL1JjVIt+KphsvI09AsyOVcw5GZtGY+z3OZZ1JFA/nBNWyK JymMFpyXXDR5GrF8DLZo7th9uQBaE/aCan4mFhU3O/UlA0h4DJZAgjQH1KBbfMlAOk0bVp sVIPXS7olwbqBR7qRooiYPwW5lVlxc6umbz22q8eWdOr+TrYUJSppb3L1kvBmId5mF0M5F qPbBXQ3SmjVkYXoZAO2kWZBg== Original-Received: from elite.giraud ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id ab773674 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 28 Jun 2022 14:12:10 +0200 (CEST) In-Reply-To: <877d5183l8.fsf@gnu.org> (Tassilo Horn's message of "Tue, 28 Jun 2022 12:39:38 +0200") 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_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_TEMPERROR=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:138158 Archived-At: Tassilo Horn writes: >> 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 does that mean exactly? Do you mean "the position of point changes > in that buffer" or "the buffer becomes shown in a window"? Hi Tassilo, Sorry, I was not clear. It is the former. I'll stick to post-command-hook then but try to reduce the amount of computing. Thanks. -- Manuel Giraud