emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "João Távora" <joaotavora@gmail.com>
To: Tak Kunihiro <homeros.misasa@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>,
	tkk@misasa.okayama-u.ac.jp, 45091@debbugs.gnu.org
Subject: bug#45091: 27.1; M-x org-table-paste-rectangle
Date: Tue, 08 Dec 2020 17:02:13 +0000	[thread overview]
Message-ID: <87360g44fe.fsf@gmail.com> (raw)
In-Reply-To: <CALDnm50Rf_fhVbE+dRyOG5gn5thjQmtC7C9oBgQ-=-Syz_rvDQ@mail.gmail.com> ("João Távora"'s message of "Tue, 8 Dec 2020 02:42:29 +0000")

João Távora <joaotavora@gmail.com> writes:

> I'll keep investigating: I still don't know which marker the message
> is referring to.  It could be antiblink's marker, but it could be
> anything else.
>
> João

I've now reproduced after setting

  (setq jit-lock-antiblink-grace nil)

Which turns off the antiblink feature _almost_ entirely.  I've also been
able to reproduce it from the command line via:

    ~/Source/Emacs/emacs-27/src/emacs -Q ~/tmp/taks-file.latex                         \
      --eval "(progn                                                                   \
               (require 'org)                                                          \
               (require 'org-table)                                                    \
               (orgtbl-mode)                                                           \
               (remove-hook 'post-command-hook                                         \
                            'jit-lock--antiblink-post-command t))"

Which _completely_ turns off the antiblink feature.

It doesn't need a window system, -nw is fine to reproduce.

This was with a fresh build of the Emacs 27.1 tag.

It's hard to reproduce sometimes, but iterating the undo/paste rectangle
cycle eventually gets one there.  It has to be done on the very same
file that Tak Kunihiro posted.  Sometimes I mess the file slightly (in
ways that I can't tell) and it doesn't happen again.

Tak Kunihiro, what is in your opinion the deciding character of these
files? I.e. what did you change from the first file (where I couldn't
reproduce) to the second?

I'm quite lost as to why this happens, of course, but it seems it's
always coming from syntax-ppss.  When I evaluate that definition (rather
than compiling), I get more clues:

Debugger entered--Lisp error: (error "Marker does not point anywhere")
  >(#<marker in no buffer> 2919)
  (and old-pos (> old-pos pos))
  (if (and old-pos (> old-pos pos)) (setq old-pos nil))
  (let* ((cell (syntax-ppss--data)) (ppss-last (car cell)) (ppss-cache (cdr cell)) (old-ppss (cdr ppss-last)) (old-pos (car pps$
  (progn (set-syntax-table (or syntax-ppss-table (syntax-table))) (let* ((cell (syntax-ppss--data)) (ppss-last (car cell)) (pps$
  (unwind-protect (progn (set-syntax-table (or syntax-ppss-table (syntax-table))) (let* ((cell (syntax-ppss--data)) (ppss-last $
  (let ((table (syntax-table)) (buffer (current-buffer))) (unwind-protect (progn (set-syntax-table (or syntax-ppss-table (synta$
  syntax-ppss()

I'll keep looking a bit, but at this point it doesn't seem to have
anything to do with the antiblink feature.  I might be wrong, but I
think that only shows up first in the messages buffer because it's
unlucky enough to be one of the first users of syntax-ppss after a
command.

João










  reply	other threads:[~2020-12-09 14:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m14kky8b2r.fsf@misasa.okayama-u.ac.jp>
     [not found] ` <831rg1aapc.fsf@gnu.org>
     [not found]   ` <CALDnm53uvZOy+KgTfFfiCZtSe8g-1+roC_pVC+dudHmK76S0VQ@mail.gmail.com>
     [not found]     ` <CALDnm53ZSJF8hCSKiaE5c=ykrTbnaxM9i5mtzpJHB-uP9M4=-Q@mail.gmail.com>
     [not found]       ` <m1ft4hyyw8.fsf_-_@misasa.okayama-u.ac.jp>
2020-12-08  2:42         ` bug#45091: 27.1; M-x org-table-paste-rectangle João Távora
2020-12-08 17:02           ` João Távora [this message]
2020-12-08 17:08             ` Eli Zaretskii
2020-12-08 23:48             ` Tak Kunihiro
2020-12-20  0:14             ` Tak Kunihiro
2020-12-20  0:18               ` João Távora
2020-12-21  4:58                 ` Tak Kunihiro
2021-01-16  6:24               ` Tak Kunihiro
2021-01-15 11:44 ` Naoya Yamashita
2021-01-15 12:19   ` João Távora
2021-01-15 19:33     ` Naoya Yamashita

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=87360g44fe.fsf@gmail.com \
    --to=joaotavora@gmail.com \
    --cc=45091@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=homeros.misasa@gmail.com \
    --cc=tkk@misasa.okayama-u.ac.jp \
    /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).