From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kazuhiro Ito Newsgroups: gmane.emacs.bugs Subject: bug#12679: 24.2.50; Can't font-at for the beginning of a string Date: Fri, 19 Oct 2012 18:52:21 +0900 Message-ID: <87391an60a.wl%%xmue@d1.dion.ne.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1350640426 9521 80.91.229.3 (19 Oct 2012 09:53:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Oct 2012 09:53:46 +0000 (UTC) To: 12679@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 19 11:53:54 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TP9H4-0002r6-UH for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Oct 2012 11:53:51 +0200 Original-Received: from localhost ([::1]:48233 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TP9Gx-0006Q9-Rx for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Oct 2012 05:53:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TP9Gs-0006PY-80 for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 05:53:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TP9Go-0000se-2B for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 05:53:38 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40849) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TP9Gn-0000sa-Tn for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 05:53:33 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TP9IE-0007qu-Fd for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 05:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kazuhiro Ito Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Oct 2012 09:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12679 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.135064047330139 (code B ref -1); Fri, 19 Oct 2012 09:55:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Oct 2012 09:54:33 +0000 Original-Received: from localhost ([127.0.0.1]:51100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TP9Hk-0007q4-Ul for submit@debbugs.gnu.org; Fri, 19 Oct 2012 05:54:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33828) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TP9Hi-0007ps-U6 for submit@debbugs.gnu.org; Fri, 19 Oct 2012 05:54:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TP9GC-0000j7-7T for submit@debbugs.gnu.org; Fri, 19 Oct 2012 05:52:57 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:57801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TP9GC-0000j3-4I for submit@debbugs.gnu.org; Fri, 19 Oct 2012 05:52:56 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TP9G8-0006NL-Ae for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 05:52:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TP9G7-0000iJ-Em for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 05:52:52 -0400 Original-Received: from msa106.auone-net.jp ([61.117.18.166]:51318) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TP9G7-0000U3-5V for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 05:52:51 -0400 Original-Received: from GUNGNIR.med.osaka-cu.ac.jp (g1-27-253-251-110.bmobile.ne.jp [27.253.251.110]) by msa106.auone-net.jp (au one net msa) with ESMTP id 03AF84B803A; Fri, 19 Oct 2012 18:52:37 +0900 (JST) User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL/10.8 EasyPG/1.0.0 Emacs/24.2.50 (i386-mingw-nt6.1.7601) MULE/6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:65728 Archived-At: The below code raises an error on trunk. (font-at 0 nil "A") Please see the below patch. === modified file 'src/font.c' --- src/font.c 2012-09-17 12:07:36 +0000 +++ src/font.c 2012-10-19 09:15:58 +0000 @@ -4775,7 +4775,7 @@ { CHECK_NUMBER (position); CHECK_STRING (string); - if (! (0 < XINT (position) && XINT (position) < SCHARS (string))) + if (! (0 <= XINT (position) && XINT (position) < SCHARS (string))) args_out_of_range (string, position); pos = XINT (position); } -- Kazuhiro Ito