[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Determining existence of text following point
From: |
michael-franzese |
Subject: |
Re: Determining existence of text following point |
Date: |
Tue, 18 May 2021 00:31:01 +0200 |
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" <skip.montanaro@gmail.com>
To: michael-franzese@gmx.com
Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
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
- Determining existence of text following point, michael-franzese, 2021/05/17
- Re: Determining existence of text following point, Skip Montanaro, 2021/05/17
- Re: Determining existence of text following point,
michael-franzese <=
- Re: Determining existence of text following point, Eric Abrahamsen, 2021/05/17
- Re: Determining existence of text following point, michael-franzese, 2021/05/17
- Re: Determining existence of text following point, Skip Montanaro, 2021/05/17
- Re: Determining existence of text following point, Eric Abrahamsen, 2021/05/17
- Re: Determining existence of text following point, michael-franzese, 2021/05/17
- Re: Determining existence of text following point, michael-franzese, 2021/05/18
- Re: Determining existence of text following point, Jean Louis, 2021/05/18
- Determining existence of text following point, Christopher Dimech, 2021/05/18
- Re: Determining existence of text following point, Jean Louis, 2021/05/18
- Re: Determining existence of text following point, Jean Louis, 2021/05/18