From unknown Sat Jun 21 03:08:09 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#6358 <6358@debbugs.gnu.org> To: bug#6358 <6358@debbugs.gnu.org> Subject: Status: 23.2; foreach should not be a javascript keyword Reply-To: bug#6358 <6358@debbugs.gnu.org> Date: Sat, 21 Jun 2025 10:08:09 +0000 retitle 6358 23.2; foreach should not be a javascript keyword reassign 6358 emacs submitter 6358 Jack Tanner severity 6358 normal tag 6358 moreinfo unreproducible thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 05 13:08:06 2010 Received: (at submit) by debbugs.gnu.org; 5 Jun 2010 17:08:06 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKwqq-0004lH-Sj for submit@debbugs.gnu.org; Sat, 05 Jun 2010 13:08:05 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKvEa-000419-KT for submit@debbugs.gnu.org; Sat, 05 Jun 2010 11:24:30 -0400 Received: from lists.gnu.org ([199.232.76.165]:42368) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OKvEV-0001Su-HM for submit@debbugs.gnu.org; Sat, 05 Jun 2010 11:24:23 -0400 Received: from [140.186.70.92] (port=57778 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKvET-0007E2-NB for bug-gnu-emacs@gnu.org; Sat, 05 Jun 2010 11:24:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RECEIVED_FROM_WINDOWS_HOST,T_RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OKvES-0002LZ-7p for bug-gnu-emacs@gnu.org; Sat, 05 Jun 2010 11:24:21 -0400 Received: from blu0-omc1-s27.blu0.hotmail.com ([65.55.116.38]:53297) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKvES-0002LN-5R for bug-gnu-emacs@gnu.org; Sat, 05 Jun 2010 11:24:20 -0400 Received: from BLU0-SMTP34 ([65.55.116.7]) by blu0-omc1-s27.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 5 Jun 2010 08:24:19 -0700 X-Originating-IP: [96.236.162.11] X-Originating-Email: [ihok@hotmail.com] Message-ID: Received: from [192.168.1.26] ([96.236.162.11]) by BLU0-SMTP34.blu0.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Sat, 5 Jun 2010 08:24:18 -0700 Date: Sat, 05 Jun 2010 11:24:17 -0400 From: Jack Tanner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 23.2; foreach should not be a javascript keyword Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 05 Jun 2010 15:24:18.0972 (UTC) FILETIME=[2A94CDC0:01CB04C3] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+ X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 05 Jun 2010 13:08:02 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) When editing a .js file in js-mode, "foreach" is highlighted as a keyword. It's not a valid JavaScript keyword and should not be highlighted. foreach (var foo in myObj) { } // Invalid construct In GNU Emacs 23.2.1 (i386-mingw-nt6.1.7600) of 2010-05-08 on G41R2F1 Windowing system distributor `Microsoft Corp.', version 6.1.7600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/include' 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: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Javascript Minor modes in effect: shell-dirtrack-mode: t nxhtml-menu-mode: t nxhtml-tag-do-also: t popcmp-group-alternatives: t popcmp-short-help-beside-alts: t mlinks-active-links: t css-palette-global-mode: t rngalt-minimal-validation-header: t rngalt-display-validation-header: t show-paren-mode: t desktop-save-mode: t cua-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 blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-c C-s c l a s s : ' ' C-s C-x C-s C-x C-f ~ / c / / c y g d C-a c : / s i t e - l i s p / P r o \ SPC SPC F SPC s e m l i 2 l i j s l a j m o j a p r o g j C-s f o r e a C-s M-x j s C-g C-h a j s - C-x k C-s i d e n t i f i e C-s C-s C-s M-x e m b u g - C-g M-x e m a c s - b C-g C-h a r e p o r t M-x r e p o r t - e m Recent messages: Mark saved where search started Mark set Making completion list... Quit Type C-x 4 C-o RET to restore the other window. Mark set Mark saved where search started Mark set Quit [2 times] Type C-x 4 C-o RET to restore the other window. Load-path shadows: c:/site-lisp/table hides c:/Program Files 2/emacs/emacs-23.2/lisp/textmodes/table c:/site-lisp/css-mode hides c:/Program Files 2/emacs/emacs-23.2/lisp/textmodes/css-mode Features: (shadow sort mail-extr message ecomplete rfc822 mml mml-sec mailabbrev nnheader gmm-utils mailheader canlock sha1 hex-util hashcash mail-utils emacsbug tramp-imap tramp-gw tramp-fish tramp-cache tramp-ftp tramp-cmds tramp auth-source password-cache format-spec tramp-compat trampver face-remap php-mode cc-langs add-log debug cogre-mode cogre picture-hack rect picture cogre-load cogre-loaddefs cogre-srecode semantic/edit semantic/find srecode/srt-mode semantic/analyze semantic/sort semantic/scope semantic/analyze/fcn semantic/db semantic/format srecode/template srecode/srt-wy semantic/wisent semantic/wisent/wisent semantic/ctxt srecode/ctxt semantic/tag-ls srecode/compile srecode/map semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw cedet srecode/dictionary srecode/table srecode mode-local eieio-base eieio-opt eieio multi-isearch css-mode nxml-uchnm rng-xsd xsd-regexp rng-cmpct nxhtml-mumamo mumamo-fun nxhtml vc-git js json etags newcomment cc-mode cc-fonts cc-menus cc-styles cc-align ess-toolbar ess-mous mouseme thingatpt browse-url ess-menu speedbar sb-image ezimage dframe ess-swv ess-noweb noweb-font-lock-mode essl-bugs essd-omg essl-omg essd-els essd-sas essl-sas essa-sas executable shell essd-arc essd-vst essd-xls essl-lsp essd-sta essl-sta make-regexp essd-sp6w essd-sp4 essd-sp3 essd-r essd-r-args assoc essl-s ess-inf ess-utils ess-mode noweb-mode ess ess-cust ess-emcs ess-site nxhtml-autostart nxhtml-autoload moz cc-cmds majmodpri nxhtml-menu udev-rinari udev-ecb udev flymake-js flymake nxhtml-mode html-quote tidy-xhtml ediff-merg ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff html-imenu imenu loadhist popcmp xhtml-help mlinks html-toc xml fupd html-pagetoc foldit appmenu-fold appmenu help-mode view fold-dwim hideshow html-upl html-site derived ffip gimpedit dired css-palette css-color mumamo sgml-mode rngalt ourcomments-util uniquify recentf tree-widget org byte-opt org-footnote org-src org-list org-faces org-compat org-macs noutline outline ido grep compile comint ring bookmark pp apropos rng-nxml nxml-mode nxml-outln nxml-rap nxml-glyph rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-util nxml-enc xmltok flyspell ispell cc-engine cc-vars cc-defs regexp-opt web-vcs bytecomp byte-compile rx advice help-fns advice-preload url-http tls url url-proxy url-privacy url-expand url-methods url-history url-auth url-cookie timezone url-util url-parse url-gw url-vars mm-decode gnus-util netrc mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mm-util time-date mail-prsvr cus-edit easymenu wid-edit cl cl-19 web-autoload nxhtml-base easy-mmode paren desktop delsel cua-base cus-start cus-load tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars 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 multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 07 17:44:19 2010 Received: (at 6358) by debbugs.gnu.org; 7 Jun 2010 21:44:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLk7H-0003Lh-EH for submit@debbugs.gnu.org; Mon, 07 Jun 2010 17:44:19 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLk7G-0003Lb-3U for 6358@debbugs.gnu.org; Mon, 07 Jun 2010 17:44:18 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OLk7B-0002ZT-U3; Mon, 07 Jun 2010 17:44:13 -0400 To: Jack Tanner Subject: Re: bug#6358: 23.2; foreach should not be a javascript keyword References: From: Glenn Morris X-Spook: AVN Mahmoud Ahmadinejad e-bomb PET Agfa Abbas MIT-LL virus X-Ran: #?}{8\Cq}vc@*)|98'v]#o{3l`!Y[B{Y2Kc9B,k9I*xSF/OWJj,s-k?R}2@MZ*Fkc~Z>sa X-Hue: red X-Debbugs-No-Ack: yes X-Attribution: GM Date: Mon, 07 Jun 2010 17:44:13 -0400 In-Reply-To: (Jack Tanner's message of "Sat\, 05 Jun 2010 11\:24\:17 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: 6358 Cc: 6358@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) Jack Tanner wrote: > When editing a .js file in js-mode, "foreach" is highlighted as a > keyword. It's not a valid JavaScript keyword and should not be > highlighted. > > foreach (var foo in myObj) { } // Invalid construct I cannot reproduce this with `emacs -Q' using 23.2 on GNU/Linux. > In GNU Emacs 23.2.1 (i386-mingw-nt6.1.7600) From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 18 15:08:32 2010 Received: (at 6358-done) by debbugs.gnu.org; 18 Jun 2010 19:08:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPgvX-0006TL-Jb for submit@debbugs.gnu.org; Fri, 18 Jun 2010 15:08:32 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPgvU-0006TG-VK for 6358-done@debbugs.gnu.org; Fri, 18 Jun 2010 15:08:29 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OPgvQ-0003vq-FH; Fri, 18 Jun 2010 15:08:24 -0400 To: 6358-done@debbugs.gnu.org Subject: Re: bug#6358: 23.2; foreach should not be a javascript keyword References: From: Glenn Morris X-Spook: TELINT Manfurov bank 9705 Samford Road benelux broadside X-Ran: 7qko}qB(S6Htt=K=mXi5X(&FA>>VRZ$_&L`Xh5oG7zxhEI:;B0I>H!.I.yuQ'c%`eKYA<; X-Hue: cyan X-Attribution: GM Date: Fri, 18 Jun 2010 15:08:24 -0400 In-Reply-To: (Glenn Morris's message of "Mon\, 07 Jun 2010 17\:44\:13 -0400") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: 6358-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) In the absence of any response I am closing this. You can still reply any time in the next 28 days (or indeed after that if you follow the instructions about unarchiving bugs.) You need to explain how to make the issue happen starting from `emacs -Q'. Sorry, but I just can't see how this could happen with the js.el distributed with Emacs. The only thing that is highlighted is "for each" (with space between the two). This is apparently valid JavaScript, eg: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Statements/for_each...in From unknown Sat Jun 21 03:08:09 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 17 Jul 2010 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator