Ticket #314 (closed 不具合: fixed)

Opened 2 years ago

Last modified 2 years ago

message で text property が変わる

Reported by: anonymous Assigned to:
Priority: minor Milestone:
Component: Emacs Lisp Version: 3.00 (開発中)
Keywords: Cc:

Description

(propertize "一abc" 'face 'bold)
=> #("一abc" 0 4 (face bold))
(message (propertize "一abc" 'face 'bold))
=> #("一abc" 0 2 (face bold) 2 4 nil) ;; <-----------------------ここが変
(message "%s" (propertize "一abc" 'face 'bold))
=> #("一abc" 0 4 (face bold))

Attachments

Change History

07/13/06 11:46:27 changed by shirai

message() じゃなくて format() のバグですね。

(format "%s" (propertize "あcde" 'face 'bold))
=> #("あcde" 0 4 (face bold))
(format (propertize "あcde" 'face 'bold))
=> #("あcde" 0 2 (face bold) 2 4 nil)

Emacs のバグですね。とりあえず mule-ja に報告しておきました。

## 実は数日前に同じことを悩んだ。。。

07/13/06 15:29:01 changed by shirai

  • status changed from new to closed.
  • resolution set to fixed.

アッという間に半田さんが直してくださいました。なので、次回の sync up のときに Meadow も直りますが、お急ぎでしたらこちらをどうぞ。

--- editfns.c~	Mon Jul  3 09:22:31 2006
+++ editfns.c	Thu Jul 13 15:18:57 2006
@@ -3879,7 +3879,7 @@
 	      /* Likewise adjust the property end position.  */
 	      pos = XINT (XCAR (XCDR (item)));
 
-	      for (; bytepos < pos; bytepos++)
+	      for (; position < pos; bytepos++)
 		{
 		  if (! discarded[bytepos])
 		    position++, translated++;

半田さん曰く『なんと3年以上も潜伏していたバグ...』とのことです。多謝。

# というわけで close します。

07/14/06 01:28:50 changed by anonymous

まだ実際に修正されていない問題についてのチケットをクローズしちゃっても良いものなのでしょうか?

07/14/06 18:59:31 changed by shirai

  • priority changed from major to minor.
  • status changed from closed to reopened.
  • resolution deleted.

ご指摘どうもです。

次回の sync up で Meadow 側が直ったのを確認してから close するようにします。

07/18/06 18:15:14 changed by shirai

  • status changed from reopened to closed.
  • resolution set to fixed.

r4111 で今度こそ本当に :-) Fix.


Add/Change #314 (message で text property が変わる)




Change Properties
Action