From: Richard Copley <rcopley@gmail.com>
To: 70541@debbugs.gnu.org, monnier@iro.umontreal.ca
Cc: "João Távora" <joaotavora@gmail.com>
Subject: bug#70541: track-changes-mode logs warnings (with input method, in Eglot buffer)
Date: Tue, 23 Apr 2024 21:44:05 +0100 [thread overview]
Message-ID: <CAPM58ogNB5m8f5Y5DndN-CmRz3yFAkvU6n_6kJW-Pj1r8jh9kA@mail.gmail.com> (raw)
(Moved here from https://github.com/joaotavora/eglot/discussions/1389)
On master.
The warning:
» Warning (emacs): Missing/incorrect calls to
‘before/after-change-functions’!!
Details logged to ‘track-changes--error-log’
... is raised, while editing in an Eglot buffer, with an input method.
* Ensure clangd is on the path
* Start editing a scratch file like this in C++ mode:
int main() {
const char * s = "";
}
* Start Eglot (M-x eglot RET)
* Enable TeX input method (C-u C-\ TeX RET)
* Start typing the superscript alphabet into the string (^ a ^ b ^ c ^ d ...)
How far you get before the warning pops up seems to depend on timing.
In a run of this experiment from emacs -Q on master just now, I got as
far as k.
track-changes--error-log value:
((#3="z.cpp"
((t track-changes--recover-from-error nil nil)
(t track-changes-fetch
(#1=
#s(track-changes--tracker :signal
eglot--track-changes-signal :state
#s(track-changes--state :beg 50
:end 1
:before
nil :next
nil)
:nobefore nil :immediate nil)
#f(compiled-function (beg end before) #<bytecode
0xae090d111a>))
nil)
(t eglot--track-changes-fetch (#1#) nil)
(t eglot--signal-textDocument/didChange nil nil)
(t run-hooks (eglot--document-changed-hook) nil)
(t #2=#f(compiled-function () #<bytecode 0x1bb90600ea83b761>)
nil nil)
(t apply (#2# nil) nil)
(t timer-event-handler ([t 0 0 500000 nil #2# nil idle 0 nil])
nil))
[101 #6=(nil . self-insert-command) 94 102 #7=
(nil . self-insert-command) 94 103 #8=
(nil . self-insert-command) 94 104 #9=
(nil . self-insert-command) 94 105 #10=
(nil . self-insert-command) 94 106 #11=
(nil . self-insert-command) 94 107
(nil . self-insert-command)])
(#3#
((t track-changes--recover-from-error nil nil)
(t track-changes-fetch
(#1#
#f(compiled-function (beg end before) #<bytecode 0xae090d111a>))
nil)
(t eglot--track-changes-fetch (#1#) nil)
(t eglot--signal-textDocument/didChange nil nil)
(t run-hooks (eglot--document-changed-hook) nil)
(t #5=#f(compiled-function () #<bytecode 0x1bb90600ea83b761>) nil
nil)
(t apply (#5# nil) nil)
(t timer-event-handler ([t 0 0 500000 nil #5# nil idle 0 nil]) nil)
(t read-key-sequence (nil nil nil t) nil)
(t quail-start-translation (94) nil)
(t quail-input-method (94) nil))
[(nil . self-insert-command) 94 101 #6# 94 102 #7# 94 103 #8# 94 104
#9# 94 105 #10# 94 106 #11# 94]))
Lossage:
M-x ;; execute-extended-command
e ;; self-insert-command
g ;; self-insert-command
l ;; self-insert-command
o ;; self-insert-command
t ;; self-insert-command
<return> ;; minibuffer-complete-and-exit
C-u ;; universal-argument
C-\ ;; toggle-input-method
T ;; self-insert-command
e ;; self-insert-command
X ;; self-insert-command
<return> ;; minibuffer-complete-and-exit
C-s ;; isearch-forward
" ;; isearch-printing-char
<with-input-method> ;; isearch-with-input-method
<return> ;; isearch-exit
^ a ;; self-insert-command
^ b ;; self-insert-command
^ c ;; self-insert-command
^ d ;; self-insert-command
^ e ;; self-insert-command
^ f ;; self-insert-command
^ g ;; self-insert-command
^ h ;; self-insert-command
^ i ;; self-insert-command
^ j ;; self-insert-command
^ k ;; self-insert-command
C-h l ;; view-lossage
(Stefan notes:
If you want to silence these messages until the problem is fixed, you
can `(setq track-changes-record-errors nil)`.)
next reply other threads:[~2024-04-23 20:44 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-23 20:44 Richard Copley [this message]
2024-04-24 3:14 ` bug#70541: track-changes-mode logs warnings (with input method, in Eglot buffer) Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-04-24 7:12 ` Eli Zaretskii
2024-04-24 14:26 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-04-24 15:42 ` Eli Zaretskii
2024-04-24 19:02 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-04-24 19:24 ` Eli Zaretskii
2024-04-24 20:53 ` João Távora
2024-04-28 18:21 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-04-29 6:09 ` Eli Zaretskii
2024-04-29 8:28 ` João Távora
2024-04-29 8:36 ` Ihor Radchenko
2024-04-29 8:45 ` Eli Zaretskii
2024-04-29 19:45 ` Ihor Radchenko
2024-04-29 20:27 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-03 17:27 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-03 20:56 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-04 18:08 ` Richard Copley
2024-05-04 19:59 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-04 21:16 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-05 0:52 ` Richard Copley
2024-05-05 13:40 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-05 13:55 ` João Távora
2024-05-05 14:57 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-05-05 16:10 ` João Távora
2024-05-05 17:48 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-04-29 8:57 ` João Távora
2024-04-29 20:50 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAPM58ogNB5m8f5Y5DndN-CmRz3yFAkvU6n_6kJW-Pj1r8jh9kA@mail.gmail.com \
--to=rcopley@gmail.com \
--cc=70541@debbugs.gnu.org \
--cc=joaotavora@gmail.com \
--cc=monnier@iro.umontreal.ca \
/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.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).