Commit Graph

1145 Commits

Author SHA1 Message Date
Dimitri Fontaine
d965dedf14 Merge pull request #440 from pd/inf-ruby-bond
Inf ruby bond
2011-10-11 01:40:45 -07:00
Dimitri Fontaine
3c85a01a9b Squash merge branch reload from DarwinAwardWinner, per #434.
That cleans up the code and allow not to depend on the :reload property, and
cater with some edge cases like features currently loaded but no longer
present in the updated package.

Conflicts:
	el-get.el
2011-10-11 10:37:52 +02:00
Kyle Hargraves
78742c24e4 add dependency on inf-ruby 2011-10-10 16:20:24 -05:00
Kyle Hargraves
e25edc98a9 inf-ruby-bond recipe 2011-10-10 16:16:40 -05:00
Dimitri Fontaine
76e8f0a5ae Add some documentation for M-x el-get-reload and the :reload recipe property.
Also bump the minor version number.
2011-10-10 22:24:46 +02:00
Dimitri Fontaine
a7fbd68b70 Fix #434 by having el-get-update call el-get-reload. 2011-10-10 22:06:26 +02:00
Dimitri Fontaine
ff504e2d4d Implement `el-get-reload' with ideas from #434. 2011-10-10 22:04:10 +02:00
Dimitri Fontaine
77ae4e9f45 Merge pull request #439 from jimeh/yasnippet-via-github
Yasnippet has moved to GitHub, updated recipe accordingly.
2011-10-09 12:28:34 -07:00
Jim Myhrberg
fa68b63e97 Yasnippet has moved to GitHub, updated recipe accordingly. 2011-10-09 20:55:23 +02:00
Dimitri Fontaine
1640f34671 Merge pull request #438 from DarwinAwardWinner/recipe-fix
Replace :after with :post-init in all recipes
2011-10-08 12:29:32 -07:00
Dimitri Fontaine
e6f7a35c41 Fix el-get-install handling of already installed dependencies, per #432. 2011-10-08 21:27:55 +02:00
Ryan C. Thompson
a0ace9cb02 s/:after/:post-init/g in recipes/*.rcp
I also fixed the indentation
2011-10-08 12:22:25 -07:00
Dimitri Fontaine
e60e4920e6 Improve readibility of the el-get-notify error handling. 2011-10-08 21:02:59 +02:00
Dimitri Fontaine
e719f281d1 Merge pull request #436 from DarwinAwardWinner/notification-bugfix
Don't allow notification errors to halt el-get
2011-10-08 11:59:40 -07:00
Dimitri Fontaine
02d8b51e7d Merge pull request #409 from justinweiss/patch-1
Fixed after => post-init in the yaml-mode recipe
2011-10-08 10:39:24 -07:00
Dimitri Fontaine
c67a5d12d2 Merge pull request #427 from diasjorge/recipes
Recipes
2011-10-08 10:37:44 -07:00
Dimitri Fontaine
b96163ab74 Merge pull request #437 from pd/feature-mode
add feature-mode recipe
2011-10-08 10:26:04 -07:00
Kyle Hargraves
5a395b89fd add feature-mode recipe 2011-10-08 09:03:57 -05:00
Dimitri Fontaine
7c6e76fe44 Merge pull request #435 from DarwinAwardWinner/build-fix
Let the shell interpret single-string build commands
2011-10-08 03:51:47 -07:00
Dimitri Fontaine
69e663aa1a Merge pull request #433 from DarwinAwardWinner/bugfix
Remove extraneous parentheses
2011-10-08 03:47:31 -07:00
Ryan C. Thompson
47ab1f8135 Don't allow notification errors to halt el-get
Notify functions can sometimes fail (due to dbus errors and such), and
this should not cause el-get to halt, because notification is arguably
non-essential. If the chosen notification method fails, "message" is
used instead.
2011-10-07 16:56:34 -07:00
Ryan C. Thompson
58e7b8eec9 Remove extraneous parentheses 2011-10-07 16:31:25 -07:00
Ryan C. Thompson
0945dd2757 Let the shell interpret single-string build commands 2011-10-07 15:29:52 -07:00
Dimitri Fontaine
831c55aa27 Update the changelog and el-get-version.
The previous patches are changing the behavior in a user visible way for
recipes.  Update user documentation to reflect the change and upgrade the
minor version number to be able to track this.
2011-10-07 22:57:08 +02:00
Dimitri Fontaine
01344174dd Merge pull request #428 from DarwinAwardWinner/build-fix
More build fixes
2011-10-07 13:50:00 -07:00
Ryan C. Thompson
508fb7e149 Don't assume that first build command is a string
Build commands are supposed to be either strings or lists of strings.
But the code for deciding whether to eval the :build property only
checks for a string, not a list. This commit fixes this, so that a
build property whose commands are all lists of strings should no
longer cause an error. Evaluation of the :build property now only
happens when the car is a symbol, since that is the only time that
evaluation would not result in an error.

Also in this commit:

* Ensure build commands are all strings or lists of strings and raise
  an error otherwise. The check happens after flattening, so nested
  lists of strings should also pass.
* A few syntax fixes
* Add a function "el-get-list-of-strings-p"
2011-10-07 13:33:45 -07:00
Dimitri Fontaine
27f72f0911 Merge pull request #430 from DarwinAwardWinner/bugfix
Fix reference to nonexistent variable
2011-10-07 12:56:47 -07:00
Ryan C. Thompson
47970ef7b0 Fix reference to nonexistent variable 2011-10-07 12:46:34 -07:00
Dimitri Fontaine
a388bcebef Merge pull request #429 from DarwinAwardWinner/installer-fix
Support el-get-install-branch to specify a branch to install.
2011-10-07 11:11:33 -07:00
Ryan C. Thompson
6e8082a4e5 Remove extraneous quote 2011-10-07 03:46:08 -07:00
Ryan C. Thompson
c05e46b4ba Support el-get-install-branch to specify a branch to install.
Use it like this:

    (url-retrieve
     "https://raw.github.com/dimitri/el-get/master/el-get-install.el"
     (lambda (s)
       (let ((el-get-install-branch "3.stable"))
         (end-of-buffer)
         (eval-print-last-sexp))))

This variable takes precedence over "el-get-master-branch", and must
be set to a string.

Documentation for this needs to be added to the readme.
2011-10-07 03:15:49 -07:00
Jorge Dias
598aa711a3 Recipe for ruby-test-mode 2011-10-07 11:38:08 +02:00
Jorge Dias
a28e5cf021 Recipe for lorem-ipsum generator 2011-10-07 11:38:08 +02:00
Jorge Dias
8ca240d7a3 Recipe for jekyll mode 2011-10-07 11:38:08 +02:00
Jorge Dias
695692eea0 Recipe for find file in project 2011-10-07 11:37:52 +02:00
Dimitri Fontaine
bd4296900b Merge pull request #426 from DarwinAwardWinner/build-fix
Eliminate all double shell-quoting
2011-10-06 06:41:40 -07:00
Ryan C. Thompson
9be99cc3db Warn for build commands that rely on whitespace-splitting
El-get-build allows a command to be specified as a single string. It
will split that string on whitespace into a list of strings, and each
element of that list will eventually be shell-quoted (by
`el-get-start-process-list`). This is wrong behavior that can easily
cause an innocent command to be over-escaped or split into too many
arguments, or both. For example, consider a build process that
involves running the following command:

    make SOME_OPTION="this is the option value"

Written as a string in Elisp, that would be:

    "make SOME_OPTION=\"this is the option value\""

After splitting on whitespace and then shell-quoting and then passing
the result to the shell, the above command is equivalent to running
the following at the shell:

    "make" "SOME_OPTION=\"this" "is" "the" "option" "value\""

See the problem? What was once a single argument is now five, and the
quotation marks have been inappropriately quoted. For this reason, I
think auto-whitespace splitting should probably be deprecated. The
command should either be a single string, which would be interpreted
as a command to be run with no arguments, or a list of strings, like
this:

    '("make" "SOME_OPTION=\"this is the option value\"")
2011-10-06 02:31:36 -07:00
Ryan C. Thompson
3fa180a61f Use a list of arguments instead of a single string for command
The `el-get-install-or-init-info` composed a command as a single
pre-quoted string using `concat` and `shell-quote-argument`. It is
better to make the command a list of unquoted arguments, which is what
this commit does.
2011-10-06 02:06:29 -07:00
Ryan C. Thompson
bd8ec955fd Don't call shell-quote-argument in mailcrypt recipe
I haven't tested this at all, but assuming that the :build property of
a recipe gets passed through el-get-build and subsequently
el-get-start-process-list, the recipe itself should never use
`shell-quote-argument`.
2011-10-06 01:49:35 -07:00
Ryan C. Thompson
996e798bfc Don't call shell-quote-argument in el-get-byte-compile-process
Same reason as in 11ef806a. The result of this function is passed to
`el-get-start-process-list` with a `:shell t` option, which results in
shell-quoting. So doing it here is redundant and potentially harmful.
2011-10-06 01:49:35 -07:00
Dimitri Fontaine
29009e2b0d Fix parens style in installer. 2011-10-06 09:39:12 +02:00
Dimitri Fontaine
9530bb7a09 Merge pull request #425 from pd/package-method-fix
el-get-package-method should use the package def not the argument passed
2011-10-06 00:33:06 -07:00
Dimitri Fontaine
fd3c11236f Merge pull request #424 from DarwinAwardWinner/installer-fix
Installer fix
2011-10-06 00:32:24 -07:00
Dimitri Fontaine
bda6232c0e Merge pull request #423 from DarwinAwardWinner/build-fix
Don't call shell-quote-argument in el-get-build
2011-10-06 00:28:04 -07:00
Kyle Hargraves
12b15b358b el-get-package-method should use the package def not the argument passed in 2011-10-05 20:01:58 -05:00
Ryan C. Thompson
08fc130581 Delete blank line at EOF 2011-10-05 14:59:11 -07:00
Ryan C. Thompson
321699e462 Load el-get before let-binding el-get variables
Before, the newly-installed el-get package was loaded while
`el-get-default-process-sync` and `el-get-post-install` were
let-bound, which caused their corresponding `defvar` statements to be
ignored, which resulted in a non-functional el-get unless one manually
re-loaded el-get or restarted emacs.
2011-10-05 14:59:02 -07:00
Ryan C. Thompson
72ebbf1b22 Use "or" instead of "if" to choose between alternatives 2011-10-05 14:55:39 -07:00
Ryan C. Thompson
11ef806adc Don't call shell-quote-argument in el-get-build
Also, use slightly more robust type checking on the command.
2011-10-05 14:40:14 -07:00
Dimitri Fontaine
6abbd8a600 Merge pull request #422 from diasjorge/symlink-elpa
Elpa installation error symlinking package
2011-10-04 09:19:16 -07:00