From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Newsgroups: gmane.emacs.bugs Subject: bug#9501: 24.0.50; c-end-of-defun and c-beginning-of-defun are not convenient with C++ / namespaces Date: Sun, 14 Aug 2016 15:11:07 -0600 Message-ID: <871t1rqcno.fsf@gmail.com> References: <83obyna69q.fsf@kalahari.s2.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1471209146 14675 195.159.176.226 (14 Aug 2016 21:12:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 14 Aug 2016 21:12:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: 9501@debbugs.gnu.org To: Hannu Koivisto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 14 23:12:22 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 1bZ2hh-0003aE-GW for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Aug 2016 23:12:21 +0200 Original-Received: from localhost ([::1]:33752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZ2he-0006HW-JA for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Aug 2016 17:12:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZ2hT-0006H6-NX for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2016 17:12:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZ2hO-0001yE-DF for bug-gnu-emacs@gnu.org; Sun, 14 Aug 2016 17:12:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZ2hO-0001yA-9i; Sun, 14 Aug 2016 17:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bZ2hO-0007yU-5Z; Sun, 14 Aug 2016 17:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sun, 14 Aug 2016 21:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9501 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 9501-submit@debbugs.gnu.org id=B9501.147120909130617 (code B ref 9501); Sun, 14 Aug 2016 21:12:02 +0000 Original-Received: (at 9501) by debbugs.gnu.org; 14 Aug 2016 21:11:31 +0000 Original-Received: from localhost ([127.0.0.1]:57592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZ2go-0007xc-1U for submit@debbugs.gnu.org; Sun, 14 Aug 2016 17:11:31 -0400 Original-Received: from mail-io0-f179.google.com ([209.85.223.179]:36349) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bZ2gc-0007x6-MU; Sun, 14 Aug 2016 17:11:19 -0400 Original-Received: by mail-io0-f179.google.com with SMTP id b62so66611041iod.3; Sun, 14 Aug 2016 14:11:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=QHOo45vyAnQozLR6kVibRblaFoJCr6e04V5ogJeBtTg=; b=TH2D7Qy7Fw0YPmnAdAgxQVIHLZzmrw3KsPzwWcln/cva1G5jsA7EuhdmGWnPSD1UDH Hl08TyVPoT3JassRpE0jkyV1E6V/kHxmGJemKmGWfjEQnTAwjjyyUpKkBQu+Qbh+bUjX zmoJf8XX+VwhxoV6yClSxZP4XOPUIwNDakLZHIcR2TT4iGlloMYKGTkigjUrImvkgLAl w/GIXhoYR4M6wcKaBWDD/9QsNJyg+oC5dKa6pWAOEQeiyGcpxOnhNqs8tUTVMxkdNtnr xdzfb9KcZsOT55o6XGRiSgvXbkx1+jO8kqeycEvQAhWUqDdebio1kZPK8KYNlldwivTH j26A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=QHOo45vyAnQozLR6kVibRblaFoJCr6e04V5ogJeBtTg=; b=Kx35muRAT0iRRweboiTqitMFPhoTv+/ff20dnURCNj/D9Qp0U2pJSbDwgVz150hDoh GC33itKucZ4b51Y4Ll6Gyhazmwf2GVAduEYgL+abVgLIzAUIR8gNvE+KLx+RATPHtj/e qxxe9Isq9w3j3/MkLmkvdwlZ7HhYHB2LExJfN/C/ZeQ7nyWjKeDmFXxumHdH4CVFyv2I 2SlglHAaBfIQE9Sa9yfVQpeg49Bd4ymYleOydkAZ15bgsik82H9NfL829Q6Z1QvOHvKs nT/drBCZUo1vGp5zdOjjaQxZKc623KZ8WyRb9EgeZlM/Y9bmTiMxawYPnG9Eq/s6unOj TYNw== X-Gm-Message-State: AEkooutvlKDguVNvBQ0JSc5VDpKo1LkwZUMlwkBvATWSH4SI/M/zjGjGlaoe4Dm7GLA/Aw== X-Received: by 10.107.129.97 with SMTP id c94mr29927995iod.102.1471209069323; Sun, 14 Aug 2016 14:11:09 -0700 (PDT) Original-Received: from lylat (S01061859339e9903.ss.shawcable.net. [174.2.107.88]) by smtp.gmail.com with ESMTPSA id 69sm5974238itf.6.2016.08.14.14.11.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 14 Aug 2016 14:11:08 -0700 (PDT) In-Reply-To: <83obyna69q.fsf@kalahari.s2.org> (Hannu Koivisto's message of "Wed, 14 Sep 2011 11:16:01 +0300") 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:122217 Archived-At: close 9501 24.5 quit Hannu Koivisto writes: > Create file test.h with the following content: > > namespace Kala { > > void function() > { > } > > void function2() > { > } > > } > > Run emacs -Q test.h. Enter c++-mode with M-x c++-mode RET. Move to > the first line of "function". Hit C-M-e. Observe that point moves > to the end of the buffer. Move to the first line of > "function2". Hit C-M-a. Observe that point moves to the beginning > of the buffer. Now, documentation of c-end-of-defun says "Move > forward to the end of a top level declaration." and you could argue > that namespace Kala is the only top level declaration and therefore > this behaviour is correct, but I argue that in practice this > behaviour is not useful. This works correctly in 24.5.