From: Van L <van@scratch.space>
To: emacs-orgmode@gnu.org
Subject: comment alignment not lining up / C++//l OrgSrc Abbrev / Releasing Emacs 26.1
Date: Mon, 7 May 2018 23:24:00 +1000 [thread overview]
Message-ID: <40DB58C3-5087-4E85-8075-DD95C74FCE5B@scratch.space> (raw)
In-Reply-To: 87h8njpt63.fsf@bzg.fr
Hello.
Here is a recipe reproducing a bug described in the post which is forward from.
— recipe begins
- to reproduce faulty comment line up
1) ~/2018/Applications/Emacs.app/Contents/MacOS/Emacs -Q
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
Chapters
1)
2) Page 43
Local variables:
mode: org
paragraph-separate: "[ \f]*$"
coding: utf-8
end:
#+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 = 2.2; // initialize floating-point number
int i = 7; // initialize integer
d = d+i; // assign sum to d
i = 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 = 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 = 7;' has comment alignment not lining up
- see - http://emacs.scratch.space/public/org-mode-cpp-x-3.png
— recipe ends
> Begin forwarded message:
>
> 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
>
> Hi,
>
> Van L <van@scratch.space> writes:
>
>>> On 7 May 2018, at 21:10, Phil Sainty <psainty@orcon.net.nz> wrote:
>>>
>>> If the bugs are in new functionality, I wouldn't see any issue with
>>> leaving the improvements until the next release if necessary;
>>
>> In org mode for Emacs 26.1 rc-1, I see comment alignment for cpp not
>> lining up, see screenshot.
>
> I cannot reproduce this bug with Emacs 26.1 rc-1 and Org 9.1.12.
>
> Can you send it to emacs-orgmode@gnu.org and provide a detailed recipe
> on how to reproduce it with emacs -Q?
>
> Thanks,
>
> --
> Bastien
Van L
van@scratch.space
next prev parent reply other threads:[~2018-05-07 13:24 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-06 19:52 Releasing Emacs 26.1 Eli Zaretskii
2018-05-06 21:00 ` Alan Third
2018-05-07 1:21 ` Basil L. Contovounesios
2018-05-07 12:31 ` Alan Third
2018-05-07 12:46 ` Basil L. Contovounesios
2018-05-07 17:42 ` Eli Zaretskii
2018-05-07 0:13 ` Phil Sainty
2018-05-07 7:32 ` Michael Albinus
2018-05-07 11:10 ` Phil Sainty
2018-05-07 11:29 ` Michael Albinus
2018-05-07 15:08 ` Nicolas Petton
2018-05-07 18:09 ` Eli Zaretskii
2018-05-07 11:44 ` Van L
2018-05-07 12:05 ` Bastien
2018-05-07 13:24 ` Van L [this message]
2018-05-18 11:10 ` SRC block with `-i' switch seems to solve the problem (was: comment alignment not lining up / C++//l OrgSrc Abbrev / Releasing Emacs 26.1) Van L
2018-05-07 18:08 ` Releasing Emacs 26.1 Eli Zaretskii
2018-05-07 17:44 ` Eli Zaretskii
2018-05-07 5:30 ` John Wiegley
2018-05-07 5:40 ` Bastien
2018-05-07 19:05 ` Eli Zaretskii
2018-05-07 22:06 ` Rasmus
2018-05-08 2:28 ` Eli Zaretskii
2018-05-08 7:06 ` Byung-Hee HWANG (황병희, 黃炳熙)
2018-05-20 13:56 ` Alan Mackenzie
2018-05-20 15:48 ` Eli Zaretskii
2018-05-20 19:14 ` Alan Mackenzie
2018-05-21 9:25 ` Nicolas Petton
2018-05-22 7:38 ` Tino Calancha
2018-05-22 9:40 ` Van L
2018-05-22 9:56 ` Van L
2018-05-24 1:40 ` Van L
2018-05-25 5:10 ` Tino Calancha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40DB58C3-5087-4E85-8075-DD95C74FCE5B@scratch.space \
--to=van@scratch.space \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.