From debbugs-submit-bounces@debbugs.gnu.org Thu Aug 13 03:17:45 2020 Received: (at submit) by debbugs.gnu.org; 13 Aug 2020 07:17:45 +0000 Received: from localhost ([127.0.0.1]:46636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k67Ue-0007mH-VS for submit@debbugs.gnu.org; Thu, 13 Aug 2020 03:17:45 -0400 Received: from lists.gnu.org ([209.51.188.17]:46744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k67UZ-0007m4-SW for submit@debbugs.gnu.org; Thu, 13 Aug 2020 03:17:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k67UZ-0005bP-BC for bug-gnu-emacs@gnu.org; Thu, 13 Aug 2020 03:17:39 -0400 Received: from gate.utahime.jp ([183.180.29.210]:10806) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k67UV-0007zl-QS for bug-gnu-emacs@gnu.org; Thu, 13 Aug 2020 03:17:38 -0400 Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gate.utahime.jp (Postfix) with ESMTPS id 07D82E81C; Thu, 13 Aug 2020 16:17:31 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=utahime.org; s=maybe2019112701; t=1597303051; bh=UeOfWFTU4z7fKXdCQ0PiCDRmFYulDwBoEEwSJCHqovI=; h=Date:To:Subject:From; b=dHc9+Rnf9AiRJlb0LZq68/tJFrqeag5SqxNX5MXzVpvsC2VDwjAcRK96dw85vDjLS A3hGZz1SDwX3BInJQGAt0tsf3O9ilQ4l3pxSR0bSgwIB7vSQXaUHRoaCkpxP2ufGtY N9W7mO8s9VYYJ5OvIBdWP3PM2+sFUIRoXpTv37+KVuFrKmj1CmRlx+IUqhP0b3Ns/U kDrsJHQijCTd35DzmvxVD2vhDwWXHazD9pHRiR6KuFg5c+oOVzWJdu99UOQ6P0/fpT YrU9ZRgLC1VAHEADBldyTxK3dawrpZA/tf9kTfZxY7mvYAbDXpxB4AAVByN2aLjVvK slj2I0rNQE2hw== Received: from localhost (rolling.home.utahime.org [192.168.174.11]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by eastasia.home.utahime.org (Postfix) with ESMTPSA id DA43D54FE0; Thu, 13 Aug 2020 16:17:29 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.4 at eastasia.home.utahime.org Date: Thu, 13 Aug 2020 16:17:22 +0900 (JST) Message-Id: <20200813.161722.1489440870744906287.yasu@utahime.org> To: bug-gnu-emacs@gnu.org Subject: 28.0.50; [ruby-mode] ruby-{beginning,end}-of-block doesn't work as is exepected if arguments of method is divided into multi line From: Yasuhiro KIMURA X-Mailer: Mew version 6.8 on Emacs 28.0 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=183.180.29.210; envelope-from=yasu@utahime.org; helo=gate.utahime.jp X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/13 03:17:31 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) ruby-{beginning,end}-of-block doesn't work as is exepected if arguments of method is divided into multi line. Following is a sample code to reproduce the issue. ---------------------------------------------------------------------- 0001: class A 0002: def foo 0003: puts("aaa", "bbb") 0004: end 0005: end 0006: 0007: class B 0008: def foo 0009: puts("aaa", 0010: "bbb") 0011: end 0012: end ---------------------------------------------------------------------- At first let me assume point is on line 1 column 1. If I type 'C-M-n' in this situmation, then point moves to line 5 column 1. And if I type 'C-M-p' then point moves back to line 1 column 1. This is just expected behavior. Next let me assume point is on line 7 column 1 and I type 'C-M-n'. The expected behavior is that point moves to line 12 column 1. But what really happens is that point moves to line 10 column 1 and following error message is displayed in minibuffer. Wrong type argument: number-or-marker-p, nil In GNU Emacs 28.0.50 (build 1, x86_64-w64-mingw32) of 2020-08-13 built on ROLLING Repository revision: d089c4fbfc8be432dc3015a99b4044dab0a0de97 Repository branch: master Windowing system distributor 'Microsoft Corp.', version 10.0.18363 System Description: Microsoft Windows 10 Enterprise (v10.0.1909.18363.1016) Recent messages: Loading mime-setup... Loading mail-mime-setup...done gnus-mime-setup is not found. emh-setup is not found. Loading mime-setup...done Loading uniquify...done Turning on magit-auto-revert-mode...done Loading c:/Emacs-master/share/emacs/site-lisp/magit/magit-version.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Package cl is deprecated Configured using: 'configure --prefix=/c/Emacs-master --without-dbus' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS PDUMPER Important settings: value of $LANG: JPN locale-coding-system: cp932 Major mode: Fundamental Minor modes in effect: global-magit-file-mode: t magit-auto-revert-mode: t global-git-commit-mode: t shell-dirtrack-mode: t 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 blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: c:/Emacs-master/share/emacs/site-lisp/flim/md4 hides c:/Emacs-master/share/emacs/28.0.50/lisp/md4 c:/Emacs-master/share/emacs/site-lisp/flim/hex-util hides c:/Emacs-master/share/emacs/28.0.50/lisp/hex-util c:/Emacs-master/share/emacs/site-lisp/flim/sasl hides c:/Emacs-master/share/emacs/28.0.50/lisp/net/sasl c:/Emacs-master/share/emacs/site-lisp/flim/sasl-ntlm hides c:/Emacs-master/share/emacs/28.0.50/lisp/net/sasl-ntlm c:/Emacs-master/share/emacs/site-lisp/flim/sasl-digest hides c:/Emacs-master/share/emacs/28.0.50/lisp/net/sasl-digest c:/Emacs-master/share/emacs/site-lisp/flim/sasl-cram hides c:/Emacs-master/share/emacs/28.0.50/lisp/net/sasl-cram c:/Emacs-master/share/emacs/site-lisp/flim/ntlm hides c:/Emacs-master/share/emacs/28.0.50/lisp/net/ntlm c:/Emacs-master/share/emacs/site-lisp/flim/hmac-md5 hides c:/Emacs-master/share/emacs/28.0.50/lisp/net/hmac-md5 c:/Emacs-master/share/emacs/site-lisp/flim/hmac-def hides c:/Emacs-master/share/emacs/28.0.50/lisp/net/hmac-def Features: (shadow mew-varsx mew-win32 mew-w3m w3m doc-view jka-compr image-mode exif timezone w3m-hist w3m-fb bookmark-w3m w3m-ems w3m-favicon w3m-image tab-line w3m-proc w3m-util mew-auth mew-config mew-imap2 mew-imap mew-nntp2 mew-nntp mew-pop mew-smtp mew-ssl mew-ssh mew-net mew-highlight mew-sort mew-fib mew-ext mew-refile mew-demo mew-attach mew-draft mew-message mew-thread mew-virtual mew-summary4 mew-summary3 mew-summary2 mew-summary mew-search mew-pick mew-passwd mew-scan mew-syntax mew-bq mew-smime mew-pgp mew-header mew-exec mew-mark mew-mime mew-edit mew-decode mew-encode mew-cache mew-minibuf mew-complete mew-addrbook mew-local mew-vars3 mew-vars2 mew-vars mew-env mew-lang-jp mew-mule3 mew-mule mew-gemacs mew-key mew-func mew-blvs mew-const mew emacsbug sendmail magit-version yaml-mode mime-setup mail-mime-setup alist semi-setup path-util poe pym static apel-ver product semi-def psvn advice edmacro kmacro wid-edit cl pp elp ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap sgml-mode dom nxml-util nxml-enc xmltok magit-submodule magit-obsolete magit-blame magit-stash magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-collab ghub-graphql treepy pcase gsexp ghub url-http url-gw nsm url-auth url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap let-alist gnutls magit-files magit-refs magit-status magit package browse-url url-handlers url-parse auth-source json map url-vars magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode magit-core magit-autorevert autorevert filenotify magit-process magit-margin magit-mode git-commit magit-git magit-section eieio eieio-core cl-macs eieio-loaddefs magit-utils magit-popup format-spec crm log-edit easy-mmode message rmc puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log with-editor cl-extra help-mode seq byte-opt bytecomp byte-compile cconv cl-seq shell pcomplete comint ansi-color ring server dash gv cl-loaddefs cl-lib gitignore-mode gitconfig-mode conf-mode rx gitattributes-mode thingatpt easymenu japan-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer 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 composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray 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 threads w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 16 235298 9345) (symbols 48 24665 45) (strings 32 77463 2455) (string-bytes 1 2319270) (vectors 16 36327) (vector-slots 8 544019 21728) (floats 8 131 29) (intervals 56 864 403) (buffers 992 12)) From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 21 20:26:26 2020 Received: (at 42841) by debbugs.gnu.org; 22 Aug 2020 00:26:26 +0000 Received: from localhost ([127.0.0.1]:48529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9HMY-00037u-F2 for submit@debbugs.gnu.org; Fri, 21 Aug 2020 20:26:26 -0400 Received: from mail-lf1-f47.google.com ([209.85.167.47]:41582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9HMV-00037e-OB for 42841@debbugs.gnu.org; Fri, 21 Aug 2020 20:26:25 -0400 Received: by mail-lf1-f47.google.com with SMTP id i19so1745391lfj.8 for <42841@debbugs.gnu.org>; Fri, 21 Aug 2020 17:26:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=cqrPF6DWkPHlqsR7NN7NpSgfI+0lSQKAzKizcvxlwB4=; b=Py2lwm117ciRNnhOOtRy0I5vZtNuToDco66VM6vOhCVS2mBSKg+V2PyLPKf5gZKsI5 qxOoXi+h+JmjKFRo9zD2UhAAmorCLd5WWGVN4ROo2JX93J6HSI0Jt1YpNlVDVGbQ7emk lnmZCI3IPU6eaZnxbEjrpBqEIltvRWuu3s4g6hwpc8d3hsSOu7Zhs8SsgUEtFSx9XZNA QuXBkeqq2Gw5FpMNy96IQ+5vnHsmCmiFy4wSq+qdv1dXhZ7W2C2kj8wa6n+9Vmfk+UGL QPDC3YPioI+iT+qJJmUr5sKA5jJfIfm7tSmatXYAddHKmMv7L24fr/6UtiHWjYZamPiu puqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=cqrPF6DWkPHlqsR7NN7NpSgfI+0lSQKAzKizcvxlwB4=; b=Lx4WNDXnrUQUb/qZRjX9ydR6AmtgEBq/RQ010zUUY3372JRN24tzsI7vWUDFZXJWci 0Iw/BRh7fC8uuz7tWs8s8x3AQp6pBXBV6kdohjMM9uUpmWcGcwZM3tXu+8UumEQYmmuA g5FqvzSSerQRB7t3BBJTJJX8pAfovq+pnQ0GSPrveIf8SBO9Gam0SisdGpc63OUE5G7Z 20gnxoYGBOosz8P+iuAPlusb4ih4sNnrdDZyaQtIRFYv4VM7IL2jPdNt1/rNSZz2ItyC NP8QnQFW6TZqs9ROKkdIDPpUn9tp77ir298Kjv1VIeGqis/qclcem/Hg+9WNByRsESZ5 qT6Q== X-Gm-Message-State: AOAM530yBSIzmFXf1uNiLIEEWqk0R1X8I/JQkg0Aqk3C2TBAVKO2W7kK PQnk0SC7aUbSJAunIdAKd8+Yg6JQkmg= X-Google-Smtp-Source: ABdhPJxYlaiutSW9UqHYWg12PgosexlcpIic69dXUPo73zS8pSklzjughkECv2P2xaykxtcNdJMN0Q== X-Received: by 2002:ac2:568b:: with SMTP id 11mr2466468lfr.87.1598055977193; Fri, 21 Aug 2020 17:26:17 -0700 (PDT) Received: from [192.168.0.104] ([94.229.108.16]) by smtp.googlemail.com with ESMTPSA id u5sm695124lfr.3.2020.08.21.17.26.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Aug 2020 17:26:16 -0700 (PDT) Subject: Re: bug#42841: 28.0.50; [ruby-mode] ruby-{beginning,end}-of-block doesn't work as is exepected if arguments of method is divided into multi line To: Yasuhiro KIMURA , 42841@debbugs.gnu.org References: <20200813.161722.1489440870744906287.yasu@utahime.org> From: Dmitry Gutov Message-ID: <03ab23b5-a9fe-8aef-d27a-61761ff4ec80@yandex.ru> Date: Sat, 22 Aug 2020 03:26:15 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200813.161722.1489440870744906287.yasu@utahime.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: 42841 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Hi! On 13.08.2020 10:17, Yasuhiro KIMURA wrote: > ruby-{beginning,end}-of-block doesn't work as is exepected if > arguments of method is divided into multi line. Following is a sample > code to reproduce the issue. > > ---------------------------------------------------------------------- > 0001: class A > 0002: def foo > 0003: puts("aaa", "bbb") > 0004: end > 0005: end > 0006: > 0007: class B > 0008: def foo > 0009: puts("aaa", > 0010: "bbb") > 0011: end > 0012: end > ---------------------------------------------------------------------- > > At first let me assume point is on line 1 column 1. If I type 'C-M-n' > in this situmation, then point moves to line 5 column 1. And if I type > 'C-M-p' then point moves back to line 1 column 1. This is just > expected behavior. > > Next let me assume point is on line 7 column 1 and I type 'C-M-n'. The > expected behavior is that point moves to line 12 column 1. But what > really happens is that point moves to line 10 column 1 and following > error message is displayed in minibuffer. I can't seem to reproduce this. Even after some intensive testing. > Wrong type argument: number-or-marker-p, nil Could you perhaps provide a backtrace? Type M-x toggle-debug-on-error, then trigger the error again. From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 21 22:17:55 2020 Received: (at 42841) by debbugs.gnu.org; 22 Aug 2020 02:17:55 +0000 Received: from localhost ([127.0.0.1]:48582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9J6R-0005lx-KY for submit@debbugs.gnu.org; Fri, 21 Aug 2020 22:17:55 -0400 Received: from gate.utahime.jp ([183.180.29.210]:51259) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9J6P-0005lm-42 for 42841@debbugs.gnu.org; Fri, 21 Aug 2020 22:17:54 -0400 Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gate.utahime.jp (Postfix) with ESMTPS id 426161389A; Sat, 22 Aug 2020 11:17:50 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=utahime.org; s=maybe2019112701; t=1598062670; bh=lNLaaqeXQH7XY+aZet299obUw6T+zSmMkbwpyF4p/e8=; h=Date:To:Cc:Subject:From:In-Reply-To:References; b=XyBp2869HHNQ+0l+LeJino9yMb2rOLV0WjkHW46V4x5dNKTCy02cnRhwxQuDBNdta zO/w4RTauZOm79y6yqy4vPYBJEs19WZZ2KMzS5bjsIKY13KSAhKFwjBTl85dc5wWOL +Tox4CqLCbYqy3F9y/NCJ96OjSlcILDLF6uf18F2wfwu0x89vCDmWurpvicoYVF/SL HYLmwrvaL/a0m97GzzpQnKSWF1Nh3zJYC+cQuNyQEZ1kv7oanN9MTAnB5bBDyTQp5z nmCict8tNPfC3CMbK2ZDEWa6ilOlSqcNt401yAQ4YM+7gOgYDk67A/wKzooYeALEnC MQc1mz3T+dWxQ== Received: from localhost (rolling.home.utahime.org [192.168.174.11]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by eastasia.home.utahime.org (Postfix) with ESMTPSA id 1FB7461761; Sat, 22 Aug 2020 11:17:49 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.4 at eastasia.home.utahime.org Date: Sat, 22 Aug 2020 11:17:03 +0900 (JST) Message-Id: <20200822.111703.1806179178749269056.yasu@utahime.org> To: dgutov@yandex.ru Subject: Re: bug#42841: 28.0.50; [ruby-mode] ruby-{beginning,end}-of-block doesn't work as is exepected if arguments of method is divided into multi line From: Yasuhiro KIMURA In-Reply-To: <03ab23b5-a9fe-8aef-d27a-61761ff4ec80@yandex.ru> References: <20200813.161722.1489440870744906287.yasu@utahime.org> <03ab23b5-a9fe-8aef-d27a-61761ff4ec80@yandex.ru> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 42841 Cc: 42841@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) From: Dmitry Gutov Subject: Re: bug#42841: 28.0.50; [ruby-mode] ruby-{beginning,end}-of-block doesn't work as is exepected if arguments of method is divided into multi line Date: Sat, 22 Aug 2020 03:26:15 +0300 > I can't seem to reproduce this. Even after some intensive testing. > >> Wrong type argument: number-or-marker-p, nil > > Could you perhaps provide a backtrace? > > Type M-x toggle-debug-on-error, then trigger the error again. I started emacs with '-Q' option and got following backtrace. Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) ruby-move-to-block(1) ruby-end-of-block(1) funcall-interactively(ruby-end-of-block 1) call-interactively(ruby-end-of-block nil nil) command-execute(ruby-end-of-block) --- Yasuhiro KIMURA From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 22 09:30:15 2020 Received: (at 42841-done) by debbugs.gnu.org; 22 Aug 2020 13:30:15 +0000 Received: from localhost ([127.0.0.1]:49111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9Tb5-0001f8-9e for submit@debbugs.gnu.org; Sat, 22 Aug 2020 09:30:15 -0400 Received: from mail-lj1-f181.google.com ([209.85.208.181]:45511) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k9Tb2-0001dx-M1 for 42841-done@debbugs.gnu.org; Sat, 22 Aug 2020 09:30:13 -0400 Received: by mail-lj1-f181.google.com with SMTP id w25so4761302ljo.12 for <42841-done@debbugs.gnu.org>; Sat, 22 Aug 2020 06:30:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=2jlYSB6/vYFjK8odACHSJV9UlcXnvfLo2TMfIiSU/eg=; b=WCvKewHxG/CHf9u5sqiqS7LJpv5m8lWwDqA9Oxa9PeSTsz8sW3fdDYgui+WH4L3hEY cJbqQQERR+rC5GHAqcI5tHUe+c4tkfLy0zs9z9DHDobKGYZbVyI1t4bah1pjiyeFa357 PhQPxNk8e3np4xF18xAKn8+/pbzLOXyPH94j7jN0iP8xC1vSrjB5Oz4T/TO73xC/+aus r3CYXXgpGRhJPJPAlRWh+9wJHBlWNFRH+lrthWTumky0q8WFDFes1+CAzBkuE8CX5vL5 EvpTfvMmxf7PkCNB1f40rwOCQmWm1pr0nGzJLNbTnhi6sWH0qnUYQwWgC2mo8JihtT0O wX0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2jlYSB6/vYFjK8odACHSJV9UlcXnvfLo2TMfIiSU/eg=; b=nLJAcCDpta2PCAuA2FXXD/L99oQkSC1DQ3v2s+GpFVVChVOsgif7J9GZGg7lt4ks+N ImPdpj9fDiu+uWVW1OWIg/Bw8HNptcoYYsZfQvptUNnv1qo2W5AIKYTdzWy0sJhIwoFh nxAPWQR0SsJQ+1AP4MEqF8ve3vcIrt5gF4uDVW9ue1Uk3u9ApwLPfEFJlqQiXR4Y+6xf Of+4WsvhYbjsY2PJvk8iTrIaxlVR8SfFVxTuSj0pObGSb61ESh/x+sRZ1E7xMMWO0hGj HqBIHWZ9dtqqSeqyh3SjmVg0ACj9+VNcmZ2OneDnRburPBImPlXaSI2Xuo8l9Pm9GH5b Ee3w== X-Gm-Message-State: AOAM531KSjZ4sUbiQbpSV18JWC2O3Wkgbh9T7CnwjIw51MXxqI+h0wuG cZ7APmu/xEC3rqyF5YIHRs/o4AbdppnVkA== X-Google-Smtp-Source: ABdhPJzamp9kXTUdhEgzQ8Jeo2tBKk4jTLBLscJmy672BGiYS33hWvRk+MvF74BoI5kBnZKmQEHnNQ== X-Received: by 2002:a2e:8648:: with SMTP id i8mr3963170ljj.288.1598103006209; Sat, 22 Aug 2020 06:30:06 -0700 (PDT) Received: from [192.168.0.104] ([94.229.108.16]) by smtp.googlemail.com with ESMTPSA id b18sm1038031lfp.36.2020.08.22.06.30.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 22 Aug 2020 06:30:05 -0700 (PDT) Subject: Re: bug#42841: 28.0.50; [ruby-mode] ruby-{beginning,end}-of-block doesn't work as is exepected if arguments of method is divided into multi line To: Yasuhiro KIMURA References: <20200813.161722.1489440870744906287.yasu@utahime.org> <03ab23b5-a9fe-8aef-d27a-61761ff4ec80@yandex.ru> <20200822.111703.1806179178749269056.yasu@utahime.org> From: Dmitry Gutov Message-ID: Date: Sat, 22 Aug 2020 16:30:04 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200822.111703.1806179178749269056.yasu@utahime.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 42841-done Cc: 42841-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) Version: 28.1 On 22.08.2020 05:17, Yasuhiro KIMURA wrote: > From: Dmitry Gutov > Subject: Re: bug#42841: 28.0.50; [ruby-mode] ruby-{beginning,end}-of-block doesn't work as is exepected if arguments of method is divided into multi line > Date: Sat, 22 Aug 2020 03:26:15 +0300 > >> I can't seem to reproduce this. Even after some intensive testing. >> >>> Wrong type argument: number-or-marker-p, nil >> >> Could you perhaps provide a backtrace? >> >> Type M-x toggle-debug-on-error, then trigger the error again. > > I started emacs with '-Q' option and got following backtrace. > > Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) > ruby-move-to-block(1) > ruby-end-of-block(1) > funcall-interactively(ruby-end-of-block 1) > call-interactively(ruby-end-of-block nil nil) > command-execute(ruby-end-of-block) Oh, okay, I see it now. Couldn't reproduce it before because my config contains this line: (setq ruby-deep-indent-paren (delete ?\( ruby-deep-indent-paren)) Which logically shouldn't have any effect because we're not doing any indentation, but unfortunately does. So I'm going to go ahead and try to fix it by removing the offending code. From some moderate testing, this doesn't seem to have any actual effect on indentation (the non-SMIE variant), and fixes the error. Let's see whether we get any breakage reports later. Commit 2725254ab5. From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 09 03:35:51 2020 Received: (at 42841-done) by debbugs.gnu.org; 9 Sep 2020 07:35:51 +0000 Received: from localhost ([127.0.0.1]:57031 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFudy-0001zW-Te for submit@debbugs.gnu.org; Wed, 09 Sep 2020 03:35:51 -0400 Received: from gate.utahime.jp ([183.180.29.210]:54397) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kFudx-0001zM-29 for 42841-done@debbugs.gnu.org; Wed, 09 Sep 2020 03:35:50 -0400 Received: from eastasia.home.utahime.org (eastasia.home.utahime.org [192.168.174.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gate.utahime.jp (Postfix) with ESMTPS id 0BD3B2DADB; Wed, 9 Sep 2020 16:35:46 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=utahime.org; s=maybe2019112701; t=1599636946; bh=jM5P9HUTEVNEDFgV3n4uEXVBtR8lSPiVKEkhQNnsHPE=; h=Date:To:Cc:Subject:From:In-Reply-To:References; b=gU5jnwo5KnLOp3EfqZ729/tBJD0ZzY7UwRCnflNXXJqp5M26tEFEduwplRTgWtgbF KWKX/e12+L4HVxf5AhZppuRzwFcOtgjTNVBSouGLhIxgvfFpu/3KXjk78FPEXAkiGS bWJMLX4oOt5P1Pg5ueSAI02jyYLdAmLS8DMfIBtXzDm7JrpeUsXK7q7LHr7pEKgFRI Cx/QUuL8PQfNTSBvnIulladn6O9EhYhn2nZ34kxNxSC/UXAGhToCHwARXsNmQAA9y7 T9T8+JY5a3auRuFholoqsQQenEx3dMtssVP+xE6ny/3bhqGF1/4huZiTQFLZC27Wt3 c7CbqYKyCIg2Q== Received: from localhost (rolling.home.utahime.org [192.168.174.11]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by eastasia.home.utahime.org (Postfix) with ESMTPSA id 171ED44133; Wed, 9 Sep 2020 16:35:45 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.0-rc2 at eastasia.home.utahime.org Date: Wed, 09 Sep 2020 16:35:07 +0900 (JST) Message-Id: <20200909.163507.408155662390871846.yasu@utahime.org> To: dgutov@yandex.ru Subject: Re: bug#42841: 28.0.50; [ruby-mode] ruby-{beginning,end}-of-block doesn't work as is exepected if arguments of method is divided into multi line From: Yasuhiro KIMURA In-Reply-To: References: <03ab23b5-a9fe-8aef-d27a-61761ff4ec80@yandex.ru> <20200822.111703.1806179178749269056.yasu@utahime.org> X-Mailer: Mew version 6.8 on Emacs 27.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 42841-done Cc: 42841-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) From: Dmitry Gutov Subject: Re: bug#42841: 28.0.50; [ruby-mode] ruby-{beginning,end}-of-block doesn't work as is exepected if arguments of method is divided into multi line Date: Sat, 22 Aug 2020 16:30:04 +0300 > So I'm going to go ahead and try to fix it by removing the offending > code. From some moderate testing, this doesn't seem to have any actual > effect on indentation (the non-SMIE variant), and fixes the > error. Let's see whether we get any breakage reports later. > > Commit 2725254ab5. Sorry for very late request, but would you please merge this commit to emacs-27 branch? Best Regards. --- Yasuhiro KIMURA From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 11 06:12:49 2020 Received: (at 42841-done) by debbugs.gnu.org; 11 Sep 2020 10:12:49 +0000 Received: from localhost ([127.0.0.1]:42460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGg2v-0004eE-CG for submit@debbugs.gnu.org; Fri, 11 Sep 2020 06:12:49 -0400 Received: from mail-lj1-f178.google.com ([209.85.208.178]:39095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGg2s-0004e1-Nu for 42841-done@debbugs.gnu.org; Fri, 11 Sep 2020 06:12:43 -0400 Received: by mail-lj1-f178.google.com with SMTP id u21so11939667ljl.6 for <42841-done@debbugs.gnu.org>; Fri, 11 Sep 2020 03:12:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=NqW4jf3Ij1G1ty8v/p70/RfoNf8XDh159/HCVFq9P0k=; b=lMz2fm2AOED0cIudubhksW9WT9KTTjoooJlwSuO+rc+ZUEaEEc+PPlp4nshRBj2QtK OaUVOZpbWGBoX6NxR8G+aEr84RHbNv+nSALtd6DSpLlh6WuxcAb6ZUYJjEvUpdW8gJds GFZy5YnZn/+jS4YsyjW5kwc8Ta6KfmjQ2wQ8HS0r2IE4VOlRl8ksO4yDOCOlfgNaJ6fr RISdHBIy/52RYtkIKpaWYujgQ1n2V+F373UBFBMVNoDunn8CTmLyd3LMOOjNCI4zqE1S Y3cjmmmw0Wfh+8m1q8rDXAQqd+YIKdpfZ4Q5BR96FjPTX/cRCNBbEJiz5mhZy9u2isa8 NfBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=NqW4jf3Ij1G1ty8v/p70/RfoNf8XDh159/HCVFq9P0k=; b=PRkMvPo8BGnt66wIYsQg5OPlD25xLiz2yvQ1i7B2ExfGJR5kX7xCCwnbmwNBrdkqeN YL4RqXkcImRG9BwWLOo3vQXSC33xTGvoZurJT7g2ePLI2ipg0S1qb1HghaM3nTEKNaDB A9TCyk0o9wJQ6cDc4I0b6QzcHUvZbvHxdtNXfgciJ8Nze2DAGN849GemxDwBBds9dOoS 3cOsjINSrcapaLilmdKK8lu7uXRbzH3KrjZQi3CpW/fi42AxKMC6bnl6+3donGWwWdNK LRNGNIJQ4FSyEgaVKxbSDunDlUV0xcIHAvBPbKoswVe/JunGHkDwF+QoSEMdzu7jnUYJ BGRw== X-Gm-Message-State: AOAM530z72kgCWFY+S5opXdy8dy2kwiiAiAoSoRyXAVpEATYv66e5oi3 h+rs4MaX4uO8Mgb+nM7h0+iVpMEX5UQ1kA== X-Google-Smtp-Source: ABdhPJwhuqxsDW3kEPEC5akyHGE0XlkGknS+IAcvpLMZK/4fpgnJhbLQTWwyHUbPGtG6ePMburQX6g== X-Received: by 2002:a2e:8e30:: with SMTP id r16mr634261ljk.304.1599819156490; Fri, 11 Sep 2020 03:12:36 -0700 (PDT) Received: from [192.168.0.104] ([94.229.108.16]) by smtp.googlemail.com with ESMTPSA id h22sm448326ljl.101.2020.09.11.03.12.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Sep 2020 03:12:35 -0700 (PDT) Subject: Re: bug#42841: 28.0.50; [ruby-mode] ruby-{beginning,end}-of-block doesn't work as is exepected if arguments of method is divided into multi line To: Yasuhiro KIMURA References: <03ab23b5-a9fe-8aef-d27a-61761ff4ec80@yandex.ru> <20200822.111703.1806179178749269056.yasu@utahime.org> <20200909.163507.408155662390871846.yasu@utahime.org> From: Dmitry Gutov Message-ID: <3ed084ee-c13b-6d4e-e3c3-d685a4b46b8a@yandex.ru> Date: Fri, 11 Sep 2020 13:12:34 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200909.163507.408155662390871846.yasu@utahime.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 42841-done Cc: 42841-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) Hi! On 09.09.2020 10:35, Yasuhiro KIMURA wrote: >> Commit 2725254ab5. > Sorry for very late request, but would you please merge this commit to > emacs-27 branch? Have you tested that change? What's your impression? We only merge 'safe' changes to the stable branch, because it will likely be used in the new minor release. The change I made there has a significant potential for breakage (though I didn't find any), so we could only do that after some significant testing. From unknown Sat Aug 16 18:46:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 09 Oct 2020 11:24:08 +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