[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]
Re: 「M-x」+「変換キー」 で落ちる?
- X-ml-count: 6771
- Subject: Re: 「M-x」+「変換キー」 で落ちる?
- From: KOBAYASHI Yasuhiro <kobayays@xxxxxxxxxxxxxx>
- Date: Tue, 01 Nov 2005 13:47:37 +0900
- User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (windows-nt)
変換した時のカーソルの位置を戻すのを忘れていました。
--- src/mw32ime.c.orig 2005-11-01 00:04:15.433708800 +0900
+++ src/mw32ime.c 2005-11-01 13:42:02.909307700 +0900
@@ -295,7 +295,18 @@
end = Fpoint_marker ();
}
- str = Fbuffer_substring_no_properties (start, end);
+ str = Fbuffer_substring (start, end);
+ if (!NILP (Ftext_property_any (make_number (0),
+ Flength (str),
+ intern ("read-only"),
+ Qt,
+ str)))
+ {
+ SET_PT_BOTH (pt, pt_byte);
+ return FALSE; /* Cannot signal here */
+ }
+
+ str = Fsubstring_no_properties (str, Qnil, Qnil);
MW32_ENCODE_TEXT (str, Vw32_system_coding_system, &lpstr, &len);
SET_PT_BOTH (pt, pt_byte);
--
KOBAYASHI Yasuhiro <kobayays@xxxxxxxxxxxxxx>