GNU bug report logs - #6528
24.0.50; `read-buffer' doc string

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Mon, 28 Jun 2010 15:41:02 UTC

Severity: minor

Tags: patch

Found in version 24.0.50

Done: Juanma Barranquero <lekktu <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 6528 <at> debbugs.gnu.org (full text, mbox):

From: Christoph <cschol2112 <at> googlemail.com>
To: 6528 <at> debbugs.gnu.org
Cc: drew.adams <at> oracle.com
Subject: Re: 24.0.50; `read-buffer' doc string
Date: Mon, 28 Jun 2010 21:03:30 -0600
The only other function in minibuf.c that has a REQUIRE-MATCH argument 
is completing-read (l.1722).

Since in read-buffer the function completing-read is called with the 
argument require-match (l.1237), I think the doc string should read like 
this:

"Optional third arg REQUIRE-MATCH determines whether non-existing
 buffer names are allowed.  It has the same meaning as the
 REQUIRE-MATCH argument of the `completing-read' function."

This patch will fix it accordingly:

=== modified file 'src/minibuf.c'
--- src/minibuf.c	2010-06-08 19:42:10 +0000
+++ src/minibuf.c	2010-06-29 02:59:05 +0000
@@ -1184,7 +1184,7 @@
  If DEF is a list of default values, return its first element.
 Optional third arg REQUIRE-MATCH determines whether non-existing
  buffer names are allowed.  It has the same meaning as the
- REQUIRE-MATCH argument of `confirm-after-completion'.
+ REQUIRE-MATCH argument of the `completing-read' function.
 The argument PROMPT should be a string ending with a colon and a space.
 If `read-buffer-completion-ignore-case' is non-nil, completion ignores
 case while reading the buffer name.


Christoph




This bug report was last modified 14 years and 363 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.