* bug#27926: 25.2; Let arg REGION-NONCONTIGUOUS-P do more
@ 2017-08-02 22:41 Drew Adams
0 siblings, 0 replies; only message in thread
From: Drew Adams @ 2017-08-02 22:41 UTC (permalink / raw)
To: 27926
In `replace.el', some replacment commands now accept optional arg
REGION-NONCONTIGUOUS-P, to allow replacement over the rectangular region
(really, over any list of dotted position pairs (START . END)).
Currently the arg is just a Boolean. Please consider changing
the behavior of the commands in this way:
Let non-nil continue to mean the same thing: respect limits such as
those that are returned by the value of `region-extract-function'.
But allow two particular non-nil values to control that behavior in
different ways, instead of requiring that code use
`region-extract-function':
* A function as arg value would mean use what that function returns
instead of applying the function that is the value of
`region-extract-function' to `bounds' and using what that returns.
This can be handy in some contexts, just as binding
`region-extract-function' can be handy in other contexts.
* A non-function (i.e., non-lambda) list as arg value would be
expected to have the form of a value that `region-extract-function'
applied to `bounds' returns, and it would be used directly, instead
of invoking `region-extract-function' to get the list of zone limits.
This can be handy in still other contexts, where the limits might
already be available - no need to bind `region-extract-function' to
a function like (lambda (_ignore) THE-KNOWN-LIMITS).
In GNU Emacs 25.2.1 (x86_64-w64-mingw32)
of 2017-04-24 built on LAPHROAIG
Windowing system distributor 'Microsoft Corp.', version 6.1.7601
Configured using:
'configure --without-dbus --without-compress-install 'CFLAGS=-O2
-static -g3''
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-08-02 22:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-02 22:41 bug#27926: 25.2; Let arg REGION-NONCONTIGUOUS-P do more Drew Adams
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.