From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#11749: Acknowledgement (24.1; C-mode indentation gives wrong-type-argument error.) Date: Tue, 08 Jan 2013 14:10:58 -0500 Message-ID: <5nwqvnpk1p.fsf@fencepost.gnu.org> References: <20121010200025.GA3449@acm.acm> <20121014170650.GA3766@acm.acm> <20121028113610.GA3339@acm.acm> <20121104203912.GA3274@acm.acm> <20121121213340.GB4025@acm.acm> <87sj7elgtt.fsf@maru.md5i.com> <20130107120951.GB3384@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1357672330 22183 80.91.229.3 (8 Jan 2013 19:12:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Jan 2013 19:12:10 +0000 (UTC) Cc: Michael Welsh Duggan , "11749@debbugs.gnu.org" <11749@debbugs.gnu.org>, Michael Welsh Duggan , Kim Storm To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 08 20:12:25 2013 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 1Tseb1-0007bI-Th for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Jan 2013 20:12:24 +0100 Original-Received: from localhost ([::1]:44905 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tseam-0004Bv-6l for geb-bug-gnu-emacs@m.gmane.org; Tue, 08 Jan 2013 14:12:08 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tseag-0004A6-Ie for bug-gnu-emacs@gnu.org; Tue, 08 Jan 2013 14:12:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tseaf-0007ku-F2 for bug-gnu-emacs@gnu.org; Tue, 08 Jan 2013 14:12:02 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tseaa-0007jM-UF; Tue, 08 Jan 2013 14:11:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tseaf-0003uO-Tc; Tue, 08 Jan 2013 14:12:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87ehpbni8j.fsf@kfs-lx2.home.kfs> Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Tue, 08 Jan 2013 19:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11749 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 11749-submit@debbugs.gnu.org id=B11749.135767226914955 (code B ref 11749); Tue, 08 Jan 2013 19:12:01 +0000 Original-Received: (at 11749) by debbugs.gnu.org; 8 Jan 2013 19:11:09 +0000 Original-Received: from localhost ([127.0.0.1]:57221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TseZo-0003t9-BA for submit@debbugs.gnu.org; Tue, 08 Jan 2013 14:11:09 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:39126 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TseZm-0003t2-8f for 11749@debbugs.gnu.org; Tue, 08 Jan 2013 14:11:07 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TseZf-0001YS-3a; Tue, 08 Jan 2013 14:10:59 -0500 X-Spook: brigand Bletchley Park SP4 Dateline kilderkin Delta Force X-Ran: 8,^G_,nlpafR$v0+%9VEmSZ?e4^w6@Il_1dN'1A.PS)p 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:69511 Archived-At: If you'd like to see this in the next pretest, please install this in emacs-24 as soon as possible. FWIW, here is some sanity checking from someone who knows nothing about cc-mode (other than the terror that it brings). Just ignore any of these comments if they are obviously wrong. Alan Mackenzie wrote: > + (defvar c-state-old-cpp-beg-marker) I guess you wanted to give that an actual value, ie (defvar c-state-old-cpp-beg-marker nil) > + (defvar c-state-old-cpp-end-marker) Likewise. > + (defmacro c-state-maybe-marker (place marker) > + ;; If PLACE is non-nil, return a marker marking it, otherwise nil. > + ;; We (re)use MARKER. > + `(and ,place > + (or ,marker (setq ,marker (make-marker))) > + (set-marker ,marker ,place))) > + [...] > ! (setq c-state-old-cpp-beg (and here-cpp-beg (copy-marker here-cpp-beg t)) > ! c-state-old-cpp-end (and here-cpp-end (copy-marker here-cpp-end t))) > ! ))) > > ;; Debug tool to catch cache inconsistencies. This is called from > ;; 000tests.el. > --- 3372,3381 ---- > (c-parse-state-1)) > (c-with-cpps-commented-out > (c-parse-state-1)))) > ! (setq c-state-old-cpp-beg > ! (c-state-maybe-marker here-cpp-beg c-state-old-cpp-beg-marker) > ! c-state-old-cpp-end > ! (c-state-maybe-marker here-cpp-end c-state-old-cpp-end-marker))))) Looks like the marker insertion type has changed?