From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: master f117b5df4d: Add new functions eol and bol Date: Sat, 20 Aug 2022 21:26:59 +0800 Message-ID: <87y1vjkpuk.fsf@yahoo.com> References: <166091536530.20326.14174671546998200051@vcs2.savannah.gnu.org> <20220819132245.AE2BBC0088A@vcs2.savannah.gnu.org> <87a680v004.fsf@gnus.org> <87edxbmiz0.fsf@yahoo.com> <877d33qnfg.fsf@gnus.org> <8735drm9he.fsf@yahoo.com> <874jy7oyrl.fsf@gnus.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="33258"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Stefan Kangas , emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 20 15:27:55 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 1oPOW3-0008Sv-3c for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Aug 2022 15:27:55 +0200 Original-Received: from localhost ([::1]:48100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oPOW1-0003eu-ON for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Aug 2022 09:27:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPOVT-0002xE-1C for emacs-devel@gnu.org; Sat, 20 Aug 2022 09:27:19 -0400 Original-Received: from sonic310-23.consmr.mail.ne1.yahoo.com ([66.163.186.204]:33258) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oPOVQ-0005M4-It for emacs-devel@gnu.org; Sat, 20 Aug 2022 09:27:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1661002029; bh=7ORLUSXmTDHiJkQiAYuu7RQurd+PTC4BWMSx2YNVkQo=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=M/toFVmbBs+VHy6aQVV5jSn3MSqrmFZT3lXqigfa94H8OMo2O8JS5ALMu/Faceh/R0huhi04ta+nKvT9UoRsictpDSMVxlDqSGyLiIwItUk9qhKVnRPYaRClvf0zuLPaP7Ji8GbOJWT0qhCSGhPXTeGO+OLcsiuJ+P0HhmOrPl8oc2Cv9UOunh2CwYdT/1WxQcN45gSygGYAsKMy3NmDaO4tyx9ILxInD5bzEuPc3vJ8mQwgulqHgwhYd8P+MQd0HKe9htYcH+kb9zibvJoNUybahhfrNd9g4rqY+LM03teobVqz8ZTgnqbcFIR9BWnFGvj7REhjmDfuc9fn8T43iw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1661002029; bh=pdaij9JI8xZE3rM5LlpKjrZeolkxMQPBRTU+aN6ZaBI=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=LvS+YyMberghTBwMWBAah9EFbBpR5jShab0xCpwQA3XneBjpKpn4+xDJU7NQtW21lOj2+PVVUj0wgsEtCsjnJTBnVIe/ZxXQxgJmuLDYNPIMCkCKuO+bY03e5My+euAaXfy6fro5xPsmfjaqvCWQNzxS/hM4NFef3GuFcHin8wVITDJXyozs2iE17kHi7yXPLnQq3Dh+/LD+7GT+G6e8K6ZSvC1kJAFwUQAPDoQ5oJnDVKDQFKDGpEHAhde6LpwXo3xcfrWPgyLtDjFuFjDiTTvm9JVEfI8Nt/r6B7e2l6jM/7R224KGygh14Xyn+tKu0f8RqWMsSwqzzD6UQ7TTiw== X-YMail-OSG: yIq6XJ0VM1lRwKnHC8i9.MfajIgX5H_s778Eju.ufQpIF_7AHQeEeDjgAqHJHP4 ZW4eQb8auHL8TRLGvmaO_W60xBD0NZBBySTLWrP8FANcuZt2MS0rLvjKVQXBaxOU3FWf0OlTSE.c P4zU.0gweGPIDQ9BGSQ2BvFSthfEQ7cQB9AL9t31MS9OXL1nCT7aURm5J.lumW7nvSZtnlbSRaFR gGaIVuTblyg9ed4iQMS2IldkeJY0iD_kKSdHOlm1aAk7v46gFvF0MYiroik.I6LpdKarzfALuRSO dS9JxdCy0.1XlO.GjOIIDuSGO3bN5q.BXkIrprpbg8wPVG7GRsR23bPyPG3gSIddvsAQP0D46giI .6Z7_pNw.vrC_EmxCha16a7x4ZjY24Ule8MVKQZPwuU8LuRyheP.mGlySntMHtAWK4XlIlNP_ljo LcIwgdHRXKSDVYJw91m76Hi98vDr_YpJGGTeY5MiwBIYxcYR3.wf1VIHo4VJzdzUvuBhjmEz8eSF pwvxbSbhJHIwMTwtIAv9b8OmsXU5qdv5NzHrV00fWcE9sKOri1FxszumfpBTTW83gKPNwJ5x1jgW oIU.x_AHYkGb2wLvDVNjkU.77g6aXRT3kkG3YVAHsxNN9B8JSGpR04CnhNeooYaMhKW6tNIV84qQ CJWhMzCCi.G2rXy0Orx9QOB4xq2.Gu3f.ThGojosI42K0G1FcjrNRqKbnI_CUTOL.LpA7vXaJosl GCZQbTF6jAjGZ99njdvCLKfnuCPxOjvStnrn9EILfKrgMJUVfRvnb2.mfdBGzeV6vUZJ9zF2tnAj IBQ5FTYQ0KpuuIaaNTavBuifbv0Qd4dqfVQRB5Y.4z X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Sat, 20 Aug 2022 13:27:09 +0000 Original-Received: by hermes--canary-production-sg3-6f58cd9b5-p4pb6 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ddeb485e8a5d6549e46f804e96881554; Sat, 20 Aug 2022 13:27:05 +0000 (UTC) In-Reply-To: <874jy7oyrl.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 20 Aug 2022 15:00:46 +0200") X-Mailer: WebService/1.1.20560 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.186.204; envelope-from=luangruo@yahoo.com; helo=sonic310-23.consmr.mail.ne1.yahoo.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:293666 Archived-At: Lars Ingebrigtsen writes: > Po Lu writes: > >>> I don't think that would be very useful in general -- if you look at how >>> these functions are used, you're usually traversing a buffer, and then >>> you find something, and then you want to do something with what you >>> find. >> >> Fair, though I meant the optional arg POINT specifically for >> "bol-from-point", mainly to solve the naming problem. > > Sure, OK, but there's already an N optional here (which is used > surprisingly much), so that'd mean `(bol-from-point nil 2)' (etc) a > lot... How about adding POINT after N? So it would be: (bol-from-point 2) or (bol-from-point 2 point) but then I guess the name should be "bol-at-n-from-point" instead, which is a bit unwieldy...