From unknown Mon Aug 18 17:54:13 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11613: 24.1.50; ruby-mode highlighting/indentation issues Resent-From: Quintus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Jun 2012 19:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11613 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 11613@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13386640269910 (code B ref -1); Sat, 02 Jun 2012 19:08:01 +0000 Received: (at submit) by debbugs.gnu.org; 2 Jun 2012 19:07:06 +0000 Received: from localhost ([127.0.0.1]:54888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SatfG-0002Zm-1z for submit@debbugs.gnu.org; Sat, 02 Jun 2012 15:07:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57238) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SanC2-0001qc-B5 for submit@debbugs.gnu.org; Sat, 02 Jun 2012 08:12:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SanAE-0000Ro-8n for submit@debbugs.gnu.org; Sat, 02 Jun 2012 08:10:39 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00,FROM_12LTRDOM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:37292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SanAE-0000Rk-5Y for submit@debbugs.gnu.org; Sat, 02 Jun 2012 08:10:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SanAC-0002Zp-BO for bug-gnu-emacs@gnu.org; Sat, 02 Jun 2012 08:10:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SanAA-0000RM-DF for bug-gnu-emacs@gnu.org; Sat, 02 Jun 2012 08:10:35 -0400 Received: from h1934006.stratoserver.net ([85.214.128.240]:51822 helo=mail.pegasus-alpha.eu) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SanAA-0000RI-3O for bug-gnu-emacs@gnu.org; Sat, 02 Jun 2012 08:10:34 -0400 Received: from [192.168.178.25] (dtmd-4d052daf.pool.mediaWays.net [77.5.45.175]) by mail.pegasus-alpha.eu (Postfix) with ESMTPSA id EAE72111C03F for ; Sat, 2 Jun 2012 14:10:30 +0200 (CEST) Message-ID: <4FCA0258.4050803@quintilianus.eu> Date: Sat, 02 Jun 2012 14:08:56 +0200 From: Quintus User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.3 (------) X-Mailman-Approved-At: Sat, 02 Jun 2012 15:07:04 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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.9 (------) The following Ruby code snippets have indentation or syntax highlighting problems in ruby-mode: --------------------------------- ary = %w[deg abs def] breaks(indentation) sym = :@symbol_not_ivar sym = :"this is a symbol, not a string" str = "This is \#{no interpolation} despite the #" #@comment, not ruby code. Whole line highlighted despite the #. # This is a comment and cannot have #{interpolation} in it. --------------------------------- None of these is obfuscated or unusual code and is seen every now and then in normal Ruby code (the last one mostly in documentation comments), hence they should be highlighted/indented properly. Greetings, Marvin In GNU Emacs 24.1.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of 2012-06-02 on hades Configured using: `configure '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=/usr/lib' '--mandir=/usr/share/man' '--without-sound' '--with-xft' '--with-x-toolkit=gtk' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C 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.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Ruby Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-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: ESC [ > 1 ; 2 8 0 2 ; 0 c ESC x r e p o r t - e m TAB RET Recent messages: ("emacs" "foobar.rb") For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils ruby-mode time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment 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) From unknown Mon Aug 18 17:54:13 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Quintus Subject: bug#11613: closed (24.1.50; ruby-mode highlighting/indentation issues) Message-ID: References: <504976AE.3010001@yandex.ru> <4FCA0258.4050803@quintilianus.eu> X-Gnu-PR-Message: they-closed 11613 X-Gnu-PR-Package: emacs Reply-To: 11613@debbugs.gnu.org Date: Fri, 07 Sep 2012 04:24:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1346991842-1535-1" This is a multi-part message in MIME format... ------------=_1346991842-1535-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #11613: 24.1.50; ruby-mode highlighting/indentation issues which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 11613@debbugs.gnu.org. --=20 11613: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D11613 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1346991842-1535-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 11613-done) by debbugs.gnu.org; 7 Sep 2012 04:23:26 +0000 Received: from localhost ([127.0.0.1]:45169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9q6I-0000O0-OO for submit@debbugs.gnu.org; Fri, 07 Sep 2012 00:23:26 -0400 Received: from forward10.mail.yandex.net ([77.88.61.49]:33031) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T9q6F-0000Nr-JL for 11613-done@debbugs.gnu.org; Fri, 07 Sep 2012 00:23:25 -0400 Received: from smtp6.mail.yandex.net (smtp6.mail.yandex.net [77.88.61.56]) by forward10.mail.yandex.net (Yandex) with ESMTP id 991E71021E18 for <11613-done@debbugs.gnu.org>; Fri, 7 Sep 2012 08:23:06 +0400 (MSK) Received: from smtp6.mail.yandex.net (localhost [127.0.0.1]) by smtp6.mail.yandex.net (Yandex) with ESMTP id 85A4F16405EB for <11613-done@debbugs.gnu.org>; Fri, 7 Sep 2012 08:23:06 +0400 (MSK) Received: from 5x166x243x132.dynamic.spb.ertelecom.ru (5x166x243x132.dynamic.spb.ertelecom.ru [5.166.243.132]) by smtp6.mail.yandex.net (nwsmtp/Yandex) with ESMTP id N5O0tRBU-N6O0teYw; Fri, 7 Sep 2012 08:23:06 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1346991786; bh=nrn0/GrJlWqlA3cxf7bixVIGC1reJ7q8TnhEqgP2L58=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:Subject: Content-Type:Content-Transfer-Encoding; b=t5ptqedx3g6QuonEDgTzc6UjIR8aHad4dw4/tUWbQ3ffCFG9D7h+WPM1sC0axUpnI rpLuqwJEnUoBrzxUTAIM97JI9EvgF7nks7NAxp4hfAvR5vApAcHGeWdVmO4HpW+gQZ CNsP8+9p4i65Pxo2ar5p2NaAM6al6vm7txd7laNI= Message-ID: <504976AE.3010001@yandex.ru> Date: Fri, 07 Sep 2012 08:23:10 +0400 From: Dmitry Gutov User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0 MIME-Version: 1.0 To: 11613-done@debbugs.gnu.org Subject: 24.1.50; ruby-mode highlighting/indentation issues Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 11613-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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: -2.6 (--) All fixed in revision 109911, except for the string symbol case, which makes sense both ways, and IMO is more trouble that it's worth. --Dmitry ------------=_1346991842-1535-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 2 Jun 2012 19:07:06 +0000 Received: from localhost ([127.0.0.1]:54888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SatfG-0002Zm-1z for submit@debbugs.gnu.org; Sat, 02 Jun 2012 15:07:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57238) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SanC2-0001qc-B5 for submit@debbugs.gnu.org; Sat, 02 Jun 2012 08:12:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SanAE-0000Ro-8n for submit@debbugs.gnu.org; Sat, 02 Jun 2012 08:10:39 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00,FROM_12LTRDOM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:37292) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SanAE-0000Rk-5Y for submit@debbugs.gnu.org; Sat, 02 Jun 2012 08:10:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SanAC-0002Zp-BO for bug-gnu-emacs@gnu.org; Sat, 02 Jun 2012 08:10:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SanAA-0000RM-DF for bug-gnu-emacs@gnu.org; Sat, 02 Jun 2012 08:10:35 -0400 Received: from h1934006.stratoserver.net ([85.214.128.240]:51822 helo=mail.pegasus-alpha.eu) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SanAA-0000RI-3O for bug-gnu-emacs@gnu.org; Sat, 02 Jun 2012 08:10:34 -0400 Received: from [192.168.178.25] (dtmd-4d052daf.pool.mediaWays.net [77.5.45.175]) by mail.pegasus-alpha.eu (Postfix) with ESMTPSA id EAE72111C03F for ; Sat, 2 Jun 2012 14:10:30 +0200 (CEST) Message-ID: <4FCA0258.4050803@quintilianus.eu> Date: Sat, 02 Jun 2012 14:08:56 +0200 From: Quintus User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.1.50; ruby-mode highlighting/indentation issues Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.3 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 02 Jun 2012 15:07:04 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 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.9 (------) The following Ruby code snippets have indentation or syntax highlighting problems in ruby-mode: --------------------------------- ary = %w[deg abs def] breaks(indentation) sym = :@symbol_not_ivar sym = :"this is a symbol, not a string" str = "This is \#{no interpolation} despite the #" #@comment, not ruby code. Whole line highlighted despite the #. # This is a comment and cannot have #{interpolation} in it. --------------------------------- None of these is obfuscated or unusual code and is seen every now and then in normal Ruby code (the last one mostly in documentation comments), hence they should be highlighted/indented properly. Greetings, Marvin In GNU Emacs 24.1.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of 2012-06-02 on hades Configured using: `configure '--prefix=/usr' '--sysconfdir=/etc' '--localstatedir=/var' '--libexecdir=/usr/lib' '--mandir=/usr/share/man' '--without-sound' '--with-xft' '--with-x-toolkit=gtk' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C 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.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Ruby Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-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: ESC [ > 1 ; 2 8 0 2 ; 0 c ESC x r e p o r t - e m TAB RET Recent messages: ("emacs" "foobar.rb") For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils ruby-mode time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment 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) ------------=_1346991842-1535-1--