all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Cc: cc-mode-help@lists.sourceforge.net
Subject: Re: Reify the cc-mode-common into an actual parent mode
Date: Mon, 30 May 2016 13:37:15 -0400	[thread overview]
Message-ID: <jwvh9dfqwkq.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: 20160529100020.GB3367@acm.fritz.box

> I think it is.  Although it is certainly open to a mode hacker to go
> through cc-langs.el adding in values for every language variable for her
> new mode, it is far less troublesome to use `c-add-language', which uses
> an existing mode (not necessarily one of the seven "blessed" modes) as a
> basis.

Using c-add-language is orthogonal to whether or not the new mode
derives (in the define-derived-mode) from another.

I don't think it would be correct for csharp-mode to derive from c-mode,
since the user may place settings specific to C (and inapplicable or
not desired for C#) in its c-mode-hook.


        Stefan




      reply	other threads:[~2016-05-30 17:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-24  0:41 Reify the cc-mode-common into an actual parent mode Stefan Monnier
2016-05-28 11:30 ` Alan Mackenzie
2016-05-28 17:51   ` Stefan Monnier
2016-05-29  9:45     ` Alan Mackenzie
2016-05-29 14:53       ` Stefan Monnier
2016-05-28 18:08   ` Stefan Monnier
2016-05-29 10:00     ` Alan Mackenzie
2016-05-30 17:37       ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvh9dfqwkq.fsf-monnier+gmane.emacs.devel@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=cc-mode-help@lists.sourceforge.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.