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

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

Re: unable to create/find a .cpp file (ed.2)


From: Kevin Rodgers
Subject: Re: unable to create/find a .cpp file (ed.2)
Date: Thu, 03 Aug 2006 07:31:32 -0600
User-agent: Thunderbird 1.5.0.5 (Windows/20060719)

Gary Wessle wrote:
Kevin Rodgers <ihs_4664@yahoo.com> writes:

Gary Wessle wrote:
Gary Wessle <phddas@yahoo.com> writes:

Kevin Rodgers <ihs_4664@yahoo.com> writes:
But I think you could override the mailcap/mimetypes association like
this:

(setq extview-application-associations
       (cons '("\\.cpp\\'" . nil) extview-application-associations))

yes, that fixed it, thank you.
sorry, that fix just above will let me open an existing .cpp file but
will not let me create a new one. as well as it will fail find/create
.h files
Exactly what happens when you try to visit a new .cpp file?

--
Kevin

sorry, I meant to say, I can visit a new .cpp file fine now but
visiting a new file.h I get in the *extview log*

Opening file ~/myPrograms/backtest/man.h with handler: more '%s'
/home/fred/myPrograms/backtest/man.h: No such file or directory

Process extview-process finished

****************************************************************

I thought to add a bit extra to what you suggested by doing in my
.emacs the following

(setq extview-application-associations
       (cons '("\\.cpp\\'" . nil) extview-application-associations),
       (cons '("\\.h\\'" . nil) extview-application-associations))

and then restart emacs and trying to visit a new .h file but I still
get the same error i.e, adding the .h line above to my .emacs did
nothing.

Your MIME configuration is broken, not Emacs.  Check ALL the mime.types
files I listed for you.  It seems there is a default entry that maps
every file extension to the more '%s' command; you could verify that
by visiting a file with a nonsensical extension, e.g. "abc.foobarbaz".

--
Kevin





reply via email to

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