bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#20690: 25.0.50; query-replace: incorrect history when replacing the


From: Juri Linkov
Subject: bug#20690: 25.0.50; query-replace: incorrect history when replacing the NUL character.
Date: Tue, 23 Jun 2015 01:59:54 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu)

> +(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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]