unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#18192: Incorrect implication in delete-{backward, forward}-char docstrings
@ 2014-08-04 18:33 Reuben Thomas
  2019-08-03 19:13 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Reuben Thomas @ 2014-08-04 18:33 UTC (permalink / raw)
  To: 18192

[-- Attachment #1: Type: text/plain, Size: 589 bytes --]

These two functions are marked interactive-only, yet the docstrings' last
sentence starts "Interactively," which may lead readers to infer that they
can be used non-interactively:

Interactively, N is the prefix arg, and
KILLFLAG is set if N was explicitly specified.

How about the following re-wording for the last sentence:

"A prefix arg becomes N, and sets KILLFLAG."

In fact, this solves another confusion: is pressing C-u "explicitly"
setting N? It might seem not, but it certainly causes KILLFLAG to be set.

If this is satisfactory, I can install a fix.

-- 
http://rrt.sc3d.org

[-- Attachment #2: Type: text/html, Size: 824 bytes --]

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

* bug#18192: Incorrect implication in delete-{backward, forward}-char docstrings
  2014-08-04 18:33 bug#18192: Incorrect implication in delete-{backward, forward}-char docstrings Reuben Thomas
@ 2019-08-03 19:13 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-08-03 19:13 UTC (permalink / raw)
  To: Reuben Thomas; +Cc: 18192

Reuben Thomas <rrt@sc3d.org> writes:

> These two functions are marked interactive-only, yet the docstrings' last
> sentence starts "Interactively," which may lead readers to infer that they can
> be used non-interactively:
>
> Interactively, N is the prefix arg, and
> KILLFLAG is set if N was explicitly specified.
>
> How about the following re-wording for the last sentence:
>
> "A prefix arg becomes N, and sets KILLFLAG."
>
> In fact, this solves another confusion: is pressing C-u "explicitly" setting N?
> It might seem not, but it certainly causes KILLFLAG to be set.

It a bit confusingly worded, and I've now installed the following phrase
instead:

"If called interactively, a numeric prefix argument specifies N, and
KILLFLAG is also set if a prefix argument is used."

While these functions are just supposed to be used interactively, they
can be used non-interactively, so I think it's right to call out the "if
called interactively" here, too.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2019-08-03 19:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-04 18:33 bug#18192: Incorrect implication in delete-{backward, forward}-char docstrings Reuben Thomas
2019-08-03 19:13 ` Lars Ingebrigtsen

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).