From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: master f117b5df4d: Add new functions eol and bol Date: Fri, 19 Aug 2022 09:00:29 -0700 Message-ID: References: <166091536530.20326.14174671546998200051@vcs2.savannah.gnu.org> <20220819132245.AE2BBC0088A@vcs2.savannah.gnu.org> <87a680v004.fsf@gnus.org> <87tu68tjfd.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28386"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Aug 19 18:07:29 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 1oP4Wu-00078Z-LE for ged-emacs-devel@m.gmane-mx.org; Fri, 19 Aug 2022 18:07:28 +0200 Original-Received: from localhost ([::1]:41562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oP4Ws-0005XY-Ak for ged-emacs-devel@m.gmane-mx.org; Fri, 19 Aug 2022 12:07:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oP4QK-0001mH-1I for emacs-devel@gnu.org; Fri, 19 Aug 2022 12:00:40 -0400 Original-Received: from mail-vs1-xe2e.google.com ([2607:f8b0:4864:20::e2e]:46821) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oP4QI-0000yJ-1y for emacs-devel@gnu.org; Fri, 19 Aug 2022 12:00:39 -0400 Original-Received: by mail-vs1-xe2e.google.com with SMTP id d126so4874663vsd.13 for ; Fri, 19 Aug 2022 09:00:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc; bh=3zv2CDV+M7SZfrpYS2TDwqwV2W7oq5KMsPXtGN/TDAU=; b=btw+ncQI5iY4a8LZWjVPAuvdglXhL3RFLsGXVL3b+zIdBRNbrzaxccL6WCHO7QK2G9 bDKuJyferwQwGYLJ84Rx/IHN0ihwFhoWQ4NOpAZUrTf3CbYvDVFZeKcwrYqMGyR/s8lY gHyCwqmrTIhIXhEDN4E99mojmajJdvFUqYMA9IKiGF7b8cOxfBfQtig2c9VuCpQuJg/s kRlWf+htLjCVuedHthWYE9ZbtmC0mjP2JoH0efO6FJxPWpJ8b49RameODKNnKvRvktip /GepXW0zO14TaG7H/5EKbpjunWUOHDvMxqX+GrMHwafkP/JKT5bEwtL+COAMIssNjfvH lo1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc; bh=3zv2CDV+M7SZfrpYS2TDwqwV2W7oq5KMsPXtGN/TDAU=; b=4KPR8yfMO+DZyZTdAX8fc+lA449jR45s1uFGEhVFbOe+EpDcwbyvBs89jOp0T10tXO jX3hvJWqTe+b5rx7Yr44xhLV1lnMR1KkfZZCWRK9lUOUwxxRZ6/CPfpXRmoAxy6LIU4a ORrk/VXZWSONlZTEukNawjYqcHD/tCgOP6ailOJbaV3xOZq1gWHTjOFbf5xg+mz/I/OS vecDHikNxukSOsBBUE7yv0NByvI9fmlWtJO+BGUO5Q5pXJObOh7PBhn2gBh23Y9zmn7e FNPuQ9gZmN3jY//YxECJaRQg4CQ/I0iuHlW6qos11WcrQv1YiZrDBJ+YB01c/1Csfp3L ZwkA== X-Gm-Message-State: ACgBeo0Oog+S/RXJSZOLaSB+xM5+0BFT7OJ2HsPZw1MfUcilYhY+od1n Y3u4O1jn9le8RRtlRZ7OvcBoMZ4JwA0AtHdqQtk= X-Google-Smtp-Source: AA6agR4IrQ68GX5wHuhXtdtbRDV/I/RhqgzLMLB2TYnOBs+7QC67Ju3OmAJ26iIiYgSIf0sGVZB2S8/4sxjp0V/Z+do= X-Received: by 2002:a67:ff85:0:b0:387:473f:9056 with SMTP id v5-20020a67ff85000000b00387473f9056mr3178682vsq.85.1660924830422; Fri, 19 Aug 2022 09:00:30 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 19 Aug 2022 09:00:29 -0700 In-Reply-To: <87tu68tjfd.fsf@gnus.org> X-Hashcash: 1:20:220819:emacs-devel@gnu.org::y34MqHqMISB+WdC0:7r6K Received-SPF: pass client-ip=2607:f8b0:4864:20::e2e; envelope-from=stefankangas@gmail.com; helo=mail-vs1-xe2e.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: 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:293646 Archived-At: Lars Ingebrigtsen writes: >> How about `point-bol' (while making `point-at-bol' obsolete to avoid >> confusion)? > > That's a possibility. But then somebody would have to take on the > dreary job of going through the >600 places where point-at-bol/eol is > used in the Emacs tree and decide whether to use `point-bol' or > `line-beginning-position'. We could make the task less daunting by starting with something like: diff --git a/lisp/subr.el b/lisp/subr.el index cd6a9be099..4237031ff3 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1912,8 +1912,10 @@ 'store-match-data (defalias 'chmod #'set-file-modes) (defalias 'mkdir #'make-directory) ;; These are the XEmacs names: -(defalias 'point-at-eol #'line-end-position) -(defalias 'point-at-bol #'line-beginning-position) +(defalias 'point-at-eol #'line-end-position + "Obsolete; use `point-eol' or `line-end-position' instead.") +(defalias 'point-at-bol #'line-beginning-position + "Obsolete; use `point-bol' or `line-beginning-position' instead.") (define-obsolete-function-alias 'user-original-login-name #'user-login-name "28.1")