all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Artur Malabarba <bruce.connor.am@gmail.com>
Cc: Alan Mackenzie <acm@muc.de>, Eli Zaretskii <eliz@gnu.org>,
	emacs-devel <emacs-devel@gnu.org>
Subject: Re: Please add comments to isearch.el
Date: Mon, 14 Dec 2015 02:16:31 +0200	[thread overview]
Message-ID: <8737v5ubog.fsf@mail.linkov.net> (raw)
In-Reply-To: <CAAdUY-+-bMigFvDNyeLp3KfW-LsyqtG9Oejxh77FSWVuHvtrKQ@mail.gmail.com> (Artur Malabarba's message of "Sun, 13 Dec 2015 01:01:22 +0000")

> On 12 Dec 2015 11:27 pm, "Juri Linkov" <juri@linkov.net> wrote:
>> 1. Rename ‘lax’ to ‘lax-boundary’ to distinguish between lax at the
> word/symbol
>>    boundary and lax-whitespace to avoid confusion, so rename the
>>    arg ‘lax’ to ‘lax-boundary’ in all regexp-producing functions,
>>    isearch--lax-regexp-function-p to
>>    isearch--lax-boundary-regexp-function-p, etc.
>
> +1
>
>> 2. Try to find a better common naming scheme used for the
>>    regexp-producing functions word-search-regexp, isearch-symbol-regexp,
>>    character-fold-to-regexp.
>
> I think the first two shouldn't even be in isearch.el. There's a ton of
> stuff in isearch.el that's just generally useful in searches (nothing
> specific to incremental search), and should be moved to some search.el
> file.

Yes, everything with the prefix ‘search-’ in isearch.el
(as well as occur commands in replace.el) are here for historical reasons.

>> 3. Use well established terminology that shortens the prefixes
>>    of character-related functions to just char- to use char-fold.
>>    ‘C-h f char TAB’ or ‘C-h v char TAB’ shows the standard
>>    Emacs naming convention.
>>
>> 4. Use the upper-case standard name “Unicode” in the documentation.

Ohh, and I'd add also search-default-regexp-mode -> search-default-regexp-function
that currently causes confusion due to its similarity with isearch-regexp-function.

> I don't see what these have to do with the readability of isearch el, but
> by all means, feel free to do these.

Maybe better to wait for establishing of regular merges from emacs-25 to
master, because I'm afraid that renaming character-fold.el to char-fold.el
now might cause merge conflicts on the first such merge.



  reply	other threads:[~2015-12-14  0:16 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-29 16:34 Please add comments to isearch.el Eli Zaretskii
2015-12-11  8:13 ` Eli Zaretskii
2015-12-11 12:16   ` Alan Mackenzie
2015-12-11 12:39     ` Eli Zaretskii
2015-12-11 16:00       ` Artur Malabarba
2015-12-11 16:20         ` Eli Zaretskii
2015-12-11 16:54           ` Artur Malabarba
2015-12-11 16:56             ` Drew Adams
2015-12-11 18:33             ` Eli Zaretskii
2015-12-11 22:59             ` Juri Linkov
2015-12-11 23:24               ` Artur Malabarba
2015-12-11 23:55                 ` Juri Linkov
2015-12-12  7:25               ` Eli Zaretskii
2015-12-12 23:27                 ` Juri Linkov
2015-12-13  1:01                   ` Artur Malabarba
2015-12-14  0:16                     ` Juri Linkov [this message]
2015-12-14  1:19                       ` Artur Malabarba
2015-12-14 23:51                         ` Juri Linkov
2015-12-15 10:26                           ` Artur Malabarba
2015-12-16  0:51                             ` Juri Linkov
2015-12-16  9:06                               ` Artur Malabarba
2015-12-17  0:55                                 ` Juri Linkov
2015-12-17 10:19                                   ` Artur Malabarba
2015-12-13  3:38                   ` Eli Zaretskii
     [not found]               ` <<83d1uc6sdq.fsf@gnu.org>
2015-12-12 16:20                 ` Drew Adams
2015-12-12 23:04                   ` John Wiegley
     [not found] <<83fuzoojcn.fsf@gnu.org>
2015-11-29 16:54 ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8737v5ubog.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=acm@muc.de \
    --cc=bruce.connor.am@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.