From: Eli Zaretskii <eliz@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 21315@debbugs.gnu.org, juri@linkov.net
Subject: bug#21315: 25.0.50; doc of `kill-ring-save', `copy-region-as-kill' - bad
Date: Sun, 06 Dec 2015 18:15:05 +0200 [thread overview]
Message-ID: <83si3feepi.fsf@gnu.org> (raw)
In-Reply-To: <c9793b16-b42f-4094-8292-70682c50a22b@default>
> Date: Sat, 5 Dec 2015 18:13:37 -0800 (PST)
> From: Drew Adams <drew.adams@oracle.com>
> Cc: 21315@debbugs.gnu.org
>
> > > At least make clear that what is said about REGION is only
> > > for calls from Lisp. REGION is always non-nil when used
> > > interactively.
> >
> > Maybe REGION should be non-nil only when used on a non-contiguous
> > (rectangular) region?
>
> Maybe; dunno. The doc is not clear; that's all I can tell.
Would it become clear if instead of this:
The optional argument REGION if non-nil, indicates that we're not
just copying some text between BEG and END, but we're copying the
region.
it would say this:
The optional argument REGION non-nil means to ignore BEG and END and
copy the region instead.
Also, we should tell that this distinction is only relevant to
invoking these functions from Lisp programs, not interactively.
As for the argument, AFAICT it makes no difference in interactive
usage. kill-region make it very clear:
(interactive (list (mark) (point) 'region))
Does documenting the above clarify the issue?
next prev parent reply other threads:[~2015-12-06 16:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-21 17:17 bug#21315: 25.0.50; doc of `kill-ring-save', `copy-region-as-kill' - bad Drew Adams
2015-12-04 18:06 ` Drew Adams
2015-12-05 23:12 ` Juri Linkov
2015-12-06 2:13 ` Drew Adams
2015-12-06 16:15 ` Eli Zaretskii [this message]
2015-12-06 16:15 ` Eli Zaretskii
2015-12-08 0:49 ` Juri Linkov
[not found] <<fc2203ff-88da-4b92-a049-1606ef40d38c@default>
[not found] ` <<0fc80688-9028-4715-b2d9-a4bce4439a3b@default>
[not found] ` <<87y4d8cwwv.fsf@mail.linkov.net>
[not found] ` <<c9793b16-b42f-4094-8292-70682c50a22b@default>
[not found] ` <<83si3feepi.fsf@gnu.org>
2015-12-06 16:54 ` Drew Adams
2015-12-07 16:23 ` Eli Zaretskii
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=83si3feepi.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=21315@debbugs.gnu.org \
--cc=drew.adams@oracle.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).