Next: , Previous: Text Properties, Up: Text   [Contents][Index]


31.20 ʸ»ú¥³¡¼¥É¤ÎÃÖ´¹

¤Ä¤®¤Î´Ø¿ô¤Ï¡¢»ØÄꤷ¤¿ÎΰèÆâ¤Îʸ»ú¤ò¤½¤ì¤é¤Îʸ»ú¥³¡¼¥É¤Ë´ð¤Å¤¤¤ÆÃÖ¤­´¹¤¨¤Þ¤¹¡£

Function: subst-char-in-region start end old-char new-char &optional noundo

¤³¤Î´Ø¿ô¤Ï¡¢¥«¥ì¥ó¥È¥Ð¥Ã¥Õ¥¡¤Îstart¤Èend¤ÇÄêµÁ¤µ¤ì¤ëÎΰè¤Î ¤¹¤Ù¤Æ¤Îʸ»úold-char¤òʸ»únew-char¤ËÃÖ¤­´¹¤¨¤ë¡£

noundo¤¬nil°Ê³°¤Ç¤¢¤ë¤È¡¢ subst-char-in-region¤Ï¥¢¥ó¥É¥¥ÍѤÎÊѹ¹¤òµ­Ï¿¤»¤º¡¢ ¥Ð¥Ã¥Õ¥¡¤ËÊѹ¹ºÑ¤ß¤Î°õ¤âÉÕ¤±¤Ê¤¤¡£ ¤³¤Îµ¡Ç½¤Ï¡¢ÁªÂòɽ¼¨¡Êsee Selective Display¡Ë¤ÎÀ©¸æ¤Ë»È¤ï¤ì¤Æ¤¤¤ë¡£

subst-char-in-region¤Ï¥Ý¥¤¥ó¥È¤ò°Üư¤»¤º¡¢ nil¤òÊÖ¤¹¡£

---------- Buffer: foo ----------
This is the contents of the buffer before.
---------- Buffer: foo ----------
(subst-char-in-region 1 20 ?i ?X)
     ⇒ nil

---------- Buffer: foo ----------
ThXs Xs the contents of the buffer before.
---------- Buffer: foo ----------
Function: translate-region start end table

¤³¤Î´Ø¿ô¤Ï¡¢¥Ð¥Ã¥Õ¥¡¤Îstart¤Èend¤Î¤¢¤¤¤À¤Îʸ»ú¤ËÊÑ´¹É½¤òŬÍѤ¹¤ë¡£

ÊÑ´¹É½table¤Ïʸ»úÎó¤Ç¤¢¤ê¡¢ (aref table ochar)¤Ï¡¢ ochar¤ËÂбþ¤¹¤ëÊÑ´¹¤·¤¿Ê¸»ú¤òÍ¿¤¨¤ë¡£ table¤ÎŤµ¤¬256̤Ëþ¤Ç¤¢¤ë¤È¡¢ table¤ÎŤµ¤è¤êÂ礭¤Ê¥³¡¼¥É¤Îʸ»ú¤ÏÊÑ´¹¤Ë¤è¤Ã¤Æ¤ÏÊѹ¹¤µ¤ì¤Ê¤¤¡£

translate-region¤ÎÌá¤êÃͤϡ¢ ÊÑ´¹¤Ë¤è¤Ã¤Æ¼ÂºÝ¤ËÊѹ¹¤·¤¿Ê¸»ú¤Î¸Ä¿ô¤òÊÖ¤¹¡£ ¤³¤ì¤Ë¤Ï¡¢ÊÑ´¹É½¤Ç¼«Ê¬¼«¿È¤ËÊÑ´¹¤µ¤ì¤¿Ê¸»ú¤Ï¿ô¤¨¤Ê¤¤¡£