From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#6812: 24.0.50; Inadvertant name capture (more information) Date: Fri, 06 Aug 2010 19:44:26 +0200 Message-ID: <4C5C49FA.2090308@swipnet.se> References: <3459-Fri06Aug2010163246+0100-jpff@cs.bath.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1281118127 25475 80.91.229.12 (6 Aug 2010 18:08:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 Aug 2010 18:08:47 +0000 (UTC) Cc: 6812-done@debbugs.gnu.org To: John ff Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 06 20:08:45 2010 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.69) (envelope-from ) id 1OhRLZ-00012A-03 for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Aug 2010 20:08:45 +0200 Original-Received: from localhost ([127.0.0.1]:47286 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OhRLY-0006LG-Ib for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Aug 2010 14:08:44 -0400 Original-Received: from [140.186.70.92] (port=58073 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OhRLD-0006AS-C8 for bug-gnu-emacs@gnu.org; Fri, 06 Aug 2010 14:08:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OhRL9-00045W-W3 for bug-gnu-emacs@gnu.org; Fri, 06 Aug 2010 14:08:23 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50181) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhRL9-00045S-T7 for bug-gnu-emacs@gnu.org; Fri, 06 Aug 2010 14:08:19 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OhQxf-00078W-9r for bug-gnu-emacs@gnu.org; Fri, 06 Aug 2010 13:44:03 -0400 Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Aug 2010 17:44:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 6812 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 6812@debbugs.gnu.org, jan.h.d@swipnet.se Original-Received: via spool by 6812-done@debbugs.gnu.org id=D6812.128111664227428 (code D ref 6812); Fri, 06 Aug 2010 17:44:03 +0000 Original-Received: (at 6812-done) by debbugs.gnu.org; 6 Aug 2010 17:44:02 +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 1OhQxd-00078L-G4 for submit@debbugs.gnu.org; Fri, 06 Aug 2010 13:44:01 -0400 Original-Received: from smtprelay-h21.telenor.se ([195.54.99.196]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhQxa-000789-Mp for 6812-done@debbugs.gnu.org; Fri, 06 Aug 2010 13:44:00 -0400 Original-Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id 1BECAE9F17 for <6812-done@debbugs.gnu.org>; Fri, 6 Aug 2010 19:44:31 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtouAMnmW0xV4S0jPGdsb2JhbACgOgwBAQEBNS3GAoU6BJNA X-IronPort-AV: E=Sophos;i="4.55,330,1278280800"; d="scan'208";a="115937779" Original-Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb1.telenor.se with ESMTP; 06 Aug 2010 19:44:29 +0200 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id C00087FA05A; Fri, 6 Aug 2010 19:44:27 +0200 (CEST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 In-Reply-To: <3459-Fri06Aug2010163246+0100-jpff@cs.bath.ac.uk> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 06 Aug 2010 13:44:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , 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:39290 Archived-At: It is a monumental stupidity in the ncurses header file, almost criminal. On Mandriva there is an #ifdef __INTERNAL_CAPS_VISIBLE around these #defines, but I see not all distributions have them (Suse and Fedora does not for example). I checked in a fix. Thanks for investigating this. Jan D. John ff skrev 2010-08-06 17.32: > Compiling from bzr repository > gcc -c -Demacs -DHAVE_CONFIG_H -I. -I/jpff/GNU_21/emacs/trunk/src -I/usr/include/alsa -MMD -MF deps/sysdep.d -Wimplicit-function-declaration -Wold-style-definition -Wdeclaration-after-statement -Wno-pointer-sign -g -O2 -fno-optimize-sibling-calls sysdep.c > In file included from termhooks.h:310:0, > from sysdep.c:107: > /usr/include/gpm.h:120:17: error: expected ?:?, ?,?, ?;?, ?}? or ?__attribute__? before ?->? token > make[1]: *** [sysdep.o] Error 1 > make[1]: Leaving directory `/jpff/GNU_21/emacs/trunk/src' > make: *** [src] Error 2 > > Looking at /usr/include/gpm.h it says about line 120 > > typedef struct Gpm_Event { > unsigned char buttons, modifiers; /* try to be a multiple of 4 */ > unsigned short vc; > short dx, dy, x, y; > enum Gpm_Etype type; > int clicks; > enum Gpm_Margin margin; > short wdx, wdy; > } Gpm_Event; > > Running -E on the compilation this becomes > > typedef struct Gpm_Event { > unsigned char cur_term->type. Numbers[30], modifiers; > unsigned short vc; > short dx, dy, x, y; > enum Gpm_Etype type; > int clicks; > enum Gpm_Margin margin; > short wdx, wdy; > } Gpm_Event; > > and the buttons field has change to something unsyntactic. Initial > searching has not found where this comes from, but somehow "buttons" > has become "cur_term->type. Numbers[30]". It was OK yesterday > > Extra information... > > Just thought to look in /usr/include > /usr/include/term.h:#define buttons CUR Numbers[30] > > That means the interaction is between and > This is not the area I understand > > > > > > > In GNU Emacs 24.0.50.15 (x86_64-unknown-linux-gnu) > of 2010-08-05 on xenakis > Windowing system distributor `The X.Org Foundation', version 11.0.10800000 > configured using `configure 'CFLAGS=-g -O2 -fno-optimize-sibling-calls'' > > 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: nil > value of $LC_NUMERIC: nil > value of $LC_TIME: nil > value of $LANG: en_GB.UTF-8 > value of $XMODIFIERS: @im=local > locale-coding-system: utf-8-unix > default enable-multibyte-characters: t > > Major mode: Shell > > Minor modes in effect: > shell-dirtrack-mode: t > auto-image-file-mode: t > show-paren-mode: t > display-time-mode: t > tooltip-mode: t > mouse-wheel-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > line-number-mode: t > transient-mark-mode: t > > Recent input: > > > > C-s i n s t r C-c C-x C-f C-x C-f ~ / > G N U 2 e / t s r s y > s d C-u 1 0 0 C-n > > C-x C-f y e r > t e r h > C-v C-v C-v C-v C-v C-v > > C-x C-f / u s r / i n c g p > C-u 1 2 0 C-n M-x s h e l l > C-a C-a > E > c d SPC > C-e C-d C-e > > > c d SPC s r c > < C-s g > p m C-s C-s C-s C-v C-v > > > > > C-x 2 C-x C-f C-g > C-x b C-s 2 C-x o C-x 2 M-x r > e p o r t = b - b eturn> > > Recent messages: > Making completion list... > Note: file is write protected > Auto-saving...done > ~/GNU_21/emacs/trunk > byte-code: End of buffer > ~/GNU_21/emacs/trunk/src > Mark set > Mark saved where search started > Quit > Mark saved where search started > > Load-path shadows: > /bigdisk/jpff/GNU_21/local-lisp/autotest-mode hides /usr/local/share/emacs/site-lisp/autotest-mode > /bigdisk/jpff/GNU_21/local-lisp/autoconf-mode hides /usr/local/share/emacs/site-lisp/autoconf-mode > /bigdisk/jpff/GNU_21/local-lisp/ruler-mode hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/ruler-mode > /bigdisk/jpff/GNU_21/local-lisp/t-mouse hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/t-mouse > /bigdisk/jpff/GNU_21/local-lisp/ses hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/ses > /bigdisk/jpff/GNU_21/local-lisp/scroll-lock hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/scroll-lock > /bigdisk/jpff/GNU_21/local-lisp/emerge hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/vc/emerge > /bigdisk/jpff/GNU_21/local-lisp/url hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/url/url > /bigdisk/jpff/GNU_21/local-lisp/url-file hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/url/url-file > /bigdisk/jpff/GNU_21/local-lisp/url-news hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/url/url-news > /bigdisk/jpff/GNU_21/local-lisp/url-cookie hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/url/url-cookie > /bigdisk/jpff/GNU_21/local-lisp/url-gw hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/url/url-gw > /bigdisk/jpff/GNU_21/local-lisp/url-http hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/url/url-http > /bigdisk/jpff/GNU_21/local-lisp/url-nfs hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/url/url-nfs > /bigdisk/jpff/GNU_21/local-lisp/url-cid hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/url/url-cid > /bigdisk/jpff/GNU_21/local-lisp/url-auth hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/url/url-auth > /bigdisk/jpff/GNU_21/local-lisp/url-parse hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/url/url-parse > /bigdisk/jpff/GNU_21/local-lisp/url-vars hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/url/url-vars > /bigdisk/jpff/GNU_21/local-lisp/url-ns hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/url/url-ns > /bigdisk/jpff/GNU_21/local-lisp/url-irc hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/url/url-irc > /bigdisk/jpff/GNU_21/local-lisp/url-cache hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/url/url-cache > /bigdisk/jpff/GNU_21/local-lisp/url-ldap hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/url/url-ldap > /bigdisk/jpff/GNU_21/local-lisp/url-misc hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/url/url-misc > /bigdisk/jpff/GNU_21/local-lisp/socks hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/net/socks > /bigdisk/jpff/GNU_21/local-lisp/feedmail hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/mail/feedmail > /bigdisk/jpff/GNU_21/local-lisp/spam-stat hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/gnus/spam-stat > /bigdisk/jpff/GNU_21/local-lisp/icalendar hides /bigdisk/jpff/GNU_21/emacs/trunk/lisp/calendar/icalendar > > Features: > (shadow mailabbrev mailalias mailcrypt mail-extr mail-utils sendmail > emacsbug ansi-color shell comint ring vc-bzr sha1 hex-util edmacro > kmacro help-mode view debug multi-isearch parse-time vc-cvs imenu > cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars > cc-defs eldoc package delsel image-file cus-start cus-load logger > crypt crypt++ crypt+pgp-pub paren uniquify advice help-fns > advice-preload holidays hol-loaddefs regexp-opt cal-menu easymenu > calendar cal-loaddefs time 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 mldrag > 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 > loaddefs button minibuffer faces cus-face files text-properties > overlay md5 base64 format env code-pages mule custom widget > hashtable-print-readable backquote make-network-process > dynamic-setting x multi-tty emacs) > > ==John ffitch > >