From: Sergey Organov <sorganov@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Search'n'replace intermittent error
Date: Thu, 03 Feb 2022 18:40:35 +0300 [thread overview]
Message-ID: <stgt1j$b38$1@ciao.gmane.io> (raw)
Hello,
Sometimes, when I run query-replace (M-%) in a buffer, I get an error
that, after turning debug-on-error to 't, looks like this:
Debugger entered--Lisp error: (args-out-of-range #<buffer Makefile<linux-driver>> 0 1)
buffer-substring-no-properties(0 1)
perform-replace("br_rev" "BR_REV" t nil nil nil nil nil nil nil nil)
query-replace("br_rev" "BR_REV" nil nil nil nil nil)
funcall-interactively(query-replace "br_rev" "BR_REV" nil nil nil nil nil)
call-interactively(query-replace nil nil)
command-execute(query-replace)
Does this ring a bell? I've tried to look at the code, but it's rather
convoluted and I can't easily figure how to fix it.
In GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14)
of 2020-03-26, modified by Debian built on lcy01-amd64-020
System Description: Ubuntu 20.04.2 LTS
Thanks,
-- Sergey Organov
next reply other threads:[~2022-02-03 15:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-03 15:40 Sergey Organov [this message]
2022-02-03 20:32 ` Search'n'replace intermittent error Tassilo Horn
2022-02-03 22:40 ` Sergey Organov
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='stgt1j$b38$1@ciao.gmane.io' \
--to=sorganov@gmail.com \
--cc=help-gnu-emacs@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.
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).