[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Comments within Org src block move point unexpectedly
From: |
excalamus |
Subject: |
Re: Comments within Org src block move point unexpectedly |
Date: |
Sat, 10 Apr 2021 22:31:07 +0200 (CEST) |
Jean,
> (defun my-comment-line ()
> (interactive)
> (let ((point (point)))
> (comment-region (point-at-bol) (point-at-eol))))
>
Thank you for your reply. My apologies about the formatting. I noticed that
the code appeared scrambled and quickly sent a follow-up to correct that. I'm
sorry you didn't see that and had to correct it manually!
Unfortunately, your suggestion produces the same jumping behavior. I believe
this is because it relies on comment-region which is also called by
comment-line (comment-line does basically the exact same thing you suggest).
It looks like the behavior occurs somewhere within comment-region-default-1 .
I'm surprised to hear that comment-line, and that the my-comment-line, function
do not produce the jumping behavior. When I asked on emacs.stackexchange, it
was verified by another. I have reproduced the behavior with emacs --no-init
on both Windows (GNU Emacs 27.1 (build (1, x86_64-mingw32) of 2020-08-21
) and GNU Guix (GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.24, cairo version 1.16.0).
Are you executing it with org-mode enabled? (I failed to mention that in my
original email and specified it in my follow up. Please excuse me!)
What version of Emacs are you using?
- Prev by Date:
Re: Unicode Data Base: Sweden, Germany, Poland, Russia, Ukraine, and Japan
- Next by Date:
Re: Unicode Data Base: Sweden, Germany, Poland, Russia, Ukraine, and Japan
- Previous by thread:
Re: Comments within Org src block move point unexpectedly
- Next by thread:
Re: Comments within Org src block move point unexpectedly
- Index(es):