unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Philipp <p.stephani2@gmail.com>
Cc: 33697@debbugs.gnu.org, 31586@debbugs.gnu.org
Subject: bug#33697: 26.1; file-truename messes with match data
Date: Fri, 06 May 2022 19:29:54 +0200	[thread overview]
Message-ID: <87a6buin71.fsf@gnus.org> (raw)
In-Reply-To: <m24liwoh02.fsf@gmail.com> (Philipp's message of "Thu, 24 May 2018 23:55:57 +0200")

Philipp <p.stephani2@gmail.com> writes:

> emacs -Q -eval "(setq frame-title-format '(\"\" (:eval (string-match \".\" \"a\"))))"
>
> Then go to the first character in the scratch buffer (M-<), and run
>
> M-% a RET b RET
>
> The first time you attempt to replace something, Emacs will signal an
> error:
>
> perform-replace: Args out of range: #<buffer *scratch*>, 0, 1
>
> Backtrace:
>
> Debugger entered--Lisp error: (args-out-of-range #<buffer *scratch*> 0 1)
>   buffer-substring-no-properties(0 1)

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

I can reproduce this in Emacs 26.1, but not in Emacs 28.1, so I guess
this has been fixed in the years since it was reported, and I'm closing
this bug report.  If you're still seeing the problem in recent Emacs
versions, please respond to the debbugs address and we'll reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  parent reply	other threads:[~2022-05-06 17:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-24 21:55 bug#31586: 27.0.50; `frame-title-format' doesn't save match data Philipp
2018-05-25  6:31 ` Eli Zaretskii
2018-05-26 20:58 ` Stefan Monnier
2018-05-27 16:20   ` Eli Zaretskii
2018-05-27 19:32     ` Stefan Monnier
2018-05-28  1:40       ` Drew Adams
2018-05-28  1:46         ` Stefan Monnier
2018-07-30  4:34 ` bug#31586: Binbin YE
2018-07-30 14:19   ` bug#31586: Eli Zaretskii
2022-05-06 17:29 ` Lars Ingebrigtsen [this message]
2022-05-06 17:49   ` bug#31586: bug#33697: 26.1; file-truename messes with match data Juri Linkov
  -- strict thread matches above, loose matches on Subject: below --
2018-12-10 21:02 Kévin Le Gouguec
2018-12-11  4:55 ` Eli Zaretskii
2018-12-11 19:59   ` Kévin Le Gouguec

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=87a6buin71.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=31586@debbugs.gnu.org \
    --cc=33697@debbugs.gnu.org \
    --cc=p.stephani2@gmail.com \
    /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).