From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johan Claesson Newsgroups: gmane.emacs.bugs Subject: bug#12781: 24.2; srecode-template-mode sets global value of comment-start and comment-end Date: Thu, 01 Nov 2012 22:17:58 +0100 Message-ID: <87y5ilrpix.fsf@bredband.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1351804706 7003 80.91.229.3 (1 Nov 2012 21:18:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Nov 2012 21:18:26 +0000 (UTC) To: 12781@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 01 22:18:33 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 1TU29o-0003k0-DH for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Nov 2012 22:18:32 +0100 Original-Received: from localhost ([::1]:38345 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TU29f-0000UY-SD for geb-bug-gnu-emacs@m.gmane.org; Thu, 01 Nov 2012 17:18:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TU29c-0000UE-1H for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2012 17:18:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TU29a-000514-DJ for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2012 17:18:19 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TU29a-000510-99 for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2012 17:18:18 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TU2CE-0006D3-IU for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2012 17:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Johan Claesson Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Nov 2012 21:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12781 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.135180485723857 (code B ref -1); Thu, 01 Nov 2012 21:21:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Nov 2012 21:20:57 +0000 Original-Received: from localhost ([127.0.0.1]:43562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TU2C8-0006Cj-KE for submit@debbugs.gnu.org; Thu, 01 Nov 2012 17:20:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37901) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TU2C6-0006Cb-4e for submit@debbugs.gnu.org; Thu, 01 Nov 2012 17:20:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TU29P-0004wn-Jx for submit@debbugs.gnu.org; Thu, 01 Nov 2012 17:18:09 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:47919) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TU29P-0004wd-GE for submit@debbugs.gnu.org; Thu, 01 Nov 2012 17:18:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TU29N-0000U4-Mv for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2012 17:18:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TU29L-0004uf-KW for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2012 17:18:05 -0400 Original-Received: from smtprelay-b31.telenor.se ([213.150.131.20]:39830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TU29L-0004sd-0q for bug-gnu-emacs@gnu.org; Thu, 01 Nov 2012 17:18:03 -0400 Original-Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-b31.telenor.se (Postfix) with ESMTP id 05185C32C for ; Thu, 1 Nov 2012 22:17:59 +0100 (CET) X-SMTPAUTH-B2: [b157288] X-SENDER-IP: [85.224.213.138] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ak1MAJPmklBV4NWKPGdsb2JhbABEhS6+BhkBAQEBODSCTEIBJyQPJQEEJQpLh2ybQqFZFIwBgn+DIgOXE5IYgWM X-IronPort-AV: E=Sophos;i="4.80,695,1344204000"; d="scan'208";a="438366951" Original-Received: from c-8ad5e055.1542-1-64736c20.cust.bredbandsbolaget.se (HELO goblin) ([85.224.213.138]) by ipb2.telenor.se with ESMTP; 01 Nov 2012 22:17:59 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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.x 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:66328 Archived-At: Hi, In cedet/srecode/srt-mode.el the srecode-template-mode function assigns the global value of comment-start and comment-end. I guess that it should make-local-variable just like it does for the other variables. (define-derived-mode srecode-template-mode fundamental-mode "SRecorder" "Major-mode for writing SRecode macros." (setq comment-start ";;" comment-end "") (set (make-local-variable 'parse-sexp-ignore-comments) t) (set (make-local-variable 'comment-start-skip) "\\(\\(^\\|[^\\\\\n]\\)\\(\\\\\\\\\\)*\\);+ *") (set (make-local-variable 'font-lock-defaults) '(srecode-font-lock-keywords nil ;; perform string/comment fontification nil ;; keywords are case sensitive. ;; This puts _ & - as a word constituent, ;; simplifying our keywords significantly ((?_ . "w") (?- . "w"))))) Regards, /Johan In GNU Emacs 24.2.1 (i686-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-09-03 on goblin Windowing system distributor `The X.Org Foundation', version 11.0.11203000 Configured using: `configure '--prefix=/home/jcl/usr' '--without-toolkit-scroll-bars' '-C' '--disable-maintainer-mode' '--without-compress-info'' 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_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Info Minor modes in effect: global-cwarn-mode: t which-function-mode: t display-time-mode: t icomplete-mode: t minibuffer-depth-indicate-mode: t diff-auto-refine-mode: t shell-dirtrack-mode: t ido-everywhere: t electric-layout-mode: t electric-indent-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: C-q C-g C-x C-b f i n d SPC | S-SPC g r e p SPC s r t - m o d e C-s C-x C-S-f C-s c o m m e n t - s t r t C-h v m a j o r - a u t o - m o d e - a M-f M-f M-b C-s C-d C-s C-s C-q t M-x c e d M-x s r e r e C-g C-q C-q s r t SPC M-m M-m b u g M-0 q q C-a C-SPC M-F M-w M-z f n M-x e r p o r e p o r t - e m b C-g C-h f r e p o r t - e m b - q M-x r e p o r t - e b - q s r t - 0 = m o d e M-x s r t M-x c o m m e n t - s t q r a a a r t M-x C-e , SPC C-w C-w c e d e t , s r e c o r d M-1 q M-x r e o p o r r t e b - i n f M-x C-e Recent messages: Grep finished (matches found) Mark set [2 times] Error during redisplay: (wrong-type-argument arrayp nil) [5 times] register f -> /alfa/home/jcl/build/trunk/lisp/cedet/srecode/srt-mode.el register F -> srt-mode.el Quit Type C-x 1 to delete the help window. Contacting host: debbugs.gnu.org:80 [4 times] call-interactively: Buffer is read-only: # Making completion list... [2 times] Load-path shadows: None found. Features: (shadow url-cache url-http url-gw url-auth emacsbug inversion vc-bzr jcl-replace jcl-ruby jcl-sl w3m-load jcl-w3m w3m-search jcl-work-buffer w3m-type-ahead jcl-games jcl-text-translator-init text-translator text-translator-window text-translator-vars text-translator-sites jcl-muse htmlize-hack htmlize muse-latex muse-html muse-xml-common muse-colors cus-edit cus-start cus-load muse-publish muse-project muse-protocols muse-regexps muse muse-nested-tags muse-mode jcl-dictem-init dictem jcl-yaoddmuse yaoddmuse-extension yaoddmuse url url-proxy url-privacy url-expand url-methods url-history url-cookie url-util url-parse url-vars skeleton sgml-mode derived generic cl-specs edebug hippie-exp dabbrev add-log vc-git semantic/find srecode/srt-mode semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn semantic/db semantic/format ezimage srecode/template srecode/srt-wy semantic/wisent semantic/wisent/wisent semantic/ctxt srecode/ctxt semantic/tag-ls srecode/compile srecode/dictionary srecode/table srecode eieio-base semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet network-stream tls jcl-stumpwm autorevert jcl-slime slime-fancy slime-fontifying-fu slime-package-fu slime-references slime-scratch slime-presentations slime-fuzzy slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-parse slime-repl slime apropos hyperspec find-lisp misearch multi-isearch gnus-dired ind-util w3m-form w3m browse-url doc-view jka-compr image-mode timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util sort smiley gnus-cite flow-fill mail-extr gnus-bcklg gnus-async eldoc eldoc-eval-autoloads muse-autoloads svg-clock-autoloads package tabulated-list jcl-renegade-goblin jcl-home-boot mule-util flyspell qp parse-time gnus-ml nndraft nnmh nnfolder nnml gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime dig nntp gnus-cache jcl-gnus-init jcl-gnus gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range gnus-win mailcap starttls smtpmail sendmail message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus gnus-ems nnheader mail-utils wid-edit jcl-goblin fuzzy-match jcl-load-beta jcl-torrent text-translator-load jcl-calendar-init appt jcl-calendar holidays hol-loaddefs diary-lib diary-loaddefs cal-menu calendar cal-loaddefs jcl-emms-init emms-playing-time emms-mode-line emms-cache emms-info-ogginfo emms-info-mp3info emms-info later-do emms-playlist-mode emms-player-vlc emms-player-mplayer emms-player-simple emms-source-playlist emms-source-file emms-setup emms emms-compat jcl-erc-init jcl-file-cache-init jcl-grep-sbg sbg jcl-ido-init jcl-eel bindat jcl-dired dired-x dired-details wdired dired-aux jcl-register-init jcl-command-subset-init jcl-generic generic-x jcl-erlang-init jcl-ssit jcl-erlang-sbg erlang-eunit jcl-erlang distel-ie edb patmatch erl-service derl erlext epmd net-fsm erl distel erlang jcl-safe jcl-abbrev-init jcl-swedish-postfix quail help-mode jcl-term time-stamp ange-ftp jcl-face hl-line jcl-modes-init jcl-rfc rfcview view goto-addr proced table picture inf-ruby ruby-mode sh-script noutline outline hideshow cwarn jcl-imenu jcl-global-init which-func imenu time winner thingatpt paren mic-paren printing ps-print ps-def lpr icomplete ispell uniquify mb-depth midnight whitespace ffap saveplace jcl-keys-init diff-mode easy-mmode term disp-table ehelp kmacro tramp tramp-compat auth-source eieio assoc gnus-util mm-util mail-prsvr password-cache shell pcomplete format-spec tramp-loaddefs windmove jcl-keys jcl-load-functions jcl-file-cache ert find-func ewoc debug filecache jcl-elisp hi-lock jcl-register jcl-grep grep compile jcl-command-subset ido jcl-emacsclient jcl-duff jcl-template-init jcl-template jcl-motion jcl-windows jcl-recommended jcl-site-start jcl-erlang-log bookmark pp jcl-ediff byte-opt warnings bytecomp byte-compile cconv macroexp jcl-misc newcomment jcl-compile ediff-merg ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff fpl electric cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs erlang-start clearcase tq reporter executable dired comint regexp-opt ansi-color ring info easymenu jcl-times-init advice help-fns advice-preload jcl-times jcl-util server cl jcl-load-path 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)