unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Teika Kazura <teika@gmx.com>
To: 13178@debbugs.gnu.org
Cc: bruce.connor.am@gmail.com, juri@linkov.net
Subject: bug#13178: Query-replace fails soon after narrow-to-region
Date: Wed, 04 Mar 2015 08:31:03 +0900 (JST)	[thread overview]
Message-ID: <20150304.083103.1686913135825312962.teika@gmx.com> (raw)
In-Reply-To: <CAAdUY-Kh_ypUJh=mKjBg69Bi_x9+Gc7g8A_TiC=Y_dUN79Jv1A@mail.gmail.com>

Docs of `use-empty-active-region' and `use-region-p' use the word "empty", but in fact the predicate is (> (region-end) (region-beginning)). It's confusing. (And also the Emacs Info, "Operating on the Region" section.)

For replace.el, the condition is correct (= what users expect.) Although I don't know other cases, maybe the explanation "empty" is too simplistic? (Sorry that I don't come up with a concise replacement description for that case.)

Thank you very much Emacs developers. And of course to Drew Adams for your kind reply and wide range, long time contributions.






  parent reply	other threads:[~2015-03-03 23:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-14  4:03 bug#13178: Query-replace fails soon after narrow-to-region Teika Kazura
2015-02-27  8:12 ` Teika Kazura
2015-02-27 15:01   ` Drew Adams
2015-02-27 19:50     ` Artur Malabarba
2015-03-02 17:23       ` Stefan Monnier
2015-03-02 20:14         ` Juri Linkov
2015-03-02 21:51           ` Artur Malabarba
2015-03-12 19:53             ` Juri Linkov
2015-11-13 23:39               ` Juri Linkov
2015-03-03 23:31   ` Teika Kazura [this message]
2015-03-04  1:16     ` Artur Malabarba
2015-03-05  0:16       ` Teika Kazura

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=20150304.083103.1686913135825312962.teika@gmx.com \
    --to=teika@gmx.com \
    --cc=13178@debbugs.gnu.org \
    --cc=bruce.connor.am@gmail.com \
    --cc=juri@linkov.net \
    /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 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).