unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15422: 24.3.50; `read-string': different parameter name from `read-from-minibuffer'
@ 2013-09-20 15:02 Drew Adams
  2016-04-29 13:45 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Drew Adams @ 2013-09-20 15:02 UTC (permalink / raw)
  To: 15422


`read-string' calls its parameter INITIAL-INPUT.
`read-from-minibuffer' calls its parameter INITIAL-CONTENTS.

But the doc string of `read-string' says that parameter INITIAL-INPUT
"behaves as in `read-from-minibuffer'", which clearly makes no sense
since `r-f-m' has no such parameter.

The two should have the same name if the doc for one refers to the
other.



In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
 of 2013-08-31 on ODIEONE
Bzr revision: 114088 rgm@gnu.org-20130901021232-sazo0qla2qgcko95
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/Devel/emacs/binary --enable-checking=yes,glyphs
 'CFLAGS=-O0 -g3' LDFLAGS=-Lc:/Devel/emacs/lib
 CPPFLAGS=-Ic:/Devel/emacs/include'





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

* bug#15422: 24.3.50; `read-string': different parameter name from `read-from-minibuffer'
  2013-09-20 15:02 bug#15422: 24.3.50; `read-string': different parameter name from `read-from-minibuffer' Drew Adams
@ 2016-04-29 13:45 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2016-04-29 13:45 UTC (permalink / raw)
  To: Drew Adams; +Cc: 15422

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

> `read-string' calls its parameter INITIAL-INPUT.
> `read-from-minibuffer' calls its parameter INITIAL-CONTENTS.
>
> But the doc string of `read-string' says that parameter INITIAL-INPUT
> "behaves as in `read-from-minibuffer'", which clearly makes no sense
> since `r-f-m' has no such parameter.
>
> The two should have the same name if the doc for one refers to the
> other.

Somebody has sneakily changed the doc string:

If non-nil, second arg INITIAL-INPUT is a string to insert before reading.
  This argument has been superseded by DEFAULT-VALUE and should normally be nil
  in new code.  It behaves as INITIAL-CONTENTS in ‘read-from-minibuffer’ (which
  see).


-- 
(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-29 13:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-20 15:02 bug#15422: 24.3.50; `read-string': different parameter name from `read-from-minibuffer' Drew Adams
2016-04-29 13:45 ` 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).