emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hack-local-variables-confirm loops forever when running keyboard mac


From: Chong Yidong
Subject: Re: hack-local-variables-confirm loops forever when running keyboard macro
Date: Mon, 22 Jan 2007 12:48:19 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux)

Richard Stallman <address@hidden> 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 <address@hidden>
> Subject: hack-local-variables-confirm loops forever when running keyboard 
> macro
> To: address@hidden, Chris Moore <address@hidden>
> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]