unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#52741: 27.2; Doc string of `visual-line-mode'
@ 2021-12-22 22:42 Drew Adams
  2021-12-22 22:45 ` Lars Ingebrigtsen
  2021-12-24  4:13 ` Richard Stallman
  0 siblings, 2 replies; 5+ messages in thread
From: Drew Adams @ 2021-12-22 22:42 UTC (permalink / raw)
  To: 52741



This part of the doc isn't helpful:

 If called interactively, enable Visual-Line mode if ARG is positive,
 and disable it if ARG is zero or negative.

What on earth is ARG, for interactive use?  The description of
interactive use should talk about things like a prefix arg, not about
unexplained things like ARG.  How will a user know how to pass argument
ARG interactively?

(Once again, minor-mode doc problems.  This seems to be a never-ending
cleanup.)

In GNU Emacs 27.2 (build 1, x86_64-w64-mingw32)
 of 2021-03-26 built on CIRROCUMULUS
Repository revision: deef5efafb70f4b171265b896505b92b6eef24e6
Repository branch: HEAD
Windowing system distributor 'Microsoft Corp.', version 10.0.19042
System Description: Microsoft Windows 10 Pro (v10.0.2009.19042.1348)





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

* bug#52741: 27.2; Doc string of `visual-line-mode'
  2021-12-22 22:42 bug#52741: 27.2; Doc string of `visual-line-mode' Drew Adams
@ 2021-12-22 22:45 ` Lars Ingebrigtsen
  2021-12-22 23:18   ` bug#52741: [External] : " Drew Adams
  2021-12-24  4:13 ` Richard Stallman
  1 sibling, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-12-22 22:45 UTC (permalink / raw)
  To: Drew Adams; +Cc: 52741

Drew Adams <drew.adams@oracle.com> writes:

> This part of the doc isn't helpful:
>
>  If called interactively, enable Visual-Line mode if ARG is positive,
>  and disable it if ARG is zero or negative.
>
> What on earth is ARG, for interactive use?  The description of
> interactive use should talk about things like a prefix arg, not about
> unexplained things like ARG.  How will a user know how to pass argument
> ARG interactively?
>
> (Once again, minor-mode doc problems.  This seems to be a never-ending
> cleanup.)

I think you've reported this a couple of times before?  And it's fixed
in Emacs 28:

---
This is a minor mode.  If called interactively, toggle the
‘Visual-Line mode’ mode.  If the prefix argument is positive, enable
the mode, and if it is zero or negative, disable the mode.

If called from Lisp, toggle the mode if ARG is ‘toggle’.  Enable the
mode if ARG is nil, omitted, or is a positive number.  Disable the
mode if ARG is a negative number.
---

So I'm closing this bug report.

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





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

* bug#52741: [External] : Re: bug#52741: 27.2; Doc string of `visual-line-mode'
  2021-12-22 22:45 ` Lars Ingebrigtsen
@ 2021-12-22 23:18   ` Drew Adams
  0 siblings, 0 replies; 5+ messages in thread
From: Drew Adams @ 2021-12-22 23:18 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 52741@debbugs.gnu.org

> I think you've reported this a couple of times before?  And it's fixed
> in Emacs 28:

Ah, yes, you're right; sorry.

I and others (13926, 25428, 25434, 25435).  
There were multiple problems with that doc string.

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

* bug#52741: 27.2; Doc string of `visual-line-mode'
  2021-12-22 22:42 bug#52741: 27.2; Doc string of `visual-line-mode' Drew Adams
  2021-12-22 22:45 ` Lars Ingebrigtsen
@ 2021-12-24  4:13 ` Richard Stallman
  2021-12-24  5:32   ` bug#52741: [External] : " Drew Adams
  1 sibling, 1 reply; 5+ messages in thread
From: Richard Stallman @ 2021-12-24  4:13 UTC (permalink / raw)
  To: Drew Adams; +Cc: 52741

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > What on earth is ARG, for interactive use?  The description of
  > interactive use should talk about things like a prefix arg, not about
  > unexplained things like ARG.  How will a user know how to pass argument
  > ARG interactively?

It's standard -- every user should know how to give a command a numeric arg.

-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)







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

* bug#52741: [External] : Re: bug#52741: 27.2; Doc string of `visual-line-mode'
  2021-12-24  4:13 ` Richard Stallman
@ 2021-12-24  5:32   ` Drew Adams
  0 siblings, 0 replies; 5+ messages in thread
From: Drew Adams @ 2021-12-24  5:32 UTC (permalink / raw)
  To: rms@gnu.org; +Cc: 52741@debbugs.gnu.org

> > What on earth is ARG, for interactive use?  The description of
> > interactive use should talk about things like a prefix arg, not about
> > unexplained things like ARG.  How will a user know how to pass argument
> > ARG interactively?
> 
> It's standard -- every user should know how to give a command a numeric arg.

Sure.  But the doc string normally says, "With a
prefix arg...", or "A numeric prefix arg means...".
or some such.

It doesn't talk about an undescribed ARG in the
context of interactive use.  If it talks about ARG
in that context, it tells you it's the prefix arg.

This is the relevant part of the doc string in
question, for Emacs 27.2, which is what I reported on:

 If called interactively, enable Visual-Line mode if
 ARG is positive, and disable it if ARG is zero or
 negative.

What's missing there is "prefix" or (preferably)
"numeric prefix", before "ARG" (or "arg").

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

end of thread, other threads:[~2021-12-24  5:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-22 22:42 bug#52741: 27.2; Doc string of `visual-line-mode' Drew Adams
2021-12-22 22:45 ` Lars Ingebrigtsen
2021-12-22 23:18   ` bug#52741: [External] : " Drew Adams
2021-12-24  4:13 ` Richard Stallman
2021-12-24  5:32   ` bug#52741: [External] : " Drew Adams

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