]>
code.delx.au - gnu-emacs-elpa/log
Oleh Krehel [Fri, 20 Feb 2015 17:35:04 +0000 (18:35 +0100)]
Fix pink and teal Hydras running :post
* hydra.el (hydra--make-defun): Update.
Oleh Krehel [Fri, 20 Feb 2015 17:17:26 +0000 (18:17 +0100)]
hydra.el (hydra--handle-nonhead): Fix bug
Oleh Krehel [Fri, 20 Feb 2015 17:16:52 +0000 (18:16 +0100)]
hydra.el: remove no :pre, :post restriction for Emacs<24.4
Oleh Krehel [Fri, 20 Feb 2015 16:51:52 +0000 (17:51 +0100)]
Improve compatibility for Emacs <= 24.3
* hydra.el (hydra-set-transient-map): Always take 3 arguments.
(hydra--pred): New defun.
(hydra-disable): Update, `overriding-terminal-local-map' is actually
also bound in 24.3.
Fixes #29
Oleh Krehel [Fri, 20 Feb 2015 14:41:32 +0000 (15:41 +0100)]
Add an option to fontify heads in a custom way
* hydra.el (hydra--hint): Forward to `hydra-fontify-head'.
(hydra-fontify-head-function): New defvar.
(hydra-fontify-head-default): New defun that represents the classic
fontification behavior.
(hydra-fontify-head): Fontification dispatch - use
`hydra-fontify-head-default'
unless `hydra-fontify-head-function' is set.
(hydra--format): Forward to `hydra-fontify-head'.
Example:
(setq hydra-fontify-head-function
(lambda (head body)
(let ((color (hydra--head-color head body)))
(format
(if (eq color 'blue)
"[%s]"
"{%s}") (car head)))))
Call `defhydra' here, then reset:
(setq hydra-fontify-head-function nil)
Call another `defhydra' here.
Oleh Krehel [Fri, 20 Feb 2015 13:18:21 +0000 (14:18 +0100)]
Add example for `Buffer-menu-mode'
Oleh Krehel [Fri, 20 Feb 2015 13:09:41 +0000 (14:09 +0100)]
Intercept quit signals
* hydra.el (hydra--format): Make keys wider.
(hydra--make-defun): Catch quit.
(hydra-pink-fallback): Catch quit.
* hydra-test.el: Update tests.
Oleh Krehel [Fri, 20 Feb 2015 10:24:54 +0000 (11:24 +0100)]
Allow `format'-style width specifiers in docstring
* hydra.el (hydra--hint): Process less data.
(hydra--format): Change to add `format'-style width specifiers.
Example:
(defhydra hydra-toggle (:color pink)
"
_a_ abbrev-mode: % 4`abbrev-mode^^^^ _f_ auto-fill-mode: %`auto-fill-function
_d_ debug-on-error: % 4`debug-on-error^ _t_ truncate-lines: %`truncate-lines
_w_ whitespace-mode:% 4`whitespace-mode _g_ golden-ratio-mode: %`golden-ratio-mode
"
("a" abbrev-mode nil)
("d" toggle-debug-on-error nil)
("f" auto-fill-mode nil)
("g" golden-ratio-mode nil)
("t" toggle-truncate-lines nil)
("w" whitespace-mode nil)
("q" nil "quit"))
Here, ^^^ represent empty characters used to compensate for the fact
that the lengths of variable symbols are different.
You can choose not to use them. The result will be the same, but your
code will look misaligned.
Fixes #39.
Oleh Krehel [Fri, 20 Feb 2015 09:40:22 +0000 (10:40 +0100)]
hydra.el (hydra-add-font-lock): Add `defhydradio'
R. Bernstein [Thu, 19 Feb 2015 21:31:58 +0000 (16:31 -0500)]
Merge pull request #4 from phillord/feature/find-file-relative
with-relative-file is now idempotent and tests!
Oleh Krehel [Thu, 19 Feb 2015 21:23:14 +0000 (22:23 +0100)]
hydra.el (hydra--head-color): Improve
* hydra.el (hydra--face): Second arg should be BODY.
(hydra--head-color): Second arg should be BODY.
Phillip Lord [Thu, 19 Feb 2015 21:06:58 +0000 (21:06 +0000)]
with-relative-file is now idempotent and tests!
The first version of with-relative-file left a new buffer around, unless
the file was already open, in which case the existing buffer would be
changed. It was all very stateful and this was not very fixable. This
version uses with-temp-buffer instead, so leaves Emacs as it found it.
This does remove the ability to save to the file from within this
buffer.
Oleh Krehel [Thu, 19 Feb 2015 20:53:32 +0000 (21:53 +0100)]
README.md: fix tables
Oleh Krehel [Thu, 19 Feb 2015 20:45:01 +0000 (21:45 +0100)]
Add compat color-less syntax
* hydra.el (hydra--head-color): Adapt compat switches.
(hydra--body-color): Adapt compat switches.
(hydra--handle-nonhead): Move verbatim from `defhydra'.
(defhydra): Move verbatim to `hydra--handle-nonhead'.
* README.md: Update with two tables.
* hydra-test.el: Add compat tests.
New compat switches are:
- ":exit t" for ":color blue"
- ":nonheads warn" for ":color amaranth"
- ":nonheads warn :exit t" for ":color teal"
- ":nonheads run" for ":color pink"
See the compat tests to get the intuition of how both ways translate
between each other.
Fixes #27.
Oleh Krehel [Thu, 19 Feb 2015 17:45:46 +0000 (18:45 +0100)]
Generate a global resetter in `defhydradio'
* hydra.el (defhydradio): `NAME/reset-radios' will be generated.
(hydra--quote-maybe): Don't quote nil.
* hydra-test.el: Update test.
Oleh Krehel [Thu, 19 Feb 2015 17:29:12 +0000 (18:29 +0100)]
hydra.el (defhydra): Fix typo
Re #38
Oleh Krehel [Thu, 19 Feb 2015 17:13:11 +0000 (18:13 +0100)]
hydra.el (hydra-pink-fallback): Add
* hydra.el (defhydra): More advanced handling of the pink fallback.
Re #38.
Oleh Krehel [Thu, 19 Feb 2015 16:51:12 +0000 (17:51 +0100)]
Fix typos
* hydra.el (defhydra): Fix A/An and "aboring".
Oleh Krehel [Thu, 19 Feb 2015 15:49:15 +0000 (16:49 +0100)]
hydra-examples.el: Add example 7
Oleh Krehel [Thu, 19 Feb 2015 15:48:31 +0000 (16:48 +0100)]
hydra.el (hydra--hint): Add exception
* hydra.el (hydra--hint): Don't add semicolon to docstrings that start
with a newline.
Oleh Krehel [Thu, 19 Feb 2015 15:06:48 +0000 (16:06 +0100)]
hydra.el (hydra--head-color): fix for teal color
Stefan Monnier [Thu, 19 Feb 2015 14:57:38 +0000 (09:57 -0500)]
* jgraph-mode.el (jgraph-mode): Fix strings.
Fixes: debbugs:19898
(jgraph--syntax-end-of-string, jgraph--syntax-propertize): New functions.
Oleh Krehel [Thu, 19 Feb 2015 14:56:17 +0000 (15:56 +0100)]
Add teal body color
* hydra.el (hydra-face-teal): New face.
(hydra--face): Update.
(defhydra): Teal color is the same as amaranth, except the heas inherit
blue instead of red.
This Hydra can reasonably be either blue or teal:
(global-set-key
(kbd "C-c C-v")
(defhydra hydra-toggle (:color teal)
"toggle"
("a" abbrev-mode "abbrev")
("d" toggle-debug-on-error "debug")
("f" auto-fill-mode "fill")
("t" toggle-truncate-lines "truncate")
("w" whitespace-mode "whitespace")
("q" nil "cancel")))
Oleh Krehel [Thu, 19 Feb 2015 14:50:50 +0000 (15:50 +0100)]
hydra.el (hydra--hint): Take same arguments as `defhydra'
Oleh Krehel [Thu, 19 Feb 2015 14:48:41 +0000 (15:48 +0100)]
Update faces
* hydra.el (hydra-face-red): Set default to actual color red.
(hydra-face-blue): Set default to actual color blue.
(hydra-face-amaranth): Explain better in the doc.
(hydra-face-pink): Explain better in the doc.
R. Bernstein [Thu, 19 Feb 2015 14:19:40 +0000 (09:19 -0500)]
Merge pull request #3 from phillord/feature/find-file-relative
New functions for opening files.
Oleh Krehel [Thu, 19 Feb 2015 14:15:01 +0000 (15:15 +0100)]
hydra.el (hydra--hint): Take same arguments as `defhydra'
Oleh Krehel [Thu, 19 Feb 2015 14:06:34 +0000 (15:06 +0100)]
hydra.el (hydra--message): Take same arguments as `defhydra'
Oleh Krehel [Thu, 19 Feb 2015 14:02:11 +0000 (15:02 +0100)]
Minor refactoring
* hydra.el (hydra--head-color): Rename from `hydra--color'.
(hydra--body-color): New defun.
(hydra--message): First arg isn't pre-processed by `hydra--hint'.
(defhydra): Update call to `hydra-message'.
Oleh Krehel [Thu, 19 Feb 2015 13:19:18 +0000 (14:19 +0100)]
Allow for Ruby-style Hydra docstrings
* hydra.el (hydra--unalias-var): New defun.
(hydra--format): New defun.
(hydra--message): Use `hydra-format' instead of a static string.
Update signature.
(defhydra): Add a warning the pink Hydras can't yet handle unbound
prefix, e.g. "C-x". Update arguments given to `hydra--message'.
* hydra-test.el: Update tests, only hint functions were slightly
affected.
Example of using the newfound functionality:
(defhydra hydra-toggle (:color pink)
"
_a_ abbrev-mode: %`abbrev-mode
_d_ debug-on-error: %`debug-on-error
_f_ auto-fill-mode: %`auto-fill-function
_g_ golden-ratio-mode: %`golden-ratio-mode
_t_ truncate-lines: %`truncate-lines
_w_ whitespace-mode: %`whitespace-mode
"
("a" abbrev-mode nil)
("d" toggle-debug-on-error nil)
("f" auto-fill-mode nil)
("g" golden-ratio-mode nil)
("t" toggle-truncate-lines nil)
("w" whitespace-mode nil)
("q" nil "cancel"))
(global-set-key (kbd "C-c C-v") 'hydra-toggle/body)
Here, "Foo %`abbrev-mode" becomes equivelent to:
(format "Foo %S" abbrev-mode).
And "_a_" becomes equivalent to:
(propertize "a" 'face 'hydra-face-pink).
The hints for all heads except "q" have been set to nil, since their
equivalent is already displayed in the docstring.
Phillip Lord [Thu, 19 Feb 2015 13:23:16 +0000 (13:23 +0000)]
New functions for opening files.
find-file-noselect-relative opens a file with a relative path.
with-relative-file is a macro that runs in a buffer created with the
contents of the file.
Oleh Krehel [Thu, 19 Feb 2015 08:34:29 +0000 (09:34 +0100)]
Add pink body color
* hydra.el (hydra-face-pink): New face.
(hydra--face): Update.
(defhydra): Pink is a variation on amaranth. It still intercepts all
bindings, but will call the intercepted bindings if they're valid.
Re #38.
Oleh Krehel [Wed, 18 Feb 2015 17:28:59 +0000 (18:28 +0100)]
hydra.el (defhydra): Update doc
rocky [Wed, 18 Feb 2015 16:50:05 +0000 (11:50 -0500)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs/elpa
Oleh Krehel [Wed, 18 Feb 2015 16:35:36 +0000 (17:35 +0100)]
lv.el (lv-message): Don't deactivate mark
Fixes #37
Stefan Monnier [Wed, 18 Feb 2015 15:18:51 +0000 (10:18 -0500)]
* cl-generic/cl-generic.el (cl-defmethod): Use cl-flet if available.
Stefan Monnier [Wed, 18 Feb 2015 14:22:08 +0000 (09:22 -0500)]
* timerfunctions.el: Fix up copyright and conventions
Stefan Monnier [Wed, 18 Feb 2015 13:55:10 +0000 (08:55 -0500)]
Add 'packages/timerfunctions/' from commit '
f0a06654092bcd4ccbcceb9566673e6dd8b01e9e '
git-subtree-dir: packages/timerfunctions
git-subtree-mainline:
be78cfda9a7a48cfac0f65f3103fc37d2a95d62c
git-subtree-split:
f0a06654092bcd4ccbcceb9566673e6dd8b01e9e
rocky [Wed, 18 Feb 2015 12:00:41 +0000 (07:00 -0500)]
Get ready for an ELPA release.
Oleh Krehel [Tue, 17 Feb 2015 23:22:46 +0000 (00:22 +0100)]
hydra.el (hydra-cleanup): reorder
Re #36
Oleh Krehel [Tue, 17 Feb 2015 19:08:06 +0000 (20:08 +0100)]
Fix unintentional recursion in Emacs 25
* hydra.el (hydra-cleanup): New function.
(hydra-disable): Restore to previous version.
(hydra--make-defun): Don't call `hydra-disable' in `set-transient-map' -
call `hydra-cleanup' instead.
* hydra-test.el: Update.
Fixes #35.
Oleh Krehel [Tue, 17 Feb 2015 17:42:19 +0000 (18:42 +0100)]
hydra.el (defhydradio): New macro
* hydra.el (hydra--radio): New defun.
(hydra--quote-maybe): New defun.
(hydra--cycle-radio): New defun.
* hydra-test.el (defhydradio): New test.
Oleh Krehel [Tue, 17 Feb 2015 14:30:09 +0000 (15:30 +0100)]
Don't clutter Echo Area
* lv.el (lv-wnd): New variable.
(lv-window): New defun to get a window similar in properties to Echo Area.
(lv-message): New defun, a replacement for `message', that writes to `lv-window'.
* hydra.el (hydra-lv): New defcustom. If nil, use the Echo Area,
otherwise, use LV.
(hydra-disable): Add optional arg KILL-LV.
(hydra--message): New defun to dispatch on `hydra-lv'.
(hydra--make-defun): Prematurely disable with LV only for blue heads,
since regenerating LV window would cause screen tearing. No need for
timeouts between `message' when using LV. HINT argument is now a
function symbol that returns a string, instead of a plain string.
(defhydra): Generate a new defun with name `NAME/hint'.
* Makefile: Load lv.
* hydra-test.el: Update all tests.
* README.md: Update.
Oleh Krehel [Tue, 17 Feb 2015 14:50:50 +0000 (15:50 +0100)]
ace-window.el (aw-ignored-buffers): add "*LV*"
Oleh Krehel [Tue, 17 Feb 2015 14:12:40 +0000 (15:12 +0100)]
Remove obsoletes
* hydra.el (hydra-create): Remove
* hydra-examples.el (hydra-example-text-scale): Remove.
(hydra-example-move-window-splitter): Remove.
(hydra-example-goto-error): Remove.
(hydra-example-windmove): Remove
rocky [Tue, 17 Feb 2015 13:57:06 +0000 (08:57 -0500)]
rocky [Tue, 17 Feb 2015 13:56:52 +0000 (08:56 -0500)]
Forgot to add email
rocky [Tue, 17 Feb 2015 13:54:35 +0000 (08:54 -0500)]
rocky [Tue, 17 Feb 2015 13:52:16 +0000 (08:52 -0500)]
Back off reqiure-realtive test until we get dependencies worked out
rocky [Tue, 17 Feb 2015 13:48:57 +0000 (08:48 -0500)]
rocky [Tue, 17 Feb 2015 13:48:01 +0000 (08:48 -0500)]
Travis 8th try
rocky [Tue, 17 Feb 2015 13:46:36 +0000 (08:46 -0500)]
Add 'packages/load-relative/' from commit '
064074d7dcc8d26d59ab9ceb099b43e6870c58d1 '
git-subtree-dir: packages/load-relative
git-subtree-mainline:
28f59c22ca8aa240401a66b73ce48a14f9590a8a
git-subtree-split:
064074d7dcc8d26d59ab9ceb099b43e6870c58d1
rocky [Tue, 17 Feb 2015 13:41:50 +0000 (08:41 -0500)]
Wrong syntax
rocky [Tue, 17 Feb 2015 13:40:49 +0000 (08:40 -0500)]
back off require-list test in Travis
rocky [Tue, 17 Feb 2015 13:29:18 +0000 (08:29 -0500)]
Travis 6th try
rocky [Tue, 17 Feb 2015 13:27:20 +0000 (08:27 -0500)]
Travis 5th try
rocky [Tue, 17 Feb 2015 13:12:44 +0000 (08:12 -0500)]
Travis 4th try
rocky [Tue, 17 Feb 2015 12:58:04 +0000 (07:58 -0500)]
Travis 3rd try
rocky [Tue, 17 Feb 2015 12:44:54 +0000 (07:44 -0500)]
Travis 2nd try
rocky [Tue, 17 Feb 2015 12:03:47 +0000 (07:03 -0500)]
Get ready for FSF ELPA release
Oleh Krehel [Mon, 16 Feb 2015 10:21:00 +0000 (11:21 +0100)]
Try not to end in `aw-ignored-p' when ace method isn't invoked
* ace-window.el (aw-select): Update.
Fixes #18
rocky [Mon, 16 Feb 2015 06:13:03 +0000 (01:13 -0500)]
rocky [Mon, 16 Feb 2015 06:08:53 +0000 (01:08 -0500)]
Reduce boilerplate verbiage
rocky [Mon, 16 Feb 2015 04:01:38 +0000 (23:01 -0500)]
rocky [Mon, 16 Feb 2015 03:59:58 +0000 (22:59 -0500)]
Bump version #
rocky [Mon, 16 Feb 2015 03:57:30 +0000 (22:57 -0500)]
Assign FSF Copyright and boilerplate.
rocky [Mon, 16 Feb 2015 00:30:37 +0000 (19:30 -0500)]
rocky [Mon, 16 Feb 2015 00:10:49 +0000 (19:10 -0500)]
Wrong git URL to test-simple
rocky [Sun, 15 Feb 2015 23:40:13 +0000 (18:40 -0500)]
Add test-simple to externals-list
rocky [Sun, 15 Feb 2015 23:35:58 +0000 (18:35 -0500)]
Add 'packages/test-simple/' from commit '
75eea25bae04d8e5e3e835a2770f02f0ff4602c4 '
git-subtree-dir: packages/test-simple
git-subtree-mainline:
bfb36f072e1d8b382639bd5cc6087fb0c963894b
git-subtree-split:
75eea25bae04d8e5e3e835a2770f02f0ff4602c4
rocky [Sun, 15 Feb 2015 23:28:34 +0000 (18:28 -0500)]
Oops - should have added in branch externals/<pkg>
rocky [Sun, 15 Feb 2015 23:22:26 +0000 (18:22 -0500)]
rocky [Sun, 15 Feb 2015 23:21:50 +0000 (18:21 -0500)]
Add 'packages/load-relative/' from commit '
15ffaa9ebf1b7bbfcc307d1716eec135253b3b8d '
git-subtree-dir: packages/load-relative
git-subtree-mainline:
af43c43b33726e9212f1050f37ab550f5a6abee3
git-subtree-split:
15ffaa9ebf1b7bbfcc307d1716eec135253b3b8d
rocky [Sun, 15 Feb 2015 23:21:08 +0000 (18:21 -0500)]
Add 'packages/loc-changes/' from commit '
8447baff7cb4839ef8d1d747a14e5da85d0cee5b '
git-subtree-dir: packages/loc-changes
git-subtree-mainline:
ca75b19e7c0093093b43b49ef8f0d3e6ab0dc15d
git-subtree-split:
8447baff7cb4839ef8d1d747a14e5da85d0cee5b
rocky [Sun, 15 Feb 2015 23:20:46 +0000 (18:20 -0500)]
Add 'packages/test-simple/' from commit '
75eea25bae04d8e5e3e835a2770f02f0ff4602c4 '
git-subtree-dir: packages/test-simple
git-subtree-mainline:
b3736acc55750eb13c8d21579ce022bc5a077568
git-subtree-split:
75eea25bae04d8e5e3e835a2770f02f0ff4602c4
rocky [Sun, 15 Feb 2015 23:16:49 +0000 (18:16 -0500)]
Remove realgud and dependents as a git submodule
Oleh Krehel [Sun, 15 Feb 2015 15:23:03 +0000 (16:23 +0100)]
`defhydra' should be indented as `defun'
rocky [Sun, 15 Feb 2015 12:19:47 +0000 (07:19 -0500)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs/elpa
rocky [Sun, 15 Feb 2015 12:19:33 +0000 (07:19 -0500)]
New gud replacement package: realgud (a front end interface to
debuggers).
This package requires:
* loc-changes - location marks in buffers
* load-relative - load emacs lisp relative to emacs source
* test-simple - simple test framework.
Using .gitmodules in this way is a bit of an experiment. Currently these
four projects are separate github repositories.
rocky [Sun, 15 Feb 2015 12:12:05 +0000 (07:12 -0500)]
New gud replacement package: realgud (a front end interface to
debuggers).
This package requires:
* loc-changes - location marks in buffers
* load-relative - load emacs lisp relative to emacs source
* test-simple - simple test framework.
Using .gitmodules in this way is a bit of an experiment. Currently these
four projects are separate github repositories.
Oleh Krehel [Sat, 14 Feb 2015 20:03:03 +0000 (21:03 +0100)]
Add option to font-lock `defhydra'
* hydra.el (hydra-add-font-lock): New function.
Fixes #32.
Oleh Krehel [Sat, 14 Feb 2015 20:02:23 +0000 (21:02 +0100)]
hydra.el (hydra--make-defun): simplify
Jackson Ray Hamilton [Sat, 14 Feb 2015 08:14:57 +0000 (00:14 -0800)]
Jackson Ray Hamilton [Sat, 14 Feb 2015 08:01:19 +0000 (00:01 -0800)]
Version 6.0.0.
Jackson Ray Hamilton [Sat, 14 Feb 2015 07:58:13 +0000 (23:58 -0800)]
Add `uncompile' Makefile task.
Jackson Ray Hamilton [Sat, 14 Feb 2015 07:29:38 +0000 (23:29 -0800)]
Add `:setup' and `:teardown' properties to dispatches.
Jackson Ray Hamilton [Sat, 14 Feb 2015 07:08:07 +0000 (23:08 -0800)]
Remove `context-coloring-benchmark-colorization'.
Jackson Ray Hamilton [Sat, 14 Feb 2015 06:52:08 +0000 (22:52 -0800)]
Cleanup documentation.
Jackson Ray Hamilton [Sat, 14 Feb 2015 03:57:41 +0000 (19:57 -0800)]
Cleanup documentation.
Jackson Ray Hamilton [Sat, 14 Feb 2015 03:54:42 +0000 (19:54 -0800)]
Use imperative for documentation.
Jackson Ray Hamilton [Sat, 14 Feb 2015 03:38:49 +0000 (19:38 -0800)]
Rename `level-face' functions.
Jackson Ray Hamilton [Sat, 14 Feb 2015 03:29:33 +0000 (19:29 -0800)]
Rename `
defface -default' to `
defface -neutral'.
Jackson Ray Hamilton [Sat, 14 Feb 2015 03:28:44 +0000 (19:28 -0800)]
Documentation.
rocky [Sat, 14 Feb 2015 02:24:59 +0000 (21:24 -0500)]
Fix breakage from changing from realgud:string-starts-with to string-prefix-p
rocky [Sat, 14 Feb 2015 00:55:45 +0000 (19:55 -0500)]
realgud:string-starts-with -> string-prefix-p. Thanks to Stefan Monnier for pointing this out.
Oleh Krehel [Fri, 13 Feb 2015 16:10:14 +0000 (17:10 +0100)]
Warn about explict red heads on amaranth body
* hydra.el (defhydra): With amaranth body, all heads that aren't blue
become amaranth. Specifying red explicitly does nothing. Add a check and
warn when this happens.
re #29
rocky [Fri, 13 Feb 2015 07:43:27 +0000 (02:43 -0500)]
Add interactive command realgud:cmdbuf-associate to associate a source-code buffer with a command buffer. Probably not good enough, bujt it's a start.
rocky [Fri, 13 Feb 2015 06:37:19 +0000 (01:37 -0500)]
Separate utility functions into its own file
rocky [Fri, 13 Feb 2015 06:34:25 +0000 (01:34 -0500)]
Use GPL3
rocky [Fri, 13 Feb 2015 06:33:30 +0000 (01:33 -0500)]
Add GPL COPYING file