From pat.maddox@gmail.com Thu Feb 26 02:00:18 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 26 Feb 2009 10:00:18 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=1.3 required=4.0 tests=FOURLA,IMPRONONCABLE_1, MURPHY_WRONG_WORD2 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1QA0Ehx014078 for ; Thu, 26 Feb 2009 02:00:15 -0800 Received: from mx10.gnu.org ([199.232.76.166]:50713) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Lcd08-00036H-0f for emacs-pretest-bug@gnu.org; Thu, 26 Feb 2009 04:57:56 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Lcd2K-0004nE-7j for emacs-pretest-bug@gnu.org; Thu, 26 Feb 2009 05:00:12 -0500 Received: from qw-out-1920.google.com ([74.125.92.144]:62565) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lcd2J-0004n4-Tw for emacs-pretest-bug@gnu.org; Thu, 26 Feb 2009 05:00:12 -0500 Received: by qw-out-1920.google.com with SMTP id 4so480015qwk.24 for ; Thu, 26 Feb 2009 02:00:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=c1U33+Vobp7MbuqOtco3YABEmHHo/SqibZG4x6ByUvQ=; b=s1narMnYtGxX4EVvpkg8twjBlTm4RQQR3jDuPmZvs6m+7+ZGhoVhd2/GIRlAZH+gJ3 ZcA6e9WTNqyDNQK+Iz3R7x1SIktnoXOcB+yaro00NhjymMklTfiUGohNkQKf5W4gQ+Xd ouBzk8JNshyHpcrTvg1o5DXjaHOilMcPu2FM4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=ZQ4AeLhrAHQMyHFa5UikANElcMAv8Qpl7G3mWVHmJ9nAECK27qVujzQjci8SRWgaj3 8dSctmNNKhaxSPseBOO3YuhTEVUbtn2eJr5W6IK5gMq8WzQ+4IzESgKbCQF8OOt8bXHw zsI/GgRR/VU5BBxliJ5G/YdbNXGxnj0RCxOrQ= MIME-Version: 1.0 Received: by 10.224.2.138 with SMTP id 10mr1814381qaj.302.1235642410776; Thu, 26 Feb 2009 02:00:10 -0800 (PST) Date: Thu, 26 Feb 2009 02:00:10 -0800 Message-ID: <2c7e61990902260200q2495ab7fqe7cbe6acb583c9b1@mail.gmail.com> Subject: 23.0.91; javascript-mode indentation weirdness From: Pat Maddox To: emacs-pretest-bug@gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) If I'm on the last line of a file in javascript-mode and press tab to indent, it beeps and says "End of buffer". This doesn't happen in any other modes as far as I can tell. There's another problem with indentation or parsing, I'm not sure if it's related or not...I've written some code to automatically format braces: (add-hook 'javascript-mode-hook (lambda () (textmate-mode) (local-set-key "\r" (lambda () (interactive) (insert-line-before-closing-braces) (newline-and-indent))))) (defun insert-line-before-closing-braces () (interactive) (save-excursion (let ((content (buffer-substring (point) (line-end-position)))) (if (and (> (length content) 0) (string= (replace-regexp-in-string ")\\\|}" "" content) "")) (newline-and-indent))))) If I'm on the first line of a file and type (), and move between the parens and press return, I get an error. It works fine in every other mode I've tried, or on any line other than #1. Here's the error Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) =(nil 41) (if (= (char-before) 41) (progn (backward-list))) (when (= (char-before) 41) (backward-list)) (progn (skip-syntax-backward " ") (when (= ... 41) (backward-list)) (back-to-indentation) (cond (same-indent-p ...) (continued-expr-p ...) (t ...))) (if (looking-at "[({[][ ]*\\(/[/*]\\|$\\)") (progn (skip-syntax-backward " ") (when ... ...) (back-to-indentation) (cond ... ... ...)) (unless same-indent-p (forward-char) (skip-chars-forward " ")) (current-column)) (cond (ctrl-stmt-indent) ((js-continued-var-decl-list-p) (js-re-search-backward "\\" nil t) (+ ... javascript-indent-level)) ((nth 1 parse-status) (goto-char ...) (if ... ... ... ...)) (continued-expr-p javascript-indent-level) (t (let ... ... ind))) (let ((ctrl-stmt-indent ...) (same-indent-p ...) (continued-expr-p ...)) (cond (ctrl-stmt-indent) (... ... ...) (... ... ...) (continued-expr-p javascript-indent-level) (t ...))) (save-excursion (back-to-indentation) (let (... ... ...) (cond ... ... ... ... ...))) js-proper-indentation((1 1 nil nil nil nil 0 nil nil (1))) (indent-line-to (js-proper-indentation parse-status)) (progn (indent-line-to (js-proper-indentation parse-status)) (when (> offset 0) (forward-char offset))) (if (not (nth 8 parse-status)) (progn (indent-line-to ...) (when ... ...))) (when (not (nth 8 parse-status)) (indent-line-to (js-proper-indentation parse-status)) (when (> offset 0) (forward-char offset))) (let ((parse-status ...) (offset ...)) (when (not ...) (indent-line-to ...) (when ... ...))) javascript-indent-line() indent-according-to-mode() newline-and-indent() (if (and (> ... 0) (string= ... "")) (newline-and-indent)) (let ((content ...)) (if (and ... ...) (newline-and-indent))) (save-excursion (let (...) (if ... ...))) insert-line-before-closing-braces() (lambda nil (interactive) (insert-line-before-closing-braces) (newline-and-indent))() call-interactively((lambda nil (interactive) (insert-line-before-closing-braces) (newline-and-indent)) nil nil) In GNU Emacs 23.0.91.1 (i386-apple-darwin9.6.0, NS apple-appkit-949.43) of 2009-02-26 on booyah.local Windowing system distributor `Apple', version 10.3.949 configured using `configure '--with-ns'' 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: Emacs-Lisp Minor modes in effect: shell-dirtrack-mode: t diff-auto-refine-mode: t nxhtml-global-minor-mode: t global-auto-revert-mode: t show-paren-mode: t yas/minor-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 global-auto-composition-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-x b b l a y M-x j a v a s c ( q C-x h C-w / / ( C-x h C-w C-x C-f j a v a C-SPC C-w C-x C-s M-x s u b m i b u g r e p o r t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. No buffer matching `bla', create one? (y or n) Entering debugger... Back to top level. Mark set [4 times] Loading tramp...done Mark set Saving file /Users/padillac/code/emacs/javascript.el... Wrote /Users/padillac/code/emacs/javascript.el Making completion list... [2 times] From rgm@gnu.org Thu Feb 26 10:21:48 2009 Received: (at 2481) by emacsbugs.donarmstrong.com; 26 Feb 2009 18:21:48 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-8.0 required=4.0 tests=HAS_BUG_NUMBER, VALID_BTS_CONTROL,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1QILet9010752; Thu, 26 Feb 2009 10:21:41 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LckpO-0003VU-2D; Thu, 26 Feb 2009 13:19:22 -0500 From: Glenn Morris To: Pat Maddox Cc: 2481@debbugs.gnu.org Subject: Re: bug#2481: 23.0.91; javascript-mode indentation weirdness References: <2c7e61990902260200q2495ab7fqe7cbe6acb583c9b1@mail.gmail.com> X-Spook: basement benelux Venezuela Centro ICE CISU AGT. AMME X-Ran: "{gOi#oqulEAi-p3M>6a%9&Tl2(5mkzR.^^C&Wf(MfkG=:3a]c`!cpc!3fbYA9`s:[_`4n X-Hue: yellow X-Debbugs-No-Ack: yes X-Attribution: GM Date: Thu, 26 Feb 2009 13:19:21 -0500 In-Reply-To: <2c7e61990902260200q2495ab7fqe7cbe6acb583c9b1@mail.gmail.com> (Pat Maddox's message of "Thu, 26 Feb 2009 02:00:10 -0800") 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 reassign 2481 notemacs stop Pat Maddox wrote: > If I'm on the last line of a file in javascript-mode javascript-mode is not part of Emacs. > (add-hook 'javascript-mode-hook From lennart.borgman@gmail.com Thu Feb 26 15:07:59 2009 Received: (at 2481) by emacsbugs.donarmstrong.com; 26 Feb 2009 23:08:00 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.28]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1QN7uhr019915 for <2481@emacsbugs.donarmstrong.com>; Thu, 26 Feb 2009 15:07:58 -0800 Received: by yx-out-2324.google.com with SMTP id 8so571210yxg.31 for <2481@emacsbugs.donarmstrong.com>; Thu, 26 Feb 2009 15:07:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=3Uy8J3XAxJCXy0ds/pDQRi7dzsK2ZLcSd7kU6EVQUJo=; b=ufxDUAKlBv2fMNZsBZb63i/InT2GdP05RUiwAwvAbEDT1YYR3TXhNGPPoYKdqoEukY xFvRVOGaEAkJpvX8Dyqcve/jgLLmGfsCfCmRXpw7mqE8VyAxA+9XIUjFtJOZ6UONFYsM 3tU3asJzMdPZcFpd+KPRXjkheIPZnnXlBiToQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=LTne8EvckQ32hcPgFqIa7MQp9cS460DzKaXZi0X5K3Y1G8gtDjXYGBAiq4YhGaW+XO W8sB49OXrhehvKEIoJSGq78Mo27An8b1sXzTOnY8fhMNd5RofYCeqQcsvXJpGeLGzcA2 WpTxNtDAq/FNqiUeQjd9jkemrhH2TMav4x/kU= MIME-Version: 1.0 Received: by 10.231.20.5 with SMTP id d5mr2165395ibb.14.1235689676086; Thu, 26 Feb 2009 15:07:56 -0800 (PST) In-Reply-To: References: <2c7e61990902260200q2495ab7fqe7cbe6acb583c9b1@mail.gmail.com> Date: Fri, 27 Feb 2009 00:07:56 +0100 Message-ID: Subject: Re: bug#2481: 23.0.91; javascript-mode indentation weirdness From: Lennart Borgman To: Glenn Morris , 2481@debbugs.gnu.org Cc: Pat Maddox Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Thu, Feb 26, 2009 at 7:19 PM, Glenn Morris wrote: > reassign 2481 notemacs > stop > > Pat Maddox wrote: > >> If I'm on the last line of a file in javascript-mode > > javascript-mode is not part of Emacs. Not yet. From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 26 17:06:12 2011 Received: (at 2481-done) by debbugs.gnu.org; 26 Feb 2011 22:06:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PtSHE-0007iV-4u for submit@debbugs.gnu.org; Sat, 26 Feb 2011 17:06:12 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PtSHC-0007iK-R5 for 2481-done@debbugs.gnu.org; Sat, 26 Feb 2011 17:06:11 -0500 Received: from localhost ([127.0.0.1]:50375) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PtSH7-0000qj-Ek; Sat, 26 Feb 2011 17:06:05 -0500 From: Glenn Morris To: 2481-done@debbugs.gnu.org Subject: Re: bug#2481: 23.0.91; javascript-mode indentation weirdness References: <2c7e61990902260200q2495ab7fqe7cbe6acb583c9b1@mail.gmail.com> X-Spook: Soviet satellite imagery S Box quarter colonel X-Ran: ~sLe510,_]aK$MdQL55L$GRF'no|&(oO~5^]=tX#?G,#ozd{/xpO\}`tq.a.;2Sd>O5>D' X-Hue: white X-Attribution: GM Date: Sat, 26 Feb 2011 17:06:05 -0500 In-Reply-To: (Glenn Morris's message of "Thu, 26 Feb 2009 13:19:21 -0500") Message-ID: <3nmxli78oi.fsf@fencepost.gnu.org> 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.3 (------) X-Debbugs-Envelope-To: 2481-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.3 (------) There is a js.el in Emacs now. Please try that. Report any problems as new bug reports. Thanks. From unknown Wed Jun 25 10:54:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 27 Mar 2011 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