From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: hack-local-variables-confirm loops forever when running keyboard macro Date: Mon, 22 Jan 2007 12:48:19 -0500 Message-ID: <87fya3rlzw.fsf@stupidchicken.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1169488120 17853 80.91.229.12 (22 Jan 2007 17:48:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Jan 2007 17:48:40 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 22 18:48:38 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H93HV-0002g2-LQ for ged-emacs-devel@m.gmane.org; Mon, 22 Jan 2007 18:48:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H93HV-0005n7-76 for ged-emacs-devel@m.gmane.org; Mon, 22 Jan 2007 12:48:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H93HE-0005kY-0e for emacs-devel@gnu.org; Mon, 22 Jan 2007 12:48:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H93HD-0005j8-4g for emacs-devel@gnu.org; Mon, 22 Jan 2007 12:48:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H93HC-0005im-Uv for emacs-devel@gnu.org; Mon, 22 Jan 2007 12:48:15 -0500 Original-Received: from [18.19.1.138] (helo=cyd.mit.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H93H9-0007VW-3m; Mon, 22 Jan 2007 12:48:11 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 4EF294E471; Mon, 22 Jan 2007 12:48:19 -0500 (EST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Sun\, 21 Jan 2007 01\:49\:38 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:65382 Archived-At: Richard Stallman writes: > Would someone please fix this, then ack? I don't think any fix is necessary---one simply ought to be careful when defining keyboard macros to avoid situations like this. Note that C-g successfully breaks the loop, as it should. > From: Chris Moore > Subject: hack-local-variables-confirm loops forever when running keyboard macro > To: emacs-pretest-bug@gnu.org, Chris Moore > Cc: > > 1. ensure temp file doesn't exist > > $ rm /tmp/file.txt > > 2. create a temp file with 'risky' local variable: > > $ printf "# Local Variables:\n# eval: (put 'w 't 'f)\n# End:\n" > /tmp/file.txt > > 3. run Emacs: > > $ emacs -Q > > 4. visit the temp file. it will prompt for whether to run the risky > code: > > C-x C-f /tmp/file.txt RET > > 5. answer that you don't want to run it: > > n > > 6. start recording a macro: > > C-x ( > > 7. visit the risky temp file. it won't prompt this time, since the > file is already visited > > C-x C-f /tmp/file.txt RET > > 8. stop recording the macro > > C-x ) > > 9. kill the temp file's buffer > > C-x k RET > > 10. run the macro. Emacs will hang forever: > > C-x e