From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kim Storm Newsgroups: gmane.emacs.bugs Subject: bug#11749: Acknowledgement (24.1; C-mode indentation gives wrong-type-argument error.) Date: Wed, 29 Aug 2012 00:49:53 +0200 Message-ID: <503D4B11.6000501@cua.dk> References: <87ehpbni8j.fsf@kfs-lx2.home.kfs> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1346194276 32718 80.91.229.3 (28 Aug 2012 22:51:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Aug 2012 22:51:16 +0000 (UTC) To: 11749@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 29 00:51:17 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 1T6Ucv-0000Bz-0V for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Aug 2012 00:51:17 +0200 Original-Received: from localhost ([::1]:47706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6Ucs-00087M-Nh for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Aug 2012 18:51:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6Uco-000874-Aq for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2012 18:51:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T6Ucm-0004M4-PN for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2012 18:51:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T6Ucf-0004Fk-CP; Tue, 28 Aug 2012 18:51:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T6Udd-0004Ta-QY; Tue, 28 Aug 2012 18:52:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kim Storm Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Tue, 28 Aug 2012 22:52: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: moreinfo Original-Received: via spool by 11749-submit@debbugs.gnu.org id=B11749.134619426517133 (code B ref 11749); Tue, 28 Aug 2012 22:52:01 +0000 Original-Received: (at 11749) by debbugs.gnu.org; 28 Aug 2012 22:51:05 +0000 Original-Received: from localhost ([127.0.0.1]:54998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T6Uci-0004SG-Ip for submit@debbugs.gnu.org; Tue, 28 Aug 2012 18:51:05 -0400 Original-Received: from ispc3.dotserv.com ([194.126.234.26]:47562) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T6Uce-0004Ro-KJ for 11749@debbugs.gnu.org; Tue, 28 Aug 2012 18:51:02 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by ispc3.dotserv.com (Postfix) with ESMTP id AFB138052982B for <11749@debbugs.gnu.org>; Wed, 29 Aug 2012 00:49:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at ispc3.dotserv.com Original-Received: from ispc3.dotserv.com ([127.0.0.1]) by localhost (ispc3.dotserv.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YmV0+I1Zy78l for <11749@debbugs.gnu.org>; Wed, 29 Aug 2012 00:49:54 +0200 (CEST) Original-Received: from [10.1.82.9] (1405ds6-amb.0.fullrate.dk [90.184.79.200]) (Authenticated sender: storm@cua.dk) by ispc3.dotserv.com (Postfix) with ESMTPSA id 01D0980249A30 for <11749@debbugs.gnu.org>; Wed, 29 Aug 2012 00:49:53 +0200 (CEST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4 In-Reply-To: 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:63567 Archived-At: M-x report-emacs-bug obviously refuses to include any useful information=20 -- so I send it through my Thunderbird client... this time. Tried 24.2 RC2 - and once again I hit this annoying indentation bug i c=20 mode: Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p=20 (5457 . 5720)) c-guess-basic-syntax() c-indent-line() indent-according-to-mode() c-electric-paren(nil) call-interactively(c-electric-paren nil nil) The offsets corresponds to a preceding { ... } block. The code I was working on is the following (sorry, I cannot show more=20 than that): if (!((xdom | xact | xobj | xxtr) & 0x80)) continue; if (domains && !alldom && !((xdom | xobj | xxtr) & 0x01)) { I get a lot of errors -- making 24.2 impossible to work with for my C cod= e. Here are some more backtraces: Debugger entered--Lisp error: (error "Invalid search bound (wrong side=20 of point)") re-search-backward("^[ ]*:[ ]*\\(.\\)?" 5920 t) c-lineup-gcc-asm-reg((arglist-cont-nonempty . 5920)) c-evaluate-offset(c-lineup-gcc-asm-reg (arglist-cont-nonempty 5920=20 5950) arglist-cont-nonempty) c-evaluate-offset((c-lineup-gcc-asm-reg c-lineup-arglist)=20 (arglist-cont-nonempty 5920 5950) arglist-cont-nonempty) c-calc-offset((arglist-cont-nonempty 5920 5950)) c-get-syntactic-indentation(((arglist-cont-nonempty 5920 5950))) c-indent-line() indent-according-to-mode() c-electric-paren(nil) call-interactively(c-electric-paren nil nil) Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p=20 (5874 . 5881)) c-guess-basic-syntax() c-indent-line() indent-according-to-mode() c-electric-paren(nil) call-interactively(c-electric-paren nil nil) The last one came when I inserted the final ; in the last line of the=20 following snippet: static void add_hash_ext(idhash_t **hp, id_t *idtab, int n) { } static idhash_t *lookup_ext(idhash_t **hp, ); Yes, there are syntax errors in that code -- but indentation should be=20 able to handle that without signalling errors all the time. I have seen similar problems in 24.1 - but not in 23.4 that I usually use (for this very reason). If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /home/kfs/Downloads/emacs-24.2/etc/DEBUG. In GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of 2012-08-24 on kfs-lx2 Windowing system distributor `The X.Org Foundation', version 11.0.1110400= 0 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: en_DK.utf8 value of $LC_NUMERIC: en_DK.utf8 value of $LC_TIME: en_DK.utf8 value of $LANG: en_US.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Debugger Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t display-time-mode: t cua-mode: t ido-everywhere: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: o b j C-z o b j M-v x t r M-v x x =C2=BD 1 1 1 1 M-d a c t M-d o b j x t r ( x d o m SPC | SPC x a c t SPC ' | SPC a x o b j x o b j SPC | SPC x x t r ) SPC & S-SPC 0 x 8 0 ( ! ) SPC & & S-SPC C-c C-v 1 1 M-d ) C-c Recent messages: Mark set Undo! Mark set [4 times] Auto-saving...done Mark set [3 times] Undo! Mark set Auto-saving...done Mark set Entering debugger... Load-path shadows: /home/kfs/emacs/common/emacs/user/kfs/nero hides=20 /home/kfs/emacs/common/emacs/lisp/nero /home/kfs/emacs/common/emacs/lisp/mwheel hides=20 /home/kfs/Downloads/emacs-24.2/lisp/mwheel /home/kfs/emacs/common/emacs/lisp/misc hides=20 /home/kfs/Downloads/emacs-24.2/lisp/misc /home/kfs/emacs/common/emacs/user/kfs/vcursor hides=20 /home/kfs/Downloads/emacs-24.2/lisp/vcursor /home/kfs/emacs/common/emacs/lisp/avoid hides=20 /home/kfs/Downloads/emacs-24.2/lisp/avoid /home/kfs/emacs/common/emacs/lisp/printing hides=20 /home/kfs/Downloads/emacs-24.2/lisp/printing /home/kfs/emacs/common/emacs/lisp/pong hides=20 /home/kfs/Downloads/emacs-24.2/lisp/play/pong /home/kfs/emacs/common/emacs/lisp/smtpmail hides=20 /home/kfs/Downloads/emacs-24.2/lisp/mail/smtpmail Features: (shadow emacsbug message mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils debug perl-mode make-mode conf-mode jka-compr woman man skeleton tramp-cache tramp-sh tramp tramp-compat auth-source eieio assoc gnus-util mm-util mail-prsvr password-cache format-spec advice help-fns advice-preload tramp-loaddefs sh-script executable help-mode view vc-annotate log-view vc-rcs js byte-opt bytecomp byte-compile cconv macroexp json thingatpt newcomment log-edit add-log diff-mode vc ediff-merg ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff vc-dispatcher sgml-mode cua-gmrk cc-mode cc-fonts cc-guess cc-menus cc-cmds find-dired grep-x grep compile pcmpl-unix shell pcomplete dabbrev tabify cua-rect rect misearch multi-isearch parse-time vc-cvs pcvs pcvs-parse pcvs-info pcvs-defs easy-mmode pcvs-util ewoc dired imenu cgi-mode derived windmove kmacro paren keypad time cua-base cus-start cus-load telnet mailcrypt rfc822 comint ansi-color ring easymenu make begendol ido server cc-styles cc-align cc-engine cc-vars cc-defs regexp-opt disp-table match aux-fct common printing ps-print ps-def lpr time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)