emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Miquel" <sebastien.miquel@posteo.eu>
To: yoctocell <public@yoctocell.xyz>, emacs-orgmode@gnu.org
Subject: Re: Bug: Unexpected movement of cursor when commenting code blocks
Date: Fri, 15 Jan 2021 19:48:38 +0100	[thread overview]
Message-ID: <4b032f43-023b-dc72-9037-405eb9a740be@posteo.eu> (raw)
In-Reply-To: <874kjlm2sd.fsf@elephant.i-did-not-set--mail-host-address--so-tickle-me>

Hi,

yoctocell writes:
> When I am inside a code block like this:
>
> and I hit "C-x C-;" to comment the line, the cursor automatically jumps
> to the second line of the code block after the comment is made.  I would
> expect the cursor to move forward one line like it usually does and this
> only happens in Org-mode, not when I edit the code block in a separate
> buffer with "C-c C-'".

I have previously proposed a patch that I think fixes this issue, see

https://orgmode.org/list/3072e244-4615-aaad-4019-621bb3d1d4f8@posteo.eu/#t

Regards,

-- 
Sébastien Miquel



  reply	other threads:[~2021-01-15 18:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-13 12:36 Bug: Unexpected movement of cursor when commenting code blocks yoctocell
2021-01-15 18:48 ` Sébastien Miquel [this message]
2021-01-15 20:27   ` yoctocell

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4b032f43-023b-dc72-9037-405eb9a740be@posteo.eu \
    --to=sebastien.miquel@posteo.eu \
    --cc=emacs-orgmode@gnu.org \
    --cc=public@yoctocell.xyz \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).