From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: MON KEY Newsgroups: gmane.emacs.bugs Subject: bug#6576: documentation `string-to-char' is incorrect Date: Tue, 6 Jul 2010 17:34:41 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1278453606 1380 80.91.229.12 (6 Jul 2010 22:00:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Jul 2010 22:00:06 +0000 (UTC) To: 6576@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 07 00:00:05 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OWGBQ-0003OI-8Z for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Jul 2010 00:00:04 +0200 Original-Received: from localhost ([127.0.0.1]:40194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWGBP-0003wq-Am for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Jul 2010 18:00:03 -0400 Original-Received: from [140.186.70.92] (port=50999 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWGBE-0003vR-QT for bug-gnu-emacs@gnu.org; Tue, 06 Jul 2010 17:59:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWGBD-00040X-Iz for bug-gnu-emacs@gnu.org; Tue, 06 Jul 2010 17:59:52 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41270) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWGBD-00040P-GR for bug-gnu-emacs@gnu.org; Tue, 06 Jul 2010 17:59:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OWFnB-0006Lz-P7; Tue, 06 Jul 2010 17:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: MON KEY Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Jul 2010 21:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6576 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.127845209324412 (code B ref -1); Tue, 06 Jul 2010 21:35:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Jul 2010 21:34:53 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWFn2-0006Lh-PH for submit@debbugs.gnu.org; Tue, 06 Jul 2010 17:34:52 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWFn0-0006LZ-K1 for submit@debbugs.gnu.org; Tue, 06 Jul 2010 17:34:50 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:36929) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OWFmw-0002co-Iu for submit@debbugs.gnu.org; Tue, 06 Jul 2010 17:34:46 -0400 Original-Received: from [140.186.70.92] (port=60741 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWFmv-00052Q-7i for bug-gnu-emacs@gnu.org; Tue, 06 Jul 2010 17:34:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWFmu-0008IC-43 for bug-gnu-emacs@gnu.org; Tue, 06 Jul 2010 17:34:45 -0400 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:36217) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWFmu-0008Hn-0j for bug-gnu-emacs@gnu.org; Tue, 06 Jul 2010 17:34:44 -0400 Original-Received: by vws1 with SMTP id 1so8736224vws.0 for ; Tue, 06 Jul 2010 14:34:42 -0700 (PDT) Original-Received: by 10.220.62.136 with SMTP id x8mr2803252vch.37.1278452081935; Tue, 06 Jul 2010 14:34:41 -0700 (PDT) Original-Received: by 10.151.46.4 with HTTP; Tue, 6 Jul 2010 14:34:41 -0700 (PDT) X-Google-Sender-Auth: zrq79vtAT4zXSd94goAZ2EqO34U X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 06 Jul 2010 17:35:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38273 Archived-At: First sentence of doc string for `string-to-char' is incorrect. ,---- (documentation 'string-to-char ) | "Convert arg STRING to a character, the first character of that | string. A multibyte character is handled correctly. | | (fn STRING)" `---- Should be something more like: "Return decimal integer value of first character in STRING." The rationale for the proposed docstring change are: - The second clause of sentence doesn't parse; - The arg string (nor its 1st char) are _not_ converted, e.g.: (let ((not-cnvrtd "bubba")) (string-to-char not-cnvrtd) not-cnvrtd) ;; <- value of not-cnvrtd is a string not a char. - It is more in keeping with what the manual says: ,---- (info "(elisp)Basic Char Syntax") | Since characters are really integers, the printed representation | of a character is a decimal number. `---- Affliced docstring appears in GNU Emacs 23.2.1 and current through Bzr-100633 -- /s_P\