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

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

replace-match's problem


From: SAITO Takuya
Subject: replace-match's problem
Date: Sun, 21 Sep 2003 15:20:59 +0900 (JST)

replace-match changes text-property unexpectedly or aborts Emacs.

How to reproduce:

Start emacs with "emacs -q" and evaluate this in *scratch* buffer

(with-temp-buffer
  (insert "abcd")
  (put-text-property 3 4 'test t)
  (goto-char (point-min))
  (looking-at "abc")
  (replace-match (match-string 0) t t)
  (mapcar (lambda (p) (get-text-property p 'test)) '(1 2 3 4)))

I expect this returns (nil nil t nil) but
on Emacs 21.3.50 this returns (t nil t nil).


Emacs aborts if I replace (looking-at "abc") with (looking-at "abcd")
and evaluate.


In GNU Emacs 21.3.50.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2003-09-20 on reed
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: ja_JP.eucJP
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: C
  value of $LANG: ja_JP.eucJP
  locale-coding-system: japanese-iso-8bit
  default-enable-multibyte-characters: t




reply via email to

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