Add an Emacs Mode for Tup #94

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@ejmr

This patch adds a tup-mode for GNU Emacs to the contrib/syntax/ folder. The mode is also available from multiple Elisp package repositories which monitor the mode for changes, hopefully meaning it will be easier for users to stay up to date with tup-mode without having to submit another pull request here every time something in tup-mode changes.

@ejmr ejmr Add an Emacs major mode for editing Tup files
This patch adds tup-mode available from

    https://github.com/ejmr/tup-mode

to the ‘contrib/syntax/’ folder.  This compliments the Vim syntax file
with something equally suitable for GNU Emacs.

Signed-off-by: Eric James Michael Ritz <lobbyjones@gmail.com>
1d5c101
@gittup
Owner
@ejmr

I have no objections to signing the agreement. It may be a few days before I can get it scanned to actually do so though. But I will email it to you when I do.

@gittup
Owner
@ejmr

I agreed to the Tup contributor license agreement, but it occurs to me that tup-mode is covered by the GNU General Public License. As the original author I have the right to re-license tup-mode as I see fit for other projects, such as inclusion with Tup itself. But do you think there could be any issues in the future by having two versions of tup-mode covered by two different licenses? I must admit that I cannot think of an immediate problem off the top of my head. But I feel like this is something to consider. And don't misinterpret this as me having second thoughts; I would love for tup-mode to be part of the standard Tup distribution. I am only wondering if the dual-license could cause problems, or if it is a non-issue. I would definitely appreciate your thoughts on the matter.

@gittup
Owner
@ejmr

Thanks for the insight Mike. I am not a lawyer either, but that is also my understanding of the licensing.

I will sign the CLA and try to get it to you soon; I still have not had the chance to get it scanned, so that is the only hold-up on my end. In the mean time I like your idea of adding a link to tup-mode from the Tup site. I feel like that would be useful for people even after tup-mode becomes part of the Tup distribution itself.

@gittup
Owner
@ejmr

Does tup-mode supercede whatever that does?

Yes and no. Emacs has a built-in compile command and that snippet shows how to use the command with Tup, and makes the output look a little nicer than the default. Tup-mode lets the user run tup upd directly though, which accomplishes the same thing. Semantically they are the same, except currently tup-mode does not provide colorful output from the results of tup upd like that snippet does.

I am sure some Emacs users would prefer to use Tup in conjunction with the compile command they are accustomed to, so personally I would not remove the snippet. Some users may prefer to only add that short snippet to their Emacs configuration instead of putting a new package like tup-mode on their system.

@gittup
Owner
@ejmr ejmr closed this Feb 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment