From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: michael-franzese@gmx.com Newsgroups: gmane.emacs.help Subject: Re: Determining existence of text following point Date: Tue, 18 May 2021 01:15:09 +0200 Message-ID: References: <87cztpx8oz.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1589"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Skip Montanaro , Help Gnu Emacs To: Eric Abrahamsen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 18 01:15:47 2021 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 1limSg-0000FK-Hn for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 18 May 2021 01:15:46 +0200 Original-Received: from localhost ([::1]:39652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1limSe-0007yb-QB for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 17 May 2021 19:15:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1limSK-0007yB-4c for help-gnu-emacs@gnu.org; Mon, 17 May 2021 19:15:24 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:54707) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1limSI-0001Ah-7a for help-gnu-emacs@gnu.org; Mon, 17 May 2021 19:15:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1621293309; bh=/dtWigFHFX3Fyejhk0QyClhBgiKIleW9PdxtoQaWkwo=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=gRnUMUAhdVCH/nmzbVrBsP75ZAWZIhB+T8IbWDXShKZFDofFTmGpHunEogTbK6Vy+ EnkRMHTpm5v0tRK/82+8Rz4RjownJb0NokxeoA1hYZ8w/Vo0j+5o2FNbm79S7L9EXR UMc7ONY+/DQl57F1+WLpbHxnbKSdh1XHoVlSyGTU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs06.server.lan [172.19.170.174]) (via HTTP); Tue, 18 May 2021 01:15:09 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <87cztpx8oz.fsf@ericabrahamsen.net> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:hflkP6sfE9g09KVwYsBE4Joa6LoCmjFXeWvRTEJr0j7fZXQWrAbNlvOjV7x6Ydm+UG8N9 LZQzY/UAdWpN3dK5s9G73dn9InaIDbHyUUx4guXF/V0JOvMriJ7BuivbzGOY7vfxhTHNTqhO7Aem FSMREw8HiqKg51Jw3TQyEBeu0V1SB8Xkiq6XCR3U+LyjkvSoCgWKmwqV/+bT7ufLtSD0voMN8i27 4Xh6Iw+NPOOk7KjAN4Tr8djDgI951tdrTLnRg83poyKsL8SAm6tt6dR3V63nu2NyjG3lEOYmmoC8 /I= X-UI-Out-Filterresults: notjunk:1;V03:K0:XbrjfdB63Xg=:lQ9guyQDzn+YV5XjLqnoE2 wwjxKJTdgTK1zEKn84Ylto/JQHA8RqJtS7q6kjCjgS2mxrf8AdBcQ+TBCKzmewkGUhI0YkQ8p 2WZ2Dpj+V1iemVMV/Mo9nXyfCAzvQrCGUF9ACFKk2fFo0V0FKL+aXoWHavRTrc+5PbubgeSNt MagKkPumeV0cd+qhCmf1cuQLrgOHOIIQtewDzJub8JNY341LPkEIRnWDtOAKKdcItfH+LG85C q1TJOohkkBc48rv0pmcI/jaSDbfs1aGOtA5PxnWsPEyperEJwa1psk95jYzyagpSOkB4UNT9d /Hi5MlVoBK7f9iUY2FD3lFtW1nr1h6r+iDej2IRcA8c7ECB/1K71jU/dDhwxomHV1gpic6bVH A4W8zr+YW0NGub3FzcJnUbShYjOmIfZlXVM1xvR5fWpyYuxXk94MTVmyUcUDanaYTv85GNEAk eadw7KXpcqHazAkIHDBCq3iGcNXZKYjQ7AENCi6aQ7jeKI/b9O0jctqTqXivU/ChNBBif7cNx IdPIQ/+SsEoMI33daWnLcyrj7r5gCqQXUUL5FVn+oxNkqWjpr30LoxBi38QP3/Y0c0tlorWBz XjQNxW3tqPdeI32NiuHFVCRqyfdt2qj+XqlVt3LuL/obMBSxDEA8ac9su/z1d8CFvUjnvsMYm AEdLaQZpY2rZmP2wX30r3BeurzqxenKY8a3145EoD0fGRO1nkYZdzuXlaBnlMDABFLnpiOdkY F0BS7Vi+HasCyHRukWn75GnMGcKhGSet/AnLadUV5E5xVRzdzgsPO1zupwZvdmmeMiH4ZxZK Received-SPF: pass client-ip=212.227.15.15; envelope-from=michael-franzese@gmx.com; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:129844 Archived-At: But if there are only empty spaces it is ok too=2E > Sent: Tuesday, May 18, 2021 at 11:05 AM > From: "Eric Abrahamsen" > To: michael-franzese@gmx=2Ecom > Cc: "Skip Montanaro" , "Help Gnu Emacs" > Subject: Re: Determining existence of text following point > > michael-franzese@gmx=2Ecom writes: >=20 > > Would like to delete and insert a string "s" only if there is no te= xt > > folloming point=2E > > > > (delete-region (point) (line-end-position)) > > (save-excursion (insert s)) >=20 > There's a function for this: `eolp' >=20 > Return t if point is at the end of a line=2E > =E2=80=98End of a line=E2=80=99 includes point being at the end of the b= uffer=2E >