From: "Sébastien Miquel" <sebastien.miquel@posteo.eu>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: org-indent-region doesn't restore cursor position when org-src-tab-acts-natively is t [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.3/lisp/org/)]
Date: Sat, 29 Feb 2020 21:24:14 +0100 [thread overview]
Message-ID: <0b735431-d1e3-090d-da9f-904bd538b57f@posteo.eu> (raw)
In-Reply-To: <87d0andkmi.fsf@gnu.org>
Hi Bastien,
Thank you again for looking into this. I guess you couldn't find an easy
fix.
This bug is quite the pain, since it gets triggered by the comment-line
function: every time I try to comment something, the cursor goes to the
beginning of the block.
With org-src-tab-acts-natively being set to t by default, it may impact
a lot of people.
Sorry to be nagging you, my elisp-fu is barely above kill/yank level,
but I'm still curious why save-excursion seemingly isn't doing its job here.
> Hi Sébastien,
>
> yes, the initial fix was wrong.
>
> The current behavior when the region is active in a src block is to
> indent the whole source block, which is not what the user expect. The
> problem with the cursor going back to the beginning of the block comes
> on top of this (bigger?) problem.
>
> I could not find a proper fix yet, I will try later this week.
>
> Thanks,
>
next prev parent reply other threads:[~2020-02-29 20:24 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-02 10:22 Bug: org-indent-region doesn't restore cursor position when org-src-tab-acts-natively is t [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.3/lisp/org/)] Sébastien Miquel
2020-02-03 18:47 ` Bastien
2020-02-04 6:47 ` Sébastien Miquel
2020-02-04 16:07 ` Bastien
2020-02-09 15:26 ` Sébastien Miquel
2020-02-10 6:25 ` Bastien
2020-02-29 20:24 ` Sébastien Miquel [this message]
2020-09-04 10:31 ` Bastien
2020-10-04 21:08 ` [Patch] " Sébastien Miquel
2020-10-23 21:06 ` Sébastien Miquel
2021-05-16 12:12 ` Bastien
2021-05-16 17:28 ` Sébastien Miquel
2021-05-16 19:53 ` Bastien
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=0b735431-d1e3-090d-da9f-904bd538b57f@posteo.eu \
--to=sebastien.miquel@posteo.eu \
--cc=bzg@gnu.org \
--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 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).