emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#35498: closed (26.2; doc string of `isearch-regexp


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#35498: closed (26.2; doc string of `isearch-regexp-function')
Date: Fri, 03 May 2019 09:25:02 +0000

Your message dated Fri, 03 May 2019 12:24:15 +0300
with message-id <address@hidden>
and subject line Re: bug#35498: 26.2; doc string of `isearch-regexp-function'
has caused the debbugs.gnu.org bug report #35498,
regarding 26.2; doc string of `isearch-regexp-function'
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
35498: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=35498
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 26.2; doc string of `isearch-regexp-function' Date: Mon, 29 Apr 2019 18:48:48 -0700 (PDT)
The doc string should describe the possible values and their
meanings/behaviors.  Currently it describes only a function as value.

Searching isearch.el it seems that this variable can be any of the
values possible for `search-default-mode'.  Please describe each of the
values for `isearch-regexp-function'.

Even when the value is a function the description could be better,
saying that it must accept a string as its first arg and must return a
string.  That can be surmised from saying that it converts a plain
search string to a regexp [search string], but it could be clearer.

Also, "plain search string" and "regexp" are unclear here.  The
distinction is presumably (?) that the former contains no regexp special
chars?  Or does the return value need to be a _valid_ (complete) regexp,
and does the function raise an error if that's not possible?



In GNU Emacs 26.2 (build 1, x86_64-w64-mingw32)
 of 2019-04-13
Repository revision: fd1b34bfba8f3f6298df47c8e10b61530426f749
Windowing system distributor `Microsoft Corp.', version 10.0.17134
Configured using:
 `configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static -g3''



--- End Message ---
--- Begin Message --- Subject: Re: bug#35498: 26.2; doc string of `isearch-regexp-function' Date: Fri, 03 May 2019 12:24:15 +0300
> Date: Mon, 29 Apr 2019 18:48:48 -0700 (PDT)
> From: Drew Adams <address@hidden>
> 
> The doc string should describe the possible values and their
> meanings/behaviors.  Currently it describes only a function as value.

I added the existing functions that could be used as values.  Their
descriptions are available by using the hyperlink, so no need to
duplicate that here.  The list is, of course, not exhaustive, as Lisp
programs could define their own functions.

> Searching isearch.el it seems that this variable can be any of the
> values possible for `search-default-mode'.  Please describe each of the
> values for `isearch-regexp-function'.

See above: not needed.

> Even when the value is a function the description could be better,
> saying that it must accept a string as its first arg and must return a
> string.  That can be surmised from saying that it converts a plain
> search string to a regexp [search string], but it could be clearer.

Added.

> Also, "plain search string" and "regexp" are unclear here.  The
> distinction is presumably (?) that the former contains no regexp special
> chars?  Or does the return value need to be a _valid_ (complete) regexp,
> and does the function raise an error if that's not possible?

I didn't see any problem here, although I improved the wording to some
extent.

Thanks.


--- End Message ---

reply via email to

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