From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#2203: C Mode: C-M-a fails at BOD re_comp, src/regex.c L6534 Date: Thu, 5 Feb 2009 11:36:45 +0000 Message-ID: <20090205113645.GA3213@muc.de> Reply-To: Alan Mackenzie , 2203@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233834278 18656 80.91.229.12 (5 Feb 2009 11:44:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2009 11:44:38 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 05 12:45:53 2009 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.50) id 1LV2g3-0007JR-Qn for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Feb 2009 12:45:52 +0100 Original-Received: from localhost ([127.0.0.1]:33688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LV2ek-0007ay-Sm for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Feb 2009 06:44:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LV2ds-0006S2-U0 for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2009 06:43:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LV2dq-0006OU-Vm for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2009 06:43:36 -0500 Original-Received: from [199.232.76.173] (port=37731 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LV2dq-0006OM-IG for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2009 06:43:34 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38478) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LV2dp-0007FR-UW for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2009 06:43:34 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n15BhWTk001876; Thu, 5 Feb 2009 03:43:32 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n15BP3qv029679; Thu, 5 Feb 2009 03:25:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Alan Mackenzie Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 05 Feb 2009 11:25:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2203 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123383265528437 (code B ref -1); Thu, 05 Feb 2009 11:25:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 5 Feb 2009 11:17:35 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n15BH6bU028429 for ; Thu, 5 Feb 2009 03:17:08 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LV2EE-0004vO-5l for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2009 06:17:06 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LV2ED-0004uw-4Y for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2009 06:17:05 -0500 Original-Received: from [199.232.76.173] (port=47664 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LV2EC-0004up-Tg for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2009 06:17:04 -0500 Original-Received: from colin.muc.de ([193.149.48.1]:2598 helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LV2EC-0001tz-9W for bug-gnu-emacs@gnu.org; Thu, 05 Feb 2009 06:17:04 -0500 Original-Received: (qmail 50917 invoked by uid 3782); 5 Feb 2009 11:16:55 -0000 Original-Received: from acm.muc.de (pD9E53C4F.dip.t-dialin.net [217.229.60.79]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Thu, 05 Feb 2009 12:16:53 +0100 Original-Received: (qmail 3339 invoked by uid 1000); 5 Feb 2009 11:36:45 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.6-4.9 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 05 Feb 2009 06:43:36 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:24967 Archived-At: In .../src/regex.c put point at BOL6534, "char *" here: } WEAK_ALIAS (__re_compile_pattern, re_compile_pattern) ^L /* Entry points compatible with 4.2 BSD regex library. We don't define them unless specifically requested. */ #if defined _REGEX_RE_COMP || defined _LIBC /* BSD has one and only one pattern buffer. */ static struct re_pattern_buffer re_comp_buf; char * <================================= # ifdef _LIBC /* Make these definitions weak in libc, so POSIX programs can redefine these names if they don't use our functions, and still use regcomp/regexec below without link errors. */ weak_function # endif re_comp (s) const char *s; { Do C-M-a. Point doesn't move. Preliminary investigation: With point on the 'h' of "char *", (c-beginning-of-decl-1 nil) should move point one character backwards. Instead, it moves to BOL "WEAK_ALIAS". -- Alan Mackenzie (Nuremberg, Germany).