beede@pavo.SRC.Honeywell.COM (Michael Beede) (01/25/89)
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