From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.bugs Subject: bug#24427: 25.1.50; end-of-defun jumps too far Date: Tue, 13 Sep 2016 14:53:14 +0200 Message-ID: <87fup4q7ut.fsf@mbork.pl> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1473771489 24531 195.159.176.226 (13 Sep 2016 12:58:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 13 Sep 2016 12:58:09 +0000 (UTC) User-Agent: mu4e 0.9.17; emacs 25.1.50.6 To: 24427@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 13 14:58:05 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 1bjnHj-0005Qv-46 for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Sep 2016 14:57:59 +0200 Original-Received: from localhost ([::1]:48630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnHh-00024x-4m for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Sep 2016 08:57:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnDz-0007Ks-22 for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2016 08:54:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjnDu-0000D0-TL for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2016 08:54:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60571) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnDu-0000Cq-Ph for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2016 08:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bjnDu-0007Kx-HB for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2016 08:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Marcin Borkowski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Sep 2016 12:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24427 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.147377121628168 (code B ref -1); Tue, 13 Sep 2016 12:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Sep 2016 12:53:36 +0000 Original-Received: from localhost ([127.0.0.1]:58283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjnDT-0007KG-SV for submit@debbugs.gnu.org; Tue, 13 Sep 2016 08:53:36 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54414) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bjnDR-0007K2-Or for submit@debbugs.gnu.org; Tue, 13 Sep 2016 08:53:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjnDL-0008HU-Ke for submit@debbugs.gnu.org; Tue, 13 Sep 2016 08:53:28 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnDL-0008Gz-I4 for submit@debbugs.gnu.org; Tue, 13 Sep 2016 08:53:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnDJ-0006o7-5p for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2016 08:53:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjnDE-0008EJ-Vn for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2016 08:53:24 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:42876) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjnDE-0008DQ-P6 for bug-gnu-emacs@gnu.org; Tue, 13 Sep 2016 08:53:20 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id E8287E6586 for ; Tue, 13 Sep 2016 14:53:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QSqRVaab-qrl for ; Tue, 13 Sep 2016 14:53:09 +0200 (CEST) Original-Received: from localhost (unknown [212.2.101.50]) by mail.mojserwer.eu (Postfix) with ESMTPSA id CDED21D6004 for ; Tue, 13 Sep 2016 14:53:08 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:123251 Archived-At: Hi Emacs bug team, consider an Emacs Lisp buffer like this: --8<---------------cut here---------------start------------->8--- (defun a ()) (defun b ()) (defun c ()) --8<---------------cut here---------------end--------------->8--- Place the point anywhere on the first line and press C-M-e (`end-of-defun') twice. Now place the point back on the first line and press C-u 2 C-M-e. The result is (and should be) the same as before. Now consider this buffer: --8<---------------cut here---------------start------------->8--- (defun a ()) (defun b ()) (defun c ()) --8<---------------cut here---------------end--------------->8--- Repeat the same steps as above. After pressing C-M-e twice (starting on the first line), the point lands right before "(defun c ())". After pressing C-u 2 C-M-e, it lands _after_ that defun. I am quite sure it should be in the same place as after C-M-e C-M-e. I use GNU Emacs 25.1.50.6 (commit b12fac8). I tested this on emacs -Q. Best, Marcin Borkowski In GNU Emacs 25.1.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 3.20.6) of 2016-08-03 built on jane Repository revision: 0f690c4a0e4e98a929b5439f6076539bbea59242 Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 LIBSYSTEMD Important settings: value of $LC_COLLATE: pl_PL.UTF-8 value of $LC_CTYPE: pl_PL.UTF-8 value of $LC_MESSAGES: pl_PL.UTF-8 value of $LANG: pl_PL.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t beeminder-org-integration-mode: t TeX-PDF-mode: t pdf-occur-global-minor-mode: t yas-global-mode: t yas-minor-mode: t savehist-mode: t global-flycheck-mode: t projectile-global-mode: t projectile-mode: t ivy-mode: t show-paren-mode: t shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-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 Memory information: ((conses 16 1884431 142870) (symbols 48 85829 0) (miscs 40 9808 8727) (strings 32 324415 120559) (string-bytes 1 12120978) (vectors 16 127614) (vector-slots 8 2717980 77714) (floats 8 31935 16669) (intervals 56 171322 1289) (buffers 976 132) (heap 1024 236107 10150)) -- Marcin Borkowski