From mboxrd@z Thu Jan 1 00:00:00 1970 From: Van L <van@scratch.space> Subject: comment alignment not lining up / C++//l OrgSrc Abbrev / Releasing Emacs 26.1 Date: Mon, 7 May 2018 23:24:00 +1000 Message-ID: <40DB58C3-5087-4E85-8075-DD95C74FCE5B@scratch.space> References: <87h8njpt63.fsf@bzg.fr> Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org> Received: from eggs.gnu.org ([2001:4830:134:3::10]:38973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <van@scratch.space>) id 1fFg7f-000659-Lq for emacs-orgmode@gnu.org; Mon, 07 May 2018 09:24:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <van@scratch.space>) id 1fFg7c-00057e-G1 for emacs-orgmode@gnu.org; Mon, 07 May 2018 09:24:11 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:50185) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from <van@scratch.space>) id 1fFg7c-00056e-9H for emacs-orgmode@gnu.org; Mon, 07 May 2018 09:24:08 -0400 Received: from epi.local (123-243-244-176.tpgi.com.au [123.243.244.176]) (Authenticated sender: van@scratch.space) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id D05451BF20B for <emacs-orgmode@gnu.org>; Mon, 7 May 2018 15:24:09 +0200 (CEST) List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>, <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode/> List-Post: <mailto:emacs-orgmode@gnu.org> List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>, <mailto:emacs-orgmode-request@gnu.org?subject=subscribe> Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org> To: emacs-orgmode@gnu.org Hello. Here is a recipe reproducing a bug described in the post which is = forward from. =E2=80=94 recipe begins - to reproduce faulty comment line up 1) ~/2018/Applications/Emacs.app/Contents/MacOS/Emacs -Q =20 2) open file ~/Documents/x-reproduce-me (Fundamental) mode is on 3) C-h C-a ; verify version is 26.1 rc-1 4) enter the following into the file, place cursor at end of 43, = save file, M-x revert-buffer #+BEGIN_EXAMPLE * Reading =20 Chapters =20 1) 2) Page 43 =20 =20 =20 Local variables: mode: org paragraph-separate: "[ =0C]*$" coding: utf-8 end: =20 #+END_EXAMPLE (Org) mode is on ; show all ; place cursor at end of 43 ; type = `M-j' ; `<s' followed by TAB ; append cpp ; type (C-c ') without braces - see - http://emacs.scratch.space/public/org-mode-cpp-x-0.png 5) Abbrev view opens in second pane type in the following #+BEGIN_EXAMPLE void some_function() // function that doesn't return a value { double d =3D 2.2; // initialize floating-point number int i =3D 7; // initialize integer d =3D d+i; // assign sum to d i =3D d*i; // assign product i (truncating the double to an = int) } // To align, highlight the region then // M-x align-regexp <RET> // <RET> #+END_EXAMPLE highlight the region of four lines in the body of the function do, M-x align-regexp <RET> // <RET> - the four line's comment are lined up do, C-c ' 6) we are out of the abbrev view - the line with `int i =3D 7;' has comment alignment not lining = up - see - http://emacs.scratch.space/public/org-mode-cpp-x-1.png highlight the region of four lines in the body of the function do, M-x align-regexp <RET> // <RET> - the four line's comment are lined up - see - http://emacs.scratch.space/public/org-mode-cpp-x-2.png do, C-c ' 7) we are in the abbrev view - again, the line with `int i =3D 7;' has comment alignment not = lining up - see - http://emacs.scratch.space/public/org-mode-cpp-x-3.png =E2=80=94 recipe ends > Begin forwarded message: >=20 > From: Bastien <bzg@gnu.org> > Subject: Re: Releasing Emacs 26.1 > Date: 7 May 2018 at 22:05:40 AEST > To: Van L <van@scratch.space> > Cc: Phil Sainty <psainty@orcon.net.nz>, Eli Zaretskii <eliz@gnu.org>, = John Wiegley <johnw@gnu.org>, Michael Albinus <michael.albinus@gmx.de>, = emacs-devel@gnu.org >=20 > Hi, >=20 > Van L <van@scratch.space> writes: >=20 >>> On 7 May 2018, at 21:10, Phil Sainty <psainty@orcon.net.nz> wrote: >>>=20 >>> If the bugs are in new functionality, I wouldn't see any issue with >>> leaving the improvements until the next release if necessary; >>=20 >> In org mode for Emacs 26.1 rc-1, I see comment alignment for cpp not >> lining up, see screenshot. >=20 > I cannot reproduce this bug with Emacs 26.1 rc-1 and Org 9.1.12. >=20 > Can you send it to emacs-orgmode@gnu.org and provide a detailed recipe > on how to reproduce it with emacs -Q? >=20 > Thanks, >=20 > --=20 > Bastien Van L van@scratch.space