Path: utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!ukma!xanth!nic.MR.NET!srcsip!pavo!beede From: beede@pavo.SRC.Honeywell.COM (Michael Beede) Newsgroups: gnu.emacs.bug Subject: replace-match fails at end of some buffers Message-ID: <15368@srcsip.UUCP> Date: 25 Jan 89 15:15:44 GMT Sender: news@src.honeywell.COM Lines: 25 Emacs versions: 18.51.5, 18.51.10. replace-match fails in the case of replacing two matched "\" characters with themselves at the end of a buffer. Repeat by: C-x b * s c r a t c h * RET C-x h C-w RET RET \ \ ESC < ESC ESC ( r e - s e a r c h - f o r w a r d SPC " \ \ ( \ \ \ \ \ \ \ \ \ \ ) " SPC 1 0 0 0 SPC t ) RET ESC ESC ( r e p l a c e - m a t c h SPC " \ \ 1 " ) RET The (replace-match "\\1") replaces the matched string "\\\\" with "\\", e.g., it deletes one of the backslashes. --- Mike Beede -- Secure Computing Technology Center MN55-7282 Honeywell Systems & Research Center (612) 782-7147 2855 Anthony Lane South - Suite 130 Minneapolis MN beede@src.honeywell.com Mike Beede -- Secure Computing Technology Center MN55-7282 Honeywell Systems & Research Center (612) 782-7147 2855 Anthony Lane South - Suite 130 Minneapolis MN beede@src.honeywell.com