* Re: Ignoring unknown mode `GNUmakefile-mode'
[not found] <mailman.164.1467017573.26859.help-gnu-emacs@gnu.org>
@ 2016-06-27 9:34 ` Alain Ketterlin
2016-06-27 9:56 ` Joost Kremers
1 sibling, 0 replies; 4+ messages in thread
From: Alain Ketterlin @ 2016-06-27 9:34 UTC (permalink / raw)
To: help-gnu-emacs
Dan Hitt <dan.hitt@gmail.com> writes:
> But if i add
> # -*- GNUmakefile -*-
> at the top of the file, i get a message:
> Ignoring unknown mode `GNUmakefile-mode'.
Use makefile-gmake instead. The documentation of makefile-mode lists
other variants.
-- Alain.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Ignoring unknown mode `GNUmakefile-mode'
[not found] <mailman.164.1467017573.26859.help-gnu-emacs@gnu.org>
2016-06-27 9:34 ` Ignoring unknown mode `GNUmakefile-mode' Alain Ketterlin
@ 2016-06-27 9:56 ` Joost Kremers
2016-06-27 14:48 ` Dan Hitt
1 sibling, 1 reply; 4+ messages in thread
From: Joost Kremers @ 2016-06-27 9:56 UTC (permalink / raw)
To: help-gnu-emacs
Dan Hitt wrote:
> I have a file whose name is not 'makefile', nor 'Makefile', nor 'GNUmakefile'.
>
> If i visit it using emacs (v 24.5.1, xubuntu 16.04), the modeline
> correctly indicates GNUmakefile.
>
> But if i add
> # -*- GNUmakefile -*-
> at the top of the file, i get a message:
> Ignoring unknown mode `GNUmakefile-mode'.
The name displayed in the mode line is not necessarily the actual name
of the major mode. For that, you should inspect the (buffer-local) value
of the variable `major-mode'. Do `C-h v major-mode RET` to check it out.
--
Joost Kremers joostkremers@fastmail.fm
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Ignoring unknown mode `GNUmakefile-mode'
2016-06-27 9:56 ` Joost Kremers
@ 2016-06-27 14:48 ` Dan Hitt
0 siblings, 0 replies; 4+ messages in thread
From: Dan Hitt @ 2016-06-27 14:48 UTC (permalink / raw)
To: Joost Kremers; +Cc: help-gnu-emacs
Thanks Joost and Alain,
The diagnostics work the way you said and makefile-gmake solves my problems.
dan
On Mon, Jun 27, 2016 at 2:56 AM, Joost Kremers
<joost.m.kremers@gmail.com> wrote:
> Dan Hitt wrote:
.....
>> But if i add
>> # -*- GNUmakefile -*-
>> at the top of the file, i get a message:
>> Ignoring unknown mode `GNUmakefile-mode'.
>
> The name displayed in the mode line is not necessarily the actual name
> of the major mode. For that, you should inspect the (buffer-local) value
> of the variable `major-mode'. Do `C-h v major-mode RET` to check it out.
>
>
> --
> Joost Kremers joostkremers@fastmail.fm
^ permalink raw reply [flat|nested] 4+ messages in thread
* Ignoring unknown mode `GNUmakefile-mode'
@ 2016-06-26 21:05 Dan Hitt
0 siblings, 0 replies; 4+ messages in thread
From: Dan Hitt @ 2016-06-26 21:05 UTC (permalink / raw)
To: help-gnu-emacs
I have a file whose name is not 'makefile', nor 'Makefile', nor 'GNUmakefile'.
If i visit it using emacs (v 24.5.1, xubuntu 16.04), the modeline
correctly indicates GNUmakefile.
But if i add
# -*- GNUmakefile -*-
at the top of the file, i get a message:
Ignoring unknown mode `GNUmakefile-mode'.
This makes me very uneasy, because i don't know how it is detecting
the mode, and if i mess up the file, it may no longer recognize it as
a GNUmakefile. Also, i don't know if other versions of emacs will be
able to recognize that it is a GNUmakefile.
Note that i can explicitly set the mode with a line like
# -*- Makefile -*-
That does not generate any warnings, but the mode line indicates
'Makefile' rather than 'GNUmakefile', which is not really correct
since it uses a bunch of GNUmakefile specific things.
So . . . is there some way i can instruct emacs, in the text of the
file, that i want it to be treated as a GNUmakefile?
TIA for any clues!
dan
PS: i googled for the line in the subject, and was very surprised not
to get a single match.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-06-27 14:48 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.164.1467017573.26859.help-gnu-emacs@gnu.org>
2016-06-27 9:34 ` Ignoring unknown mode `GNUmakefile-mode' Alain Ketterlin
2016-06-27 9:56 ` Joost Kremers
2016-06-27 14:48 ` Dan Hitt
2016-06-26 21:05 Dan Hitt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).