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.devel Subject: Re: Searching for line beginning Date: Mon, 15 Aug 2022 14:29:45 +0300 Message-ID: <83lerpiw2e.fsf@gnu.org> References: <831qtkm9ni.fsf@gnu.org> <878rnqq1qr.fsf@tcd.ie> <83pmh2kfaj.fsf@gnu.org> <8735dyhlud.fsf@gnus.org> <83o7wmkeqo.fsf@gnu.org> <87bksmf7vu.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25227"; mail-complaints-to="usenet@ciao.gmane.io" Cc: contovob@tcd.ie, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 15 13:37:15 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oNYPC-0006M7-R7 for ged-emacs-devel@m.gmane-mx.org; Mon, 15 Aug 2022 13:37:15 +0200 Original-Received: from localhost ([::1]:37882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNYPB-0003R3-KR for ged-emacs-devel@m.gmane-mx.org; Mon, 15 Aug 2022 07:37:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNYIJ-0000kJ-0k for emacs-devel@gnu.org; Mon, 15 Aug 2022 07:30:09 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36660) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNYID-0006jI-JJ; Mon, 15 Aug 2022 07:30:04 -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=vbSh1RBgfMh5TERsXJ0JYCQHBxBpKTq6hR1yKT6w6sw=; b=TcBY2/pFk1LJ saSQrWW/KoIvtWAqX97uIyVik1+j86MqviApgt99TFUe4ZIO8x6OzQr6rcUyXs0IwC03yB6l1Yq21 qoYOxBSyrmmlmSdcMqhcVXravVzewT8cRDw8sg/cfDeTanix4y+IbWWBJAlierJgxpisCPBHCdVW1 bltr3JiJT2WIjFRT7cT1VBUoVUqiysvkseI0ZkiodxOWoza/j5zAwVUz2bZEVeCZxAAWYiVAvWq7w GjoL0URxHOSaeXikTGhSHKDik3U49UHiXnK22/w6et88ROssaPxXyA4pXoGKg2lYLgucb4/hsYBiu cGi2yGOxYrOSt+M1ehaB4g==; Original-Received: from [87.69.77.57] (port=2967 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 1oNYIA-0003Hr-It; Mon, 15 Aug 2022 07:29:59 -0400 In-Reply-To: <87bksmf7vu.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 15 Aug 2022 06:28:05 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:293475 Archived-At: > From: Lars Ingebrigtsen > Cc: contovob@tcd.ie, emacs-devel@gnu.org > Date: Mon, 15 Aug 2022 06:28:05 +0200 > > By the way, I see that Fline_beginning_position/end have grown field > capabilities while I wasn't looking (in 2000). I.e., they call > Fconstrain_to_field, which is a pretty complex function. You can disable that by binding inhibit-field-text-motion. > The field stuff only makes sense in user-oriented buffers, while we use > line-end-position extensively in Emacs to parse buffers in general -- > but we get this field penalty throughout Emacs. line-beginning-position is also needed in handling UI, so it needs to serve double duty. If the application doesn't need to cater to fields, it can disable that, see above.