From: Juri Linkov <juri@linkov.net>
To: Nicolas Richard <youngfrog@members.fsf.org>
Cc: 20690@debbugs.gnu.org
Subject: bug#20690: 25.0.50; query-replace: incorrect history when replacing the NUL character.
Date: Tue, 23 Jun 2015 01:59:54 +0300 [thread overview]
Message-ID: <87a8vruz6d.fsf@mail.linkov.net> (raw)
In-Reply-To: <86d21jzsft.fsf@members.fsf.org> (Nicolas Richard's message of "Fri, 29 May 2015 10:41:42 +0200")
> +(defun query-replace--split-string (string)
> + "Split string STRING at a character with property `separator'"
> + (let* ((length (length string))
> + (split-pos (text-property-any 0 length 'separator t string)))
> + (if (not split-pos)
> + string
> + (cl-assert (not (text-property-any (1+ split-pos) length 'separator t string)))
> + (cons (substring-no-properties string 0 split-pos)
> + (substring-no-properties string (1+ split-pos) length)))))
Thanks to cl-assert it signaled an error with ‘M-% a RET RET C-g M-% M-p C-e z RET’
so I fixed it in 1b1b6644c8cb27539ca99e97ef2f352f411c06d8.
next prev parent reply other threads:[~2015-06-22 22:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-29 8:41 bug#20690: 25.0.50; query-replace: incorrect history when replacing the NUL character Nicolas Richard
2015-06-01 20:39 ` Juri Linkov
2015-06-02 9:30 ` Nicolas Richard
2015-06-22 22:59 ` Juri Linkov [this message]
2015-06-23 5:11 ` Nicolas Richard
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a8vruz6d.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=20690@debbugs.gnu.org \
--cc=youngfrog@members.fsf.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.