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 02:37:25 +0200 Message-ID: References: <87cztpx8oz.fsf@ericabrahamsen.net> <87zgwsx5r3.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="17059"; 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 02:38:13 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 1linkS-0004HW-Kb for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 18 May 2021 02:38:12 +0200 Original-Received: from localhost ([::1]:60312 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1linkR-0000lD-Ns for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 17 May 2021 20:38:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1linjv-0000l4-PU for help-gnu-emacs@gnu.org; Mon, 17 May 2021 20:37:39 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:40639) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1linjt-00040G-36 for help-gnu-emacs@gnu.org; Mon, 17 May 2021 20:37:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1621298245; bh=mThaBn/I2q5USj4bjnOlkFnx/TYQ8543qBVdfgCLDvY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=f8NCBQem19d2xbJFE4MiGUmXVDJm5LJomhUrtMcZjXftrImUgXxTUQEf1PPU400N6 ttiESLlRiSEwFnRP7FPYBBSlzlSYX2TQNJZItQfdpMBnNppxj4y6sTjCwLOg0fy+v1 v6hP2bELymQGQxY7Wa4HjGgXLocgpG5mH4N3pebg= 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 02:37:25 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <87zgwsx5r3.fsf@ericabrahamsen.net> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:WSx2TCDba0j5+CoTcFicecdjpciykq1ih1kJZCah+5rxj/EI7ui0xunnTkzMwF4rTM9BL mNZ7ZUW7EekT0R2yT1DC2bWQWR8PLJ6fgYs9UtZ4Y9BGXVo2Kz4P4Jmrlt0qU9Tc/t3U1+U38XHb eaUK+lF/Jw5Y04e45GSG3kbXfSEQWMNcrJUnCnd76+bf4VazosOmC2bjHJvkohjDHP4N2ItmnlqJ zzKSgaktTbf+xWL9+p4XDy44rCr4LQ9tAp8hGvh4Rsw05SPnp0hpOV0hms+fHvLcjfG/kI/HJ0ic vY= X-UI-Out-Filterresults: notjunk:1;V03:K0:EgIS5qMT9ZM=:ItDeDrEW0e2w6WsQx5CW0h Y3btnKdkoUjG4RVkZmU1ZcxNyon82KmHUNzWkeFugRtfP9OLBs7KNL37RpbIAte7cWLaVXAbZ 5gq5VtDRC66f/0X2CsIsJlS0KZGNb6XuqMh34+FG+EwVjmP2ScVkdFF2wrgaXZhaLGm6OxvKa evvwZd1+Dx9rZzHwWNVNU6kqomin8iWs9+auNGKyxysVKl2+QLBptgBd8CBZKuXZBOOvGLyjw 0a/2bzUVfimeK+l24XATG16aBHOTa9OhGqUkC1fSI9aNDtlkuWYp1eBGdOhRmkZTx94NFO5qp g5eTgncvVwOc/Gn2vytWz5RlO7I1k/knjeHQzfKbQvhyGsPaUUlIkvvLmb9gbIs9bJJRBQybc hV4fiClsZVAbGwNQNIz74KUCcEBN92IS0uZ88BWYh4rvCiBxe+dsSD9+xq4GZSCCw8Mae9Tzg hJMwFj4lxKdMcC+X16uX7JIiuOOuFE43wf2b2QCGO4splTd4JKRcxHyXvJidM4KuR7Vl/l/nM sE4GwZI2YUq5E1I43pkmliShpSZecx1Fnd+MePKLxIPsIdR/Fnj5l11g0iZaoB9Tv39xAwqk6 xazM3/3Sdp3vUEE4IUoTxMutNXNRqCKtPAJW8zXZfll6JN24G5vnBz1a2br0pIP5LEXwAZJj/ Kch21nLo+t5J1pmDc/h4Zk+agv/G7prCCvDnQ9A8rf+7SlwesOKRTsDHap4d76vh03Qsa3xy0 h25Cnkdt0xtRfrZwvR4kqsr8tFTeNbFu60kvKpWgJtC6yBDd3PJXomdwHdLIOWpNYwOwNrwD Received-SPF: pass client-ip=212.227.17.20; envelope-from=michael-franzese@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-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:129854 Archived-At: > Sent: Tuesday, May 18, 2021 at 12:09 PM > From: "Eric Abrahamsen" > To: michael-franzese@gmx.com > Cc: "Skip Montanaro" , "Help Gnu Emacs" > Subject: Re: Determining existence of text following point > > michael-franzese@gmx.com writes: > > > But if there are only empty spaces it is ok too. > > Ah, then Skip's looking-at is a fine solution: > > (looking-at-p "\\([[:blank:]]+\\)?\\(\n\\|\\'\\)") So this is a condition where I can write my string, because there are only spaces or a newline after point. > That's as a test. Or you could use a single `replace-regexp' invocation, > to detect and replace the whitespace in one go. >