Michael Albinus [Sat, 2 Jan 2016 16:36:54 +0000 (17:36 +0100)]
Move asynchronous calls in debbugs to SOAP function level.
* packages/debbugs/debbugs-gnu.el (top): Don't require `async'.
(debbugs-gnu-default-hits-per-page): Remove.
(debbugs-gnu-show-reports): Do not call `debbugs-get-status'
asynchronously anymore.
* packages/debbugs/debbugs.el (soap-invoke-async, async-start)
(async-get): Declare.
(debbugs-max-hits-per-request): New defconst.
(debbugs-soap-invoke-async-object): New defvar.
(debbugs-soap-invoke-async): New defun.
(debbugs-get-status): Use them.
Ken Manheimer [Fri, 1 Jan 2016 17:07:25 +0000 (12:07 -0500)]
poptoshell - cleanup lapsed remote connections before restarting them
Woo hoo! This seems to be vastly improving the resurrection of lapsed
connections, preventing the frequent (and uncatchable) "byte-code: Args
out of range: ..." errors. So far, completely.
Ken Manheimer [Fri, 1 Jan 2016 17:07:25 +0000 (12:07 -0500)]
poptoshell - cleanup lapsed remote connections before restarting them
Woo hoo! This seems to be vastly improving the resurrection of lapsed
connections, preventing the frequent (and uncatchable) "byte-code: Args
out of range: ..." errors. So far, completely.
Michael[tm] Smith [Wed, 30 Dec 2015 23:51:52 +0000 (08:51 +0900)]
Add CSP syntax checking for <meta> & HTTP header
Adds datatype/microsyntax-checking of the "content" attribute of the
<meta http-equiv=content-security-policy content="..."> element, along with
such checking of the value of the Content-Security-Policy HTTP header.
Michael Albinus [Mon, 28 Dec 2015 10:28:59 +0000 (11:28 +0100)]
debbugs code cleanup
* packages/debbugs/debbugs-gnu.el (subr-x): Require package.
(diff-hunk-file-names): Autoload function.
(top): Declare missing external variables. Move them up.
(debbugs-gnu-display-status, debbugs-gnu-usertags): Switching to
the buffer seems prettier than popping to the buffer.
(debbugs-gnu-usertags): Quote `highlight'.
(debbugs-gnu-change-checkin): Use `cl-subseq'.
Noam Postavsky [Fri, 11 Dec 2015 02:37:06 +0000 (21:37 -0500)]
Don't choose ido prompting based on Emacs version
* yasnippet.el (yas-ido-prompt): Unconditionally use ido prompting,
explicitly requireing ido.
(yas-maybe-ido-prompt): New function, call `yas-ido-prompt' if
`ido-mode' is enabled.
(yas-prompt-functions): Replace `yas-ido-prompt' with
`yas-maybe-ido-prompt' in the default value.
Noam Postavsky [Sat, 12 Dec 2015 03:54:21 +0000 (22:54 -0500)]
Respect y-b-l-cond from binding triggered snippets
The default value for `yas-buffer-local-condition' was only effective
for `yas-expand-from-trigger-key' command, so it didn't have any effect
when triggering snippets from a key binding (or if using the
`yas-expand' alias).
* yasnippet.el (yas-buffer-local-condition): Check if `this-command' is
`yas-expand' or `yas-expand-from-keymap' too.
Michael Albinus [Sun, 27 Dec 2015 15:24:47 +0000 (16:24 +0100)]
Retrieve debbugs data in several chunks, sequentially
* packages/debbugs/debbugs-gnu.el (top): Do not require widgets
and wid-edit. Remove debbugs-gnu-widgets, debbugs-gnu-widget-map
and debbugs-gnu-current-widget.
(debbugs-gnu-default-hits-per-page): Make it a defconst, value is 500.
(debbugs-gnu-current-suppress): New defvar.
(debbugs-gnu, debbugs-gnu-print-entry, debbugs-gnu-rescan)
(debbugs-gnu-toggle-suppress, debbugs-gnu-current-query):
Remove widget code.
(debbugs-gnu-show-reports): Remove widget code. Retrieve bug data
in chunks of 500.
(debbugs-gnu-print-entry, debbugs-gnu-usertags): Use `highlight'
as mouse-face.
Michael Albinus [Sun, 27 Dec 2015 11:17:57 +0000 (12:17 +0100)]
debbugs code cleanup
* packages/debbugs/debbugs-gnu.el (debbugs-gnu-archived): Move down.
(debbugs-read-emacs-bug-with-gnus): New defun, extracted from
`debbugs-gnu-select-report'.
(debbugs-gnu-select-report): Use it.
Lars Ingebrigtsen [Thu, 24 Dec 2015 21:39:24 +0000 (22:39 +0100)]
Increase the default number of hits
* debbugs-gnu.el (debbugs-gnu-default-hits-per-page): Increase the
default number of hits, because it doesn't make much sense to look
at partial bug lists when doing triage.
Ken Manheimer [Thu, 24 Dec 2015 19:25:25 +0000 (14:25 -0500)]
poptoshell: Initial stab at workaround for tramp "Args out of range"
More than occasionally, tramp fails to reconnect to shells that were
disconnected gracelessly, with "byte-code: Args out of range:
...". Using tramp-cleanup-this-connection then retrying often works, so
let's do that.
It's hard to test this easily, so I'm checking in a preliminary version
to tweak incrementally.
Ken Manheimer [Thu, 24 Dec 2015 19:25:25 +0000 (14:25 -0500)]
poptoshell: Initial stab at workaround for tramp "Args out of range"
More than occasionally, tramp fails to reconnect to shells that were
disconnected gracelessly, with "byte-code: Args out of range:
...". Using tramp-cleanup-this-connection then retrying often works, so
let's do that.
It's hard to test this easily, so I'm checking in a preliminary version
to tweak incrementally.
Aleksey Fedotov [Fri, 18 Dec 2015 18:43:16 +0000 (21:43 +0300)]
avy.el (avy-goto-line): fix for narrowed regions
When 'avy-goto-line' is called with numbered argument, it tries to mimic
behaviour of 'goto-line'. However, if some part of text is hidden by
narrowing, 'avy-goto-line' failed to account for that.
This patch temporarily disables narrowing, jumps on line and then
restores narrowing, just like 'goto-line' does.
Ken Manheimer [Mon, 14 Dec 2015 16:56:22 +0000 (11:56 -0500)]
Remove docstring info about persisting names across sessions.
The functionality is still there, but incomplete. Will complete in a
branch, and want to avoid disruption of people who use the incomplete
functionality, once the completed version is merged.
Ken Manheimer [Mon, 14 Dec 2015 07:54:27 +0000 (02:54 -0500)]
Persist shell-buffer name/path history!
Need to manually configure savehist - see instructions.
This is simplest implementation, and a little dicey:
* First time in session that you try to use prior session's settings,
you just get the path, not the name
* I could make an additional map between names used and paths,
* and that may be necessary, since it will be unapparent whether or
not the paths for the names have established.
* There's no way to remove entries, besides editing the history file
* Would like to implement `Meta-e' "edit current entry",
* where changing the entry is preserved
* and deleting the line then concluding removes the entry completely
* carriage return ends edit mode.
Noam Postavsky [Sun, 13 Dec 2015 05:14:44 +0000 (00:14 -0500)]
Improve test simulatulation of self-insert
* yasnippet-tests.el (yas-mock-insert): Use `ert-simulate-command' to
simulate n self-insert-commands.
(simple-mirror, mirror-with-transformation):
(primary-field-transformation, nested-placeholders-kill-superfield):
(nested-placeholders-use-subfield):
(mirrors-adjacent-to-fields-with-nested-mirrors):
(deep-nested-mirroring-issue-351, example-for-issue-271):
(string-match-with-subregexp-in-mirror-transformations): Call
`yas-mock-insert' directly instead of with `ert-simulate-command'.
Noam Postavsky [Tue, 8 Dec 2015 23:19:02 +0000 (18:19 -0500)]
Fix #587; set `this-command' on fallback.
`this-original-command' is supposed to be for the command that
we're *not* executing because of key remapping, therefore it doesn't
make sense to set it to the command we're about to execute.
* yasnippet.el (yas--fallback): Set `this-command'.