bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: set-buffer-major-mode problem


From: Stefan Monnier
Subject: Re: set-buffer-major-mode problem
Date: 27 Nov 2001 23:02:43 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.50

>>>>> "Joe" == Joe Casadonte <address@hidden> writes:
> When visiting a file via find-file, if the file has no discernible
> mode (i.e. no known file extension, and no -*- mode: foo -*- magic)
> AND the path to the file includes a directory starting with ".h", then
> the file will be put into C++ mode.  Example:
>     /home/joe/.happy/somefilename

I can't reproduce this.
I tried `emacs -q --no-site-file /home/joe/.happy/somefilename'
and the buffer was put in fundamental-mode.
There's probably a piece of code like

        (add-to-list 'auto-mode-alist '("\\.h" . c++-mode))

somewhere in your .emacs or your site init files.


        Stefan



reply via email to

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