From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#6576: documentation `string-to-char' is incorrect Date: Thu, 14 Jul 2011 06:06:56 +0300 Message-ID: <83pqldef1r.fsf@gnu.org> References: <83630r934x.fsf@gnu.org> <834ogb8txc.fsf@gnu.org> <83y6dn74lv.fsf@gnu.org> <83wrt770rf.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1310612745 13455 80.91.229.12 (14 Jul 2011 03:05:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Jul 2011 03:05:45 +0000 (UTC) Cc: monkey@sandpframing.com, schwab@linux-m68k.org, 6576@debbugs.gnu.org To: Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 14 05:05:39 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QhCF7-00005s-22 for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Jul 2011 05:05:37 +0200 Original-Received: from localhost ([::1]:56419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhCF5-0000sx-Cp for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jul 2011 23:05:35 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhCEh-0000pq-3m for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2011 23:05:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QhCEa-0006rE-Re for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2011 23:05:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhCEa-0006qr-Fz for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2011 23:05:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QhCEZ-0000Xe-9r; Wed, 13 Jul 2011 23:05:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jul 2011 03:05:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6576 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6576-submit@debbugs.gnu.org id=B6576.13106127012072 (code B ref 6576); Thu, 14 Jul 2011 03:05:03 +0000 Original-Received: (at 6576) by debbugs.gnu.org; 14 Jul 2011 03:05:01 +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 1QhCEW-0000XM-KP for submit@debbugs.gnu.org; Wed, 13 Jul 2011 23:05:01 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QhCEU-0000X0-3g for 6576@debbugs.gnu.org; Wed, 13 Jul 2011 23:04:59 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LOA00700Z7KOB00@a-mtaout22.012.net.il> for 6576@debbugs.gnu.org; Thu, 14 Jul 2011 06:04:51 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.229.156.102]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LOA0073CZ81J3D0@a-mtaout22.012.net.il>; Thu, 14 Jul 2011 06:04:51 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 13 Jul 2011 23:05:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:48976 Archived-At: > From: Lars Magne Ingebrigtsen > Cc: schwab@linux-m68k.org, monkey@sandpframing.com, 6576@debbugs.gnu.org > Date: Thu, 14 Jul 2011 01:50:59 +0200 > > > "Return the codepoint of the first character of STRING. > > > > Value is the Unicode codepoint, if it is below #x110000 (in hex). > > Codepoints beyond that are Emacs extensions of Unicode. In > > particular, eight-bit characters are returned as codepoints in > > the range #x3FFF80 through #x3FFFFF, inclusive." > > I've now installed a slight variation on this in Emacs 24. > > But after checking it in, I started wondering whether this doc string > really makes sense. The function returns an Emacs character, and it > would be rather weird if all functions that take or return an Emacs > character goes through that entire explanation. Which other functions would need this? > Is there a specific reason this particular function deserves this > detailed explanation? If you can suggest a better one that takes care of the original bug report, please show your suggestion.