emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add some aliases for re-related functions


From: Eli Zaretskii
Subject: Re: Add some aliases for re-related functions
Date: Sat, 02 May 2020 21:39:19 +0300

> From: Yuan Fu <address@hidden>
> Date: Sat, 2 May 2020 14:28:08 -0400
> 
> While debating whether it’s effective to add prefixes to increase 
> discoverability, lets start with incremental and uncontroversial changes. 
> Let’s start from re-related functions since it seems that many people agree 
> on this. Here is a list of functions that I think could benefit from an 
> alias. 
> 
> replace-regexp-in-string      re-replace-in-string
> replace-match                 re-replace-match
> string-match                  re-search-in-string
> string-match-p                        re-match-in-string-p
> match-string                  re-matched-string
> match-string-no-properties    re-matched-string-no-properties
> match-beginning                       re-match-beginning
> match-end                     re-match-end
> 
> looking-at                    re-match-after-point
> looking-back                  re-match-before-point
> looking-at-p                  re-match-after-point-p
> posix-search-forward          re-posix-search-forward
> posix-search-backward         re-posix-search-backward
> posix-looking-at              re-posix-looking-at
> posix-search-in-string                re-posix-search-in-string

Is "re-" really a useful prefix?  What newbie will type "re-" when
they need regexp-related functions?  Where would they get the idea
that "re" stands for "regular expression"?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]