* bug#21231: 25.0.50; doc string of `marker-position'
@ 2015-08-10 15:48 Drew Adams
2016-04-30 22:03 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2015-08-10 15:48 UTC (permalink / raw)
To: 21231
The doc string is misleading or confusing. Please follow what is said
in the Elisp manual.
The doc string says:
Return the position MARKER points at, as a character number.
Character number? What is that? It either means nothing or it means
something we don't want to convey here: the integer value of a
character.
The Emacs way of talking about this is to refer to it as a "buffer
position". It is a positive integer.
The manual just says "position". If you want to add that it is a
positive integer, fine.
And it would be better if the first line indicated the nil possibility.
Something like:
Return position of MARKER, or nil if it points nowhere.
If a position, it is a positive integer.
In GNU Emacs 25.0.50.1 (i686-pc-mingw32)
of 2014-10-20 on LEG570
Bzr revision: 118168 rgm@gnu.org-20141020195941-icp42t8ttcnud09g
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --enable-checking=yes,glyphs CPPFLAGS=-DGLYPH_DEBUG=1'
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#21231: 25.0.50; doc string of `marker-position'
2015-08-10 15:48 bug#21231: 25.0.50; doc string of `marker-position' Drew Adams
@ 2016-04-30 22:03 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2016-04-30 22:03 UTC (permalink / raw)
To: Drew Adams; +Cc: 21231
Drew Adams <drew.adams@oracle.com> writes:
> The doc string is misleading or confusing. Please follow what is said
> in the Elisp manual.
>
> The doc string says:
>
> Return the position MARKER points at, as a character number.
>
> Character number? What is that? It either means nothing or it means
> something we don't want to convey here: the integer value of a
> character.
>
> The Emacs way of talking about this is to refer to it as a "buffer
> position". It is a positive integer.
>
> The manual just says "position". If you want to add that it is a
> positive integer, fine.
>
> And it would be better if the first line indicated the nil possibility.
> Something like:
>
> Return position of MARKER, or nil if it points nowhere.
> If a position, it is a positive integer.
I don't think the second sentence is necessary. A "position" is clear
enough. I've installed that on the trunk.
--
(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:[~2016-04-30 22:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-10 15:48 bug#21231: 25.0.50; doc string of `marker-position' Drew Adams
2016-04-30 22:03 ` 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).