From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Politz Newsgroups: gmane.emacs.bugs Subject: bug#9969: 24.0.90; semantic/srecode : macro keyword not working outside sectiondictionary Date: Sun, 06 Nov 2011 10:06:08 +0100 Message-ID: <874nyhzklb.fsf@fh-trier.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1320570452 14181 80.91.229.12 (6 Nov 2011 09:07:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 Nov 2011 09:07:32 +0000 (UTC) To: 9969@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 06 10:07:26 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RMyhH-0004FF-Te for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Nov 2011 10:07:24 +0100 Original-Received: from localhost ([::1]:59689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMyhH-0003Nh-23 for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Nov 2011 04:07:23 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:50282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMyhC-0003NR-Sf for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2011 04:07:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RMyhB-0003IM-6P for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2011 04:07:18 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMyhB-0003II-3G for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2011 04:07:17 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RMyjp-0002xg-UB for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2011 04:10:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Politz Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Nov 2011 09:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 9969 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.132057055711301 (code B ref -1); Sun, 06 Nov 2011 09:10:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Nov 2011 09:09:17 +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 1RMyj6-0002wE-Cr for submit@debbugs.gnu.org; Sun, 06 Nov 2011 04:09:17 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RMyj4-0002w5-Bm for submit@debbugs.gnu.org; Sun, 06 Nov 2011 04:09:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RMygN-00035j-G7 for submit@debbugs.gnu.org; Sun, 06 Nov 2011 04:06:29 -0500 Original-Received: from lists.gnu.org ([140.186.70.17]:40925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMygN-00035f-EQ for submit@debbugs.gnu.org; Sun, 06 Nov 2011 04:06:27 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:50100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMygL-0003KF-7N for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2011 04:06:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RMygJ-000347-9a for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2011 04:06:25 -0500 Original-Received: from gateway-a.fh-trier.de ([143.93.54.181]:34670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMygI-000342-RB for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2011 04:06:23 -0500 X-Virus-Scanned: by Amavisd-new + McAfee uvscan + ClamAV [Rechenzentrum FH-Trier (r/ft)] Original-Received: from luca (dslb-084-059-102-040.pools.arcor-ip.net [84.59.102.40]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: politza) by gateway-a.fh-trier.de (Postfix) with ESMTPSA id 8ACFA1749DD0 for ; Sun, 6 Nov 2011 10:06:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=fh-trier.de; s=default; t=1320570368; bh=skNheCFSuf1uHxp0ljQy1Sb+48Q=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=MgQZilRX7R2teGF5Wnmul/FEtKIPWtnSs1mgojAhCEGb8M6+llBRmwlyN5zrexKFQ h/ALQ8PDRKvbY520EAJ+WUpWp3Fa2rRA7zha48mxcW21kF+X1oDNRPDGrTzS/+XFDQ ygiOKkX0UTbEhyTsRNPMOUmXx81DhTNb9nbTFzvc= Original-Received: from [127.0.0.1] (helo=luca) by luca with esmtp (Exim 4.72) (envelope-from ) id 1RMyg4-0002ko-6A for bug-gnu-emacs@gnu.org; Sun, 06 Nov 2011 10:06:08 +0100 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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.11 Precedence: list Resent-Date: Sun, 06 Nov 2011 04:10:01 -0500 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:53593 Archived-At: This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': $ emacs -Q 1. (progn (require 'srecode) (require 'srecode/filters)) 2. Open a new .srt file in ~/.srecode and insert the following and save buffer. set mode "emacs-lisp-mode" set VAR macro "DOLLAR" template foo ---- {{VAR}} ---- 3. M-x semantic-mode RET 4. Switch to a emacs-lisp-mode buffer. 5. M-x srecode-insert => error : srecode-dictionary-compound-variable: Cannot create compound variable without :state According to the info document and wisent grammar in bzr this should work, but I am not shure about this. It does work inside a `sectiondictionary' section, like it is used in some etc/srecode/*.srt files. Andreas 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 /usr/share/emacs/24.0.90/etc/DEBUG. In GNU Emacs 24.0.90.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of 2011-10-18 on cw-bkp0, modified by Debian (emacs-snapshot package, version 1:20111012-1+squeeze1) Windowing system distributor `The X.Org Foundation', version 11.0.10707000 configured using `configure '--build' 'x86_64-linux-gnu' '--host' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.0.90/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.0.90/site-lisp:/usr/share/emacs/site-lisp' '--without-compress-info' '--with-crt-dir=/usr/lib//' '--with-x=yes' '--with-x-toolkit=gtk' '--with-imagemagick=yes' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS='' Important settings: value of $LC_ALL: C 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: de_DE.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Org Minor modes in effect: semantic-minor-modes-format: ((:eval (if (or semantic-highlight-edits-mode semantic-show-unmatched-syntax-mode) S))) global-semanticdb-minor-mode: t global-semantic-idle-scheduler-mode: t semantic-mode: t shell-dirtrack-mode: t savehist-mode: t tooltip-mode: t mouse-wheel-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: m a i l C-x o C-v C-v C-v C-v C-v C-v C-v C-s u s e r C-s C-s C-l C-a C-M-SPC M-w C-x b i n i M-> ( s e t q SPC C-y SPC " p o l i t z a @ f h - t r i e r . d e " ) C-x C-e C-x C-s C-x k C-x b C-x 1 C-c C-c C-g C-SPC M-{ M-{ C-w C-SPC M-{ M-{ C-w M-{ M-{ M-{ M-{ C-SPC C-g C-p C-p C-p C-p C-n C-n C-SPC M-> C-g C-u C-SPC C-l C-SPC M-} C-w C-k M-} C-/ C-/ C-/ C-/ C-/ C-v C-v C-v C-c C-c y C-x b * C-x C-k C-p C-p C-p C-n C-n C-n C-n C-g C-x ( M-x C-g C-h k C-x ( C-x o C-s b e f o C-M-f C-x C-e C-M-b C-l C-l C-l C-M-SPC M-w C-x b f i l M-/ i n i C-g C-x r b f i l e : i n i t M-> C-y M-y C-a ( s e t q SPC C-M-f C-x C-e SPC n i l ) C-x C-s C-x C-e M-b M-d t C-a ; ; C-e C-b n i l C-x C-s C-x o C-x 1 C-x ( M-x r e p o r t C-g C-x ( M-f M-b C-SPC C-e M-w C-n C-a M-x r e p o r t C-y C-x b C-SPC C-c C-n M-w C-x b C-y C-x C-x C-M-\ C-x C-x A n d r e a s C-x ) C-c C-c y C-x e C-c C-c y C-x e Recent messages: Checking 65 files in /usr/share/emacs/24.0.90/lisp/obsolete... Checking 1 files in /usr/share/emacs/24.0.90/leim... Checking for load-path shadows...done (Type e to repeat macro) Send this bug report to the Emacs maintainers? (y or n) y Sending... Sending via mail... Sending email Sending email done Sending...done Load-path shadows: /usr/share/emacs/site-lisp/haskell-mode/haskell-decl-scan hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-decl-scan /usr/share/emacs/site-lisp/haskell-mode/haskell-c hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-c /usr/share/emacs/site-lisp/haskell-mode/haskell-ghci hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-ghci /usr/share/emacs/site-lisp/haskell-mode/haskell-doc hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-doc /usr/share/emacs/site-lisp/haskell-mode/haskell-indent hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-indent /usr/share/emacs/site-lisp/haskell-mode/haskell-mode hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-mode /usr/share/emacs/site-lisp/haskell-mode/haskell-hugs hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-hugs /usr/share/emacs/site-lisp/haskell-mode/haskell-site-file hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-site-file /usr/share/emacs/site-lisp/haskell-mode/haskell-cabal hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-cabal /usr/share/emacs/site-lisp/haskell-mode/inf-haskell hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/inf-haskell /usr/share/emacs/site-lisp/haskell-mode/haskell-font-lock hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-font-lock /usr/share/emacs/site-lisp/haskell-mode/haskell-simple-indent hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-simple-indent /usr/share/emacs/site-lisp/haskell-mode/haskell-indentation hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-indentation /usr/share/emacs/24.0.90/site-lisp/cscope/xcscope hides /usr/share/emacs/site-lisp/xcscope /usr/share/emacs/24.0.90/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /home/politza/.emacs.d/plugins/battery hides /usr/share/emacs/24.0.90/lisp/battery /home/politza/.emacs.d/bugfixes/esh-cmd hides /usr/share/emacs/24.0.90/lisp/eshell/esh-cmd Features: (mailalias smtpmail sendmail apropos shadow mail-extr emacsbug boxquote rect ffap org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp ob-exp org-exp-blocks org-agenda org-info org-gnus org-docview org-bibtex bibtex org-bbdb locate imenu jka-compr find-func dired-aux wdired url-cache network-stream starttls url-http tls url-gw url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-util url-parse url-vars mailcap finder-inf message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader ediff-merg ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff reposition dabbrev vc-bzr semantic/edit bookmark pp semantic/tag-write semantic/find multi-isearch thingatpt semantic/decorate/mode help-mode debug semantic/db-file cedet-files semantic/db-mode semantic/idle srecode/srt-mode semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn semantic/db semantic/format ezimage srecode/template srecode/srt-wy semantic/ctxt vc-dispatcher vc-svn server view eldoc srecode/mode semantic/wisent semantic/wisent/wisent semantic/decorate pulse srecode/filters newcomment srecode/insert srecode/args srecode/find srecode/map srecode/ctxt semantic/tag-ls srecode/compile srecode/dictionary srecode/table eieio-base semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw cedet auctex-autoloads tex-site info c-eldoc-autoloads sunrise-x-loop-autoloads sunrise-x-loop sunrise-commander term ehelp electric sort find-dired disp-table enriched dired-x sunrise-commander-autoloads package tabulated-list srecode mode-local grep compile tramp tramp-compat auth-source eieio assoc gnus-util mm-util mail-prsvr password-cache shell format-spec tramp-loaddefs dired-details+ dired dired-details org byte-opt warnings bytecomp byte-compile cconv macroexp advice help-fns advice-preload ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete pcomplete comint ring org-list org-faces org-compat org-entities org-macs noutline outline easy-mmode cal-menu easymenu calendar cal-loaddefs time-date savehist regexp-opt edmacro kmacro cl w3m-load 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 font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)