I don't entirely understand this, but I suggest that someone who uses Windows read it and DTRT.
------- Start of forwarded message ------- Content-class: urn:content-classes:message Date: Wed, 3 Aug 2005 09:01:18 -0400 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Kill ring leak in winemacs macros thread-index: AcWYK3ABQ65m+NXSS0mtGESyg+Ym5A== From: "Peterson, Eric" <[EMAIL PROTECTED]> To: <bug-gnu-emacs@gnu.org> Subject: Kill ring leak in winemacs macros Sender: [EMAIL PROTECTED] X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on monty-python X-Spam-Level: X-Spam-Status: No, hits=0.2 required=5.0 tests=HTML_50_60,HTML_MESSAGE autolearn=no version=2.63 This is a multi-part message in MIME format. - --===============0788368949== Content-class: urn:content-classes:message Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5982B.708C97B1" This is a multi-part message in MIME format. - ------_=_NextPart_001_01C5982B.708C97B1 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable To: bug-gnu-emacs@gnu.org Subject: Kill ring leak in winemacs macros - --text follows this line-- This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. =20 Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. =20 In GNU Emacs 21.3.1 (i386-mingw-nt5.1.2600) of 2004-03-10 on NYAUMO configured using `configure --with-gcc (3.2)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU locale-coding-system: iso-latin-1 default-enable-multibyte-characters: t =20 Please describe exactly what actions triggered the bug and the precise symptoms of the bug: =20 When I create a keyboard macro in which I kill and yank form the EMACS kill ring and infinitely apply the macro via the "0" prefix argument, I have to make sure and not copy or kill into the Windows kill ring while the macro is running. Otherwise this inadvertently introduces unwanted/unexpected data into the EMACS kill ring. My macros can run for a long time on large files, so this can stop me from doing other work while I am waiting. Or I can forget about the danger and corrupt the data I am manipulating. =20 A related issue is that EMACS macro's, I believe, used to run keyboard macros a *Lot* faster back in my Unix days in EMACS. I quite suspect that the overhead of keeping the Windows kill ring consistant with the emacs kill ring is bogging the process down. =20 I couldn't find a version of or argument for EMACS "kill-line" or "kill-ring-save" that would help me. I'm hoping for a solution that wouldn't require me to code and manipulation of "interprogram-cut-function" seemed to require codeing. =20 Anyway, thanks for the EMACS support!!! =20 - -Eric =20 Recent input: C-n C-n C-n C-n C-n C-x o C-a C-f C-f C-f w : C-a C-k=20 C-k C-y C-y C-p C-f C-f C-f C-f C-f C-f C-f C-b C-b=20 C-b C-b C-x o C-v C-x o / C-f C-f C-f C-f C-f C-f C-k=20 > C-h n <lwindow> <help-echo> <mouse-1> <mouse-1> <mouse-1>=20 <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>=20 <mouse-1> <mouse-1> C-h a b u g <return> C-s C-g C-x=20 o C-s r e p o r t C-s C-s C-s C-n C-s C-s C-g C-x o=20 ESC x r e p o r t SPC e m SPC b SPC <return> =20 Recent messages: Auto-saving...done Loading outline... Loading easy-mmode...done Loading outline...done Loading apropos...done Type C-x 4 b RET to restore the other window. C-M-v to scroll the help. isearch-abort: Quit Mark saved where search started isearch-abort: Quit Loading emacsbug...done< - ------_=_NextPart_001_01C5982B.708C97B1 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:Arial; color:windowtext;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} - --> </style> </head> <body lang=3DEN-US link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>To: = bug-gnu-emacs@gnu.org<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Subject: Kill ring leak in winemacs = macros<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>--text follows this = line--<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>This bug report will be sent to the Free Software Foundation,<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>not to your local site = managers!<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Please write in English, because the Emacs = maintainers do not have<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>translators to read other languages for = them.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Your bug report will be posted to the = bug-gnu-emacs@gnu.org mailing list,<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>and to the gnu.emacs.bug news = group.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>In GNU Emacs 21.3.1 = (i386-mingw-nt5.1.2600)<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> of 2004-03-10 on = NYAUMO<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>configured using `configure --with-gcc = (3.2)'<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Important settings:<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> value of $LC_ALL: = nil<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> value of $LC_COLLATE: = nil<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> value of $LC_CTYPE: = nil<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> value of $LC_MESSAGES: = nil<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> value of $LC_MONETARY: = nil<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> value of $LC_NUMERIC: = nil<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> value of $LC_TIME: = nil<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> value of $LANG: = ENU<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> locale-coding-system: = iso-latin-1<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'> default-enable-multibyte-characters: = t<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Please describe exactly what actions triggered the = bug<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>and the precise symptoms of the = bug:<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>When I create a keyboard macro in which I kill and = yank form the EMACS kill ring and infinitely apply the macro via the "0" = prefix argument, I have to make sure and not copy or kill into the Windows kill = ring while the macro is running. Otherwise this inadvertently = introduces unwanted/unexpected data into the EMACS kill ring. My macros can = run for a long time on large files, so this can stop me from doing other work = while I am waiting. Or I can forget about the danger and corrupt the data I = am manipulating.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>A related issue is that EMACS macro's, I believe, = used to run keyboard macros a *Lot* faster back in my Unix days in EMACS. = I quite suspect that the overhead of keeping the Windows kill ring consistant = with the emacs kill ring is bogging the process = down.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>I couldn't find a version of or argument for EMACS "kill-line" or "kill-ring-save" that would help = me. I'm hoping for a solution that wouldn't require me to code and manipulation = of "interprogram-cut-function" seemed to require = codeing.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Anyway, thanks for the EMACS = support!!!<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>-Eric<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Recent input:<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>C-n C-n C-n C-n C-n C-x o C-a C-f C-f C-f w : C-a C-k = <o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>C-k C-y C-y C-p C-f C-f C-f C-f C-f C-f C-f C-b C-b = <o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>C-b C-b C-x o C-v C-x o / C-f C-f C-f C-f C-f C-f C-k = <o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>> C-h n <lwindow> <help-echo> = <mouse-1> <mouse-1> <mouse-1> <o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> = <o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><mouse-1> <mouse-1> C-h a b u g = <return> C-s C-g C-x <o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>o C-s r e p o r t C-s C-s C-s C-n C-s C-s C-g C-x o = <o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>ESC x r e p o r t SPC e m SPC b SPC = <return><o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Recent messages:<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Auto-saving...done<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Loading outline...<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Loading = easy-mmode...done<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Loading outline...done<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Loading apropos...done<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Type C-x 4 b RET to restore the other window. = C-M-v to scroll the help.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>isearch-abort: Quit<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Mark saved where search = started<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>isearch-abort: Quit<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DArial><span = style=3D'font-size:10.0pt; font-family:Arial'>Loading emacsbug...done</span></font><font size=3D1 face=3DArial><span = style=3D'font-size:9.0pt;font-family:Arial'><<o:p></o:p></span></font>= </p> </div> </body> </html> - ------_=_NextPart_001_01C5982B.708C97B1-- - --===============0788368949== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bug-gnu-emacs mailing list Bug-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs - --===============0788368949==-- ------- End of forwarded message ------- _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel