Skip to content

Commit 996081b

Browse files
committed
Merge branch 'release/0.3.0'
2 parents 24bae05 + 36a8caf commit 996081b

22 files changed

+1892
-617
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
*.elc
2+
drupal-mode.info
23
drupal-mode-*.tar
4+
drupal-mode-pkg.el
5+
README
6+
.cask

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Feature requests, ideas, bug reports, and pull request are more than
2+
welcome!

COPYING

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

Cask

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
(package-file "drupal-mode.el")
2+
3+
(source marmalade)

Makefile

Lines changed: 49 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,56 @@
1-
.PHONY: all elpa-package elpa-install
1+
# This file is part of Drupal mode.
22

3-
VERSION=0.2.0
3+
# Copyright (C) 2012, 2013 Arne Jørgensen
44

5-
all: drupal-mode.info README
5+
# Author: Arne Jørgensen <[email protected]>
66

7-
drupal-mode.info: README.md
8-
pandoc -t texinfo $^ | makeinfo -o $@
7+
# Drupal mode is free software: you can redistribute it and/or modify
8+
# it under the terms of the GNU General Public License as published
9+
# by the Free Software Foundation, either version 3 of the License,
10+
# or (at your option) any later version.
11+
12+
# Drupal mode is distributed in the hope that it will be useful, but
13+
# WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15+
# General Public License for more details.
16+
17+
# You should have received a copy of the GNU General Public License
18+
# along with Drupal mode. If not, see <http://www.gnu.org/licenses/>.
19+
20+
.PHONY: all test clean install
21+
22+
CASK?=cask
23+
EMACS?=emacs
24+
TAR?=bsdtar
25+
PANDOC?=pandoc --atx-headers
26+
27+
VERSION?=$(shell $(CASK) version)
28+
29+
ARCHIVE_NAME=drupal-mode
30+
PACKAGE_NAME=$(ARCHIVE_NAME)-$(VERSION)
31+
32+
all: $(PACKAGE_NAME).tar
33+
34+
test:
35+
$(CASK) install
36+
$(CASK) exec $(EMACS) --no-site-file --no-site-lisp --batch -L $(PWD) -l drupal-tests -f ert-run-tests-batch-and-exit
37+
38+
$(ARCHIVE_NAME).info: README.md
39+
$(PANDOC) -t texinfo $^ | makeinfo -o $@
940

1041
README: README.md
11-
pandoc --atx-headers -t plain -o $@ $^
42+
$(PANDOC) -t plain -o $@ $^
43+
44+
$(ARCHIVE_NAME)-pkg.el: $(ARCHIVE_NAME).el
45+
$(CASK) package
1246

1347
# create a tar ball in package.el format for uploading to http://marmalade-repo.org
14-
elpa-package: README drupal-mode.el drupal-mode-pkg.el drupal-mode.info dir drupal/*.el
15-
tar -c -s "@^@drupal-mode-${VERSION}/@" -f drupal-mode-${VERSION}.tar $^
16-
17-
elpa-install: elpa-package
18-
emacs --batch --eval "(progn \
19-
(require 'package)\
20-
(add-to-list 'package-archives '(\"marmalade\" . \"http://marmalade-repo.org/packages/\"))\
21-
(package-initialize)\
22-
(package-install-file \"`pwd`/drupal-mode-${VERSION}.tar\"))"
48+
$(PACKAGE_NAME).tar: README $(ARCHIVE_NAME).el $(ARCHIVE_NAME)-pkg.el $(ARCHIVE_NAME).info dir drupal/*.el drupal-tests.el drush-make-mode.el
49+
COPYFILE_DISABLE=1 $(TAR) -c -s "@^@$(PACKAGE_NAME)/@" -f $(PACKAGE_NAME).tar $^
50+
51+
install: $(PACKAGE_NAME).tar
52+
$(EMACS) --batch -l package -f package-initialize --eval "(package-install-file \"$(PWD)/$(PACKAGE_NAME).tar\")"
53+
54+
clean:
55+
$(RM) $(ARCHIVE_NAME).info $(ARCHIVE_NAME)-*.tar $(ARCHIVE_NAME)-pkg.el README
56+
$(RM) -r .cask

README

Lines changed: 0 additions & 162 deletions
This file was deleted.

README.md

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ Besides giving access to general functionality in all modes
1414
major mode to enable functionality only for that particular major mode
1515
(i.e. adhering to Drupals PHP coding standards only in php-mode).
1616

17-
Drupal mode will try not to enforce specific ways of working with
17+
Drupal mode will not try to enforce specific ways of working with
1818
Emacs on to you. Emacs can be extended in a million different ways and
1919
you should use the parts and extensions that fit *you* and *your*
2020
working habits.
2121

22-
If Drupal mode recognizes you using an extension that it knows about
23-
it will adapt the extension to be useful in Drupal mode and with
22+
If Drupal mode recognizes you are using an extension that it knows
23+
about it will adapt the extension to be useful in Drupal mode and with
2424
Drupal. I.e. it will recognize if you have loaded etags support and
2525
setup your buffers to use the TAGS file in your DRUPAL_ROOT folder.
2626

@@ -57,8 +57,8 @@ it is considered a bug!
5757

5858
#### Fixing line endings
5959

60-
If your files are not written with unix style line endings Drupal mode
61-
will ask your to convert them to unix style line endings on saving
60+
If your files are not written with Unix style line endings Drupal mode
61+
will ask your to convert them to Unix style line endings on saving
6262
buffers.
6363

6464
This behavior can be customized be the variable
@@ -83,35 +83,35 @@ This behavior can be customized be the variable
8383
### Search documentation
8484

8585
You can search Drupal documentation for the symbol at point by issuing
86-
`C-c d f` or `M-x drupal-search-documentation` or from the Drupal
86+
`C-c C-v C-d` or `M-x drupal-search-documentation` or from the Drupal
8787
menu entry.
8888

8989
Files that are part of a Drupal project will try to identify the used
9090
version of Drupal core and look up the documentation for the
9191
corresponding version at http://api.drupal.org.
9292

93-
If the symbol at point is believed to be a drush command the
93+
If the symbol at point is believed to be a Drush command the
9494
documentation will be looked up at http://api.drush.org instead. If
9595
Drush is installed it will identify the version of Drush and look up
96-
the documentation for that version.
96+
the documentation for the installed version of Drush.
9797

98-
You can change where to search for documentation be customizing
98+
You can change where to search for documentation by customizing
9999
`drupal-search-url` (besides api.drupal.org it also has a predefined
100100
setting for api.drupalcontrib.org) and `drupal-drush-search-url`.
101101

102102

103103
### Clearing all caches
104104

105105
If Drush is installed you can issue a `drush cc all` from within Emacs
106-
by issuing `C-c d c` or `M-x drupal-drush-cache-clear` or from the
106+
by issuing `C-c C-v C-c` or `M-x drupal-drush-cache-clear` or from the
107107
Drupal menu entry.
108108

109109

110110
### Drush editing minor mode
111111

112-
If the buffer you visit is believe to be a Drush command (we think it
113-
is its name or path contains "drush") we will also enter a Drush minor
114-
mode.
112+
If the buffer you visit is believed to be a Drush command (we think it
113+
is if its file name or path contains "drush") we will also enter a
114+
Drush minor mode.
115115

116116
There is currently no functionality connected to `drupal-drush-mode`.
117117

@@ -123,7 +123,7 @@ If you have generated a TAGS file in your DRUPAL_ROOT folder Drupal
123123
mode will setup all buffers running drupal-mode to set
124124
`tags-file-name` to point to that TAGS file.
125125

126-
Etags is a builtin part of Emacs.
126+
Etags is a built-in part of Emacs.
127127

128128

129129
### GNU Globals / gtags
@@ -133,13 +133,21 @@ support in Emacs then Drupal mode will set `gtags-rootdir` to your
133133
DRUPAL_ROOT.
134134

135135

136+
### Drush utilities for Emacs users
137+
138+
If
139+
[Drush utilities for Emacs users](http://drupal.org/project/emacs_drush)
140+
is installed Drupal mode will update existing tag files in your
141+
DRUPAL_ROOT after saving a buffer.
142+
143+
136144
### ispell
137145

138146
If ispell.el is loaded in Emacs then Drupal mode will set the language
139147
of your Drupal mode buffers to `american` as stated in [Drupals coding
140148
standards](http://drupal.org/coding-standards).
141149

142-
ispell.el is a builtin part of Emacs. A external program must be
150+
ispell.el is a built-in part of Emacs. An external program must be
143151
installed to run the actual spell checking,
144152
i.e. [ispell](http://www.gnu.org/software/ispell/),
145153
[aspell](http://aspell.net/), or
@@ -150,27 +158,23 @@ i.e. [ispell](http://www.gnu.org/software/ispell/),
150158

151159
If support for
152160
[flymake-phpcs.el](https://github.com/illusori/emacs-flymake-phpcs) is
153-
loaded in emacs and you have installed
161+
loaded in Emacs and you have installed
154162
[Drupal Code Sniffer](http://drupal.org/project/drupalcs) rules then
155163
Drupal mode will enable flymake-phpcs under php-mode.
156164

157165
For this to work you need:
158166

159167
* [PHP CodeSniffer](http://pear.php.net/package/PHP_CodeSniffer)
160-
* [flymake-phpcs.el](https://github.com/illusori/emacs-flymake-phpcs)
168+
* [flymake-phpcs.el](http://marmalade-repo.org/packages/flymake-phpcs)
161169
* [Drupal Code Sniffer](http://drupal.org/project/drupalcs) rules
162170

163-
Making all of them work together can be a bit of a puzzle. Especially
164-
notice the need to run `phpcs` through a wrapper you get with
165-
flymake-phpcs.el.
166-
167171

168172
## Other takes on a Drupal mode
169173

170174
There are quite a few attempts at writing a Drupal mode out in the
171175
wild:
172176

173-
* [Search Github for drupal-mode](https://github.com/search?type=Repositories&q=drupal-mode)
177+
* [Search Github for drupal-mode](https://github.com/search?type=Repositories&q="drupal-mode")
174178
* At drupal.org:
175179
* http://drupal.org/sandbox/bartlantz/1405156
176180
* http://drupal.org/project/emacs
@@ -183,4 +187,4 @@ All of them more or less based on
183187

184188
Drupal mode is actively developed at
185189
[GitHub](https://github.com/arnested/drupal-mode). Feature requests,
186-
ideas, bug reports, and pull request are more that welcome!
190+
ideas, bug reports, and pull request are more than welcome!

drupal-mode-pkg.el

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)