[Top][All Lists]

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

Re: [Aquamacs-bugs] C++ program auto-insertion fails with Aquamacs 1.3

From: Stefanus Du Toit
Subject: Re: [Aquamacs-bugs] C++ program auto-insertion fails with Aquamacs 1.3
Date: Fri, 7 Mar 2008 17:17:24 -0500

On 7-Mar-08, at 4:38 PM, Stefan Monnier wrote:
(Don't know enough about C++ mode to attempt to reproduce this.)

Ask him to give a recipe,

Assuming you mean steps to reproduce, here's an attempt at that. I haven't tried to do this in isolation with an empty .emacs yet. Sorry.

*** To reproduce:

Evaluate (from my .emacs):
(add-hook 'find-file-hooks 'auto-insert)

C-x C-f ~/foo.hpp RET
y (when prompted to "Perform C / C++ header auto-insertion")

*** Expected behaviour:

The newly created buffer, visible, with the following contents:
#ifndef FOO_HPP
#define FOO_HPP

<cursor here>


*** Actual behaviour:

Same buffer that was visible before is visible. When switching to the newly created buffer, it contains:
#ifndef <cursor here>

And the *Messages* buffer contains:
(New file)
Perform C / C++ header auto-insertion? (y or n)
byte-code: End of buffer

Stefanus Du Toit

reply via email to

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