GNU bug report logs -
#18697
25.0.50; [PATCH] hi-lock interactive functions now default to the active region, if there is one
Previous Next
Reported by: Dima Kogan <dima <at> secretsauce.net>
Date: Sun, 12 Oct 2014 22:37:02 UTC
Severity: wishlist
Tags: patch, wontfix
Found in version 25.0.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 18697 <at> debbugs.gnu.org (full text, mbox):
> > I don't care what you do to hi-lock. However, wrt `read-regexp':
> > I certainly hope not. That would make that function useless for
> > any command that wants to act on the active region (e.g., vs
> > the buffer if inactive).
>
> There is no problem in using the active region in `read-regexp' as
> we discussed it in http://thread.gmane.org/gmane.emacs.devel/168564
Huh? There is NO discussion of `read-regexp' in that thread. Zero.
And that thread certainly does not come to the conclusion that
the active region should always be taken as the default value
(of whatever).
You yourself acknowledge in that thread that using the active
region to limit the scope of a command is sometimes more useful
than using it to come up with a default string value.
`read-regexp' is not a command. It is a utility function, which
can be used in all kinds of commands, all kinds of contexts.
We should not fix its default value in a way that limits the
use of `read-regexp' by some command/context of the active region
for something else.
What IS pointed out in that thread is that there are other ways
to pick up text at point, besides using the active region. And
that gives you much more flexibility than hard-wiring the region
content as the default value.
This bug report was last modified 6 years and 16 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.