From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ryo Furue Newsgroups: gmane.emacs.bugs Subject: bug#24181: 25.1.50; ruby mode: wrong auto indent after "?" string literal Date: Mon, 8 Aug 2016 12:50:30 +0900 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1470628353 13206 195.159.176.226 (8 Aug 2016 03:52:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 8 Aug 2016 03:52:33 +0000 (UTC) To: 24181@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 08 05:52:28 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWbby-00017z-Lr for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Aug 2016 05:52:22 +0200 Original-Received: from localhost ([::1]:54741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWbbq-0004jn-8x for geb-bug-gnu-emacs@m.gmane.org; Sun, 07 Aug 2016 23:52:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37134) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWbbh-0004ji-7o for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2016 23:52:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWbbe-00064t-TX for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2016 23:52:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWbbe-00064p-Pb for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2016 23:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bWbbe-0002bf-FO for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2016 23:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ryo Furue Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Aug 2016 03:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24181 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.14706282859970 (code B ref -1); Mon, 08 Aug 2016 03:52:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Aug 2016 03:51:25 +0000 Original-Received: from localhost ([127.0.0.1]:59417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWbb2-0002ak-Rq for submit@debbugs.gnu.org; Sun, 07 Aug 2016 23:51:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46103) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWbb0-0002aX-Bh for submit@debbugs.gnu.org; Sun, 07 Aug 2016 23:51:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWbau-00061i-9D for submit@debbugs.gnu.org; Sun, 07 Aug 2016 23:51:17 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWbau-00061a-5r for submit@debbugs.gnu.org; Sun, 07 Aug 2016 23:51:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWbar-0004iU-IQ for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2016 23:51:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWbaq-00061G-35 for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2016 23:51:13 -0400 Original-Received: from mail-yb0-x22a.google.com ([2607:f8b0:4002:c09::22a]:34807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWbap-000616-Ui for bug-gnu-emacs@gnu.org; Sun, 07 Aug 2016 23:51:12 -0400 Original-Received: by mail-yb0-x22a.google.com with SMTP id x196so33097492ybe.1 for ; Sun, 07 Aug 2016 20:51:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=QWQH+0DF3DC6SyahybUGwikSNelRxzSwQKa8E6eCeLE=; b=ZwHjCCIIFtoSn4SvlL6vaesFL9Svgx85ODLXraEBnVM7YPkQoHZRcJpsiOTAm4R9+z sf2l7pktka2Zmlx9pMSXC7F9XAU98WvmCIsFbxeHiAsa7/klbFKvaDnOD3YXiWl3NDBj Cclm5VI41K56FIJxa5M8w2iBMacqUMFIF82jRYlGQTYrBs+OTHuXg2/grxGnB5KzPTlQ bQEH1J+8nTNi5UM/51ljh5h5Dqp0K3sxuLDCFxl1wvz2NHwUFIWb7gMm+sxPsN44qHBP jxqhPUo/Siw2KpQdEcIPQrxM1/ZA4W+tDexBOAeP5WjYzvnmM9MYLcOKkU5u3ucShfa1 fOlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=QWQH+0DF3DC6SyahybUGwikSNelRxzSwQKa8E6eCeLE=; b=AtDowexkM5/IszUiveewWq+v0e3wnC1HixZWR/MPBJEHBdj5LyCXdDjev+BJxzMF7S RojbPkFOH1ev4CF8N0Vgx36GMVQWG7Ro+p4GRaT9vM/q56VANc567UxTFdirJUDddPv9 WLkXoRNEnbHMyPFGtADNE9W8517F4H3o/bhSkVE+FanGGIqfOQhtdfNFoyFgbgrB9iTU ReG7APFjO9K243L0/MGEpQyVQE8z7R2jjNcubP9knryvQQ45DzQ1C/pNCbMTYQUOlzMp vPX2FLlw75eXlMjKGi6XBYZZTc5IhrJZ9PeXS2cY/IamAre6/q1mHmMBthKIVT3PBBqk m+Qg== X-Gm-Message-State: AEkoousrCecFV0uufVPjPMymA1HsSFhDTgJVntdnp32xHlV5ZcJ3k4EmZ//eqGbLAI7bcpvIlkZJUYPt7ahsnQ== X-Received: by 10.31.15.67 with SMTP id 64mr48205851vkp.37.1470628270961; Sun, 07 Aug 2016 20:51:10 -0700 (PDT) Original-Received: by 10.159.36.53 with HTTP; Sun, 7 Aug 2016 20:50:30 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:121953 Archived-At: Hi emacs maintainers, 1. Open an empty Ruby source code, say "tmp.rb". 2. Type the following: #!/usr/bin/ruby base = ?a.ord - 1 On hitting the return key at the end of the second line, the cursor moves below "a", not to the top of the third line. The indentation state seems to be confused. I did this test with "emacs -q" . ?a is a valid Ruby syntax for string literal. After writing this, I learned that "a".ord is equivalent (I think), so I already have a workaround. Hope this helps, Ryo In GNU Emacs 25.1.50.1 (x86_64-apple-darwin15.6.0, NS appkit-1404.47 Version 10.11.6 (Build 15G31)) of 2016-07-27 built on furufuru-mac.yes.jamstec.go.jp Repository revision: 682fdae7efe5a36636539b953a657445f2f3382b Windowing system distributor 'Apple', version 10.3.1404 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. (New file) C-h C-g is undefined Making completion list... [2 times] Configured using: 'configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs/HEAD-682fdae/share/info/emacs --prefix=/usr/local/Cellar/emacs/HEAD-682fdae --with-xml2 --without-dbus --with-gnutls --with-rsvg --with-imagemagick --with-ns --disable-ns-self-contained' Configured features: JPEG RSVG IMAGEMAGICK NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS Important settings: value of $LC_COLLATE: C value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Ruby Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-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 blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message subr-x puny seq byte-opt gv bytecomp byte-compile cl-extra help-mode cconv cl-loaddefs pcase cl-lib dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs 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 smie easymenu time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 208190 9578) (symbols 48 20842 0) (miscs 40 74 216) (strings 32 19355 5290) (string-bytes 1 615360) (vectors 16 34870) (vector-slots 8 670676 5823) (floats 8 177 312) (intervals 56 241 2) (buffers 976 14))