From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57876: [PATCH] pulse-momentary-highlight-one-line: Act on visual line Date: Sat, 17 Sep 2022 14:49:44 +0300 Message-ID: <83leqi1aqv.fsf@gnu.org> References: <87illme7fe.fsf@gmail.com> <83sfkq1gu0.fsf@gnu.org> <87a66yclqr.fsf@gmail.com> <83mtay1c38.fsf@gnu.org> <871qsack44.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23101"; mail-complaints-to="usenet@ciao.gmane.io" Cc: public@protesilaos.com, 57876@debbugs.gnu.org To: Augusto Stoffel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 17 13:50:13 2022 Return-path: Envelope-to: geb-bug-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 1oZWKr-0005to-Lt for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Sep 2022 13:50:13 +0200 Original-Received: from localhost ([::1]:32868 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZWKq-0007Cd-Kc for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Sep 2022 07:50:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZWKg-0007BQ-Ku for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2022 07:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46216) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZWKg-0001Zi-CZ for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2022 07:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZWKg-0000XH-7Q for bug-gnu-emacs@gnu.org; Sat, 17 Sep 2022 07:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Sep 2022 11:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57876 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 57876-submit@debbugs.gnu.org id=B57876.16634153962042 (code B ref 57876); Sat, 17 Sep 2022 11:50:02 +0000 Original-Received: (at 57876) by debbugs.gnu.org; 17 Sep 2022 11:49:56 +0000 Original-Received: from localhost ([127.0.0.1]:45294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZWKZ-0000Ws-S6 for submit@debbugs.gnu.org; Sat, 17 Sep 2022 07:49:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZWKX-0000Wc-09 for 57876@debbugs.gnu.org; Sat, 17 Sep 2022 07:49:53 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33076) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZWKQ-0001ZC-IL; Sat, 17 Sep 2022 07:49:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=jx4wCwMFl8+pnrXHW9tk60YNR8L1G0mVNNfrlM/IBF8=; b=BK+KXwkpKG7T YtjIad66xaBP6v8kZI9qiJEI/JCRg0cwKjCgDCRF8VvMwPhf47bhMwDBU/uHqemZ4ei+cnAyLyxCT V78Di4m/+48DoX8HfMXFzqK3ms2o74NiIuzNcfkWFfUZ8ycbsABBDTKmQ6y6dOyRu5Ty0yxIz0vry ZGj/IFhKI5U7wK4YWMXO1p5HBRBNjDtz1dgA/HOjdrP8SeWWEvZSvn/tarnja/5r5XMcRXbQihb+G Fjcm+snU/ub+7Tz9m2gqTOt5D0bDCbM7TzaIoCRhU0+rCLR51IOnGt+mDtwYitMoz8dYVY/8Vs7a2 erUJSgZ4G9kReRD612tijw==; Original-Received: from [87.69.77.57] (port=1083 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZWKP-0003TQ-1C; Sat, 17 Sep 2022 07:49:46 -0400 In-Reply-To: <871qsack44.fsf@gmail.com> (message from Augusto Stoffel on Sat, 17 Sep 2022 13:31:55 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:242865 Archived-At: > From: Augusto Stoffel > Cc: 57876@debbugs.gnu.org, public@protesilaos.com > Date: Sat, 17 Sep 2022 13:31:55 +0200 > > > It should be possible to disable fields temporarily by binding > > inhibit-point-motion-hooks, right? I prefer doing that to reinventing > > the wheel of moving to the edges of the visible line. > > This variable is allegedly obsolete since Emacs 25. Sorry, I meant inhibit-field-text-motion. > In any case, the patch is really trivial, so how would this be > making the code simpler or more robust? I just explained the reasons above: we have these utility functions for a reason: so that Lisp programs won't need to reinvent how to do what these utilities do every time.