unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13313: 24.2; typo in the document string of query-replace-regexp
@ 2012-12-31  2:45 Jeova Sanctus Unus
  2012-12-31  6:43 ` Glenn Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Jeova Sanctus Unus @ 2012-12-31  2:45 UTC (permalink / raw)
  To: 13313

the docstring of query-replace-regexp says:
Replacement transfers the case pattern of the old text to the new
text, if `case-replace' and `case-fold-search' are non-nil and REGEXP
has no uppercase letters.

but 15.9.3 Replace Commands and Case says:
Likewise, if either `case-replace' or `case-fold-search' is set to
`nil', replacement is done without case conversion.

From the experience of using query-replace-regexp,I  suppose the
docstring of query-replace-regexp is wrong: the 'and` should be 'or`





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#13313: 24.2; typo in the document string of query-replace-regexp
  2012-12-31  2:45 bug#13313: 24.2; typo in the document string of query-replace-regexp Jeova Sanctus Unus
@ 2012-12-31  6:43 ` Glenn Morris
  2012-12-31  9:19   ` Fengyuan
  0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2012-12-31  6:43 UTC (permalink / raw)
  To: Jeova Sanctus Unus; +Cc: 13313

Jeova Sanctus Unus wrote:

> the docstring of query-replace-regexp says:
> Replacement transfers the case pattern of the old text to the new
> text, if `case-replace' and `case-fold-search' are non-nil and REGEXP
> has no uppercase letters.
>
> but 15.9.3 Replace Commands and Case says:
> Likewise, if either `case-replace' or `case-fold-search' is set to
> `nil', replacement is done without case conversion.

These two do not seem inconsistent to me.

case-replace && case-fold-search   ->  transfer case
!case-replace || !case-fold-search ->  do not transfer case





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#13313: 24.2; typo in the document string of query-replace-regexp
  2012-12-31  6:43 ` Glenn Morris
@ 2012-12-31  9:19   ` Fengyuan
  0 siblings, 0 replies; 3+ messages in thread
From: Fengyuan @ 2012-12-31  9:19 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 13313@debbugs.gnu.org

Sorry,my fault.

Sent from my iPhone

On 2012-12-31, at 14:43, Glenn Morris <rgm@gnu.org> wrote:

> Jeova Sanctus Unus wrote:
> 
>> the docstring of query-replace-regexp says:
>> Replacement transfers the case pattern of the old text to the new
>> text, if `case-replace' and `case-fold-search' are non-nil and REGEXP
>> has no uppercase letters.
>> 
>> but 15.9.3 Replace Commands and Case says:
>> Likewise, if either `case-replace' or `case-fold-search' is set to
>> `nil', replacement is done without case conversion.
> 
> These two do not seem inconsistent to me.
> 
> case-replace && case-fold-search   ->  transfer case
> !case-replace || !case-fold-search ->  do not transfer case





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-12-31  9:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-31  2:45 bug#13313: 24.2; typo in the document string of query-replace-regexp Jeova Sanctus Unus
2012-12-31  6:43 ` Glenn Morris
2012-12-31  9:19   ` Fengyuan

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).