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 00:31:01 +0200 Message-ID: References: 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="39641"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Skip Montanaro Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 18 00:32:26 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 1lilmk-000ACZ-Om for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 18 May 2021 00:32:26 +0200 Original-Received: from localhost ([::1]:49874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lilmj-0002KG-Rt for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 17 May 2021 18:32:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lillU-0001GI-Hg for help-gnu-emacs@gnu.org; Mon, 17 May 2021 18:31:08 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:38039) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lillP-00065M-SM for help-gnu-emacs@gnu.org; Mon, 17 May 2021 18:31:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1621290661; bh=dBcgA+Eew5mYGYSLZYk/exVrIFL9AOEZNPMPImC9Gy8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=ixYZiCZ7ztQxlfKyEWUHU3NjRzEBb0L4i4dGw/R29Vk2YMMXlvNMxS/imIk2sYVI9 24JoqCm8GVE2unn0nG2SXeaRBpnCPpEFXofIoZ68hY1mI8F/3+Bxg187nMInzUjDom Y1mffnnDSIKVGF226Wep+YLDn7aPB6ZEPZI0s444= 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 00:31:01 +0200 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:tGzdGWNvwrOwTmGulxcxMc2VyQ81JKa00Yvmo1/EDeParHFpsthMdzZ0athk+qyd87PYW dVD8FHvkivXVH1SZKUPwC/kPp+smPPq2lOffi/Ilh6Zhf/OcN974qrktl3wqKgN6FBFh1ukGmGcY jOLKq6ipVRa5PkVVLeZy9OhM5Tf2G5OWQ4l0Gro1+DwQMWM4ewLzV2LlNOiabgTPZ9kCr/78VAK5 uxPuosaJOOoUHNiZWwlrcMav6dAjMyH6c0NcmKCtbxYbiCNQzwex+YD025AXVcCJKuEdyc0qCkpB YM= X-UI-Out-Filterresults: notjunk:1;V03:K0:M6fJOKLSDWk=:XqzZMlmMesLSQv9iHaEIqV JRPtljurgMBKkdQ2ImZkNyTCjfiUTzrqIHqkTMqi+0aHUydFAljjjM/PX5Twg3bN0RnV3Qsju aAgx6R+BqxombKM8AHGNj9N2kLNirGN+JiEuYXJKyStXqclGFRyROiPp/NsKDR1oKoHd/y3oP 0NWqst80pN03sSeVi9xMwBjN2x++9/wsbie3QRXDRfNL8shPnzYFNgXYs0Ig8TM4r1zYPzHt2 FgqU178P2mE3sBbU1qXFU/ioqCe6APDcLfL/ibIDW6E2ofvtSqKveqOejJAtL5eaop4tSHXV2 dN9R4HZrot8fotH0RPQOQDmmnmZSrHKcEk6FeeSBJbha3U21nySx01v8hTpTUituEaRAiLnks MNIX/HfxH6tiP4eTfZ5xr47UgfXY7zCgArDjtJLPAQg3t5OjbmpaYX4nGGVWQS2h4W1SoaccV jp/Jy8FnP4spmSfsrY9XrdcP8byJUA93X2u26MxMlTwVlKYylgzz4blq3Zh/GTA0Op6P3t2Z+ 6SJSjr7V8cpTmvt58erdIj2kxu75VzrZQA/oYMWj9ALm5oGfSE1QaY+K3sbUBh1AKwr+Uwwg0 1UpTdEP6PxajcBP0VqnB+OUYCAxIBHu+AOCw8ZDxh97NxpnLA1vYfNfaHVfoCNYUgvn0gq5ft DbwYIjkRNuJxcccC36x7YIb0uTbURNM0hokQA8T3YDY0HZehTQ4nUjeJ+3zMwQr9qyGsJD6Cg rFht1a8N2ynibI3e5lUr/XtowrE5H0szaZL1nmivdoTPZzJmkuExPc5C8YTf20VC4zH4wNV8 Received-SPF: pass client-ip=212.227.15.18; envelope-from=michael-franzese@gmx.com; helo=mout.gmx.net X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MIME_HTML_ONLY=0.1, RCVD_IN_DNSWL_LOW=-0.7, 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-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:129840 Archived-At: Would like to delete and insert a string "s" only if there is no text folloming point. (delete-region (point) (line-end-position)) (save-excursion (insert s)) Sent: Tuesday, May 18, 2021 at 10:02 AM From: "Skip Montanaro" To: michael-franzese@gmx.com Cc: "Help Gnu Emacs" Subject: Re: Determining existence of text following point > Is there a way to figure out whether > there exist any characters on line > after point. Maybe (looking-at-p ".") ? Full details on regular expressions searching here [1]https://www.gnu.org/software/emacs/manual/html_node/elisp/Regexp-Sea rch.html Skip References 1. https://www.gnu.org/software/emacs/manual/html_node/elisp/Regexp-Search.html