Stefan Monnier [Wed, 21 Aug 2013 18:54:13 +0000 (14:54 -0400)]
* packages/eldoc-eval/eldoc-eval.el: Put the custom vars in the eldoc-eval
group, where they seem to belong. Fix up naming conventions.
(eldoc-eval-preferred-function): Rename from eval-preferred-function.
(eldoc-display-message-no-interference-p): Use an advice again, but this time
I think I wrote it correctly.
(eldoc-in-minibuffer-mode-map): Rename from eldoc-mode-in-minibuffer-map.
(eldoc-in-minibuffer-mode): Don't bother specifying the keymap now that we're
using the standard name.
(eldoc-run-in-minibuffer): Rename from run-eldoc-in-minibuffer.
(eldoc-eval-expression): Rename from eval-expression-with-eldoc.
Stefan Monnier [Wed, 21 Aug 2013 17:30:52 +0000 (13:30 -0400)]
* packages/f90-interface-browser/f90-interface-browser.el: Don't require CL
at runtime since it's not needed.
(f90-approx-arglist-match): Remove unused var `match'.
(f90-parse-single-type-declaration): Don't use `add-to-list' on a local var.
* packages/f90-interface-browser/f90-tests.el: Require `cl-lib'.
(test-check, test-combine-results, parse-declaration): Fix up
names accordingly.
Stefan Monnier [Wed, 21 Aug 2013 03:59:12 +0000 (23:59 -0400)]
* packages/js2-mode/js2-mode.el: Remove unused variables. Use posix
character classes. Do a bit of CSE simplification.
(js2-parse-highlight-member-expr-node): Flip test order to simplify code.
(js2-re-search-forward, js2-re-search-backward): Don't quote code.
(js2-echo-help): Defalias applies to symbol, not functions.
Thierry Volpiatto [Sat, 17 Aug 2013 04:46:04 +0000 (06:46 +0200)]
* eldoc-eval.el: Fix eldoc not working when mode is disabled.
(eldoc-eval--old-message-function): new internal.
(eldoc-display-message-no-interference-p): now a defun.(already adviced in slime)
(eldoc-in-minibuffer-mode): reenable correctly all when toggling.
Stefan Monnier [Wed, 14 Aug 2013 18:34:52 +0000 (14:34 -0400)]
Update infrastructure for Git.
* .gitignore: New file.
* .bzrignore: keep it as a symlink to .gitignore.
* externals-list: New file.
* admin/update-archive.sh: Use Git. Use make.log when running in batch.
Turn build/packages into an rsync-copy rather than a symlink. Use relative
file names.
(copyright_notices, check_copyright): Remove. Use new "make" rule instead.
* admin/archive-contents.el: Use lexical-binding and pcase.
(archive--revno-re): New const.
(archive-prepare-packages): New `srcdir' argument, so we can add the ChangeLogs
to a parallel tree to the Git working dir.
(archive--simple-package-p): Don't return the commentary any more.
(archive--process-simple-package): Remove `commentary' arg. Don't write out
the *-readme.txt file. Reduce stdout noise.
(archive--make-changelog): New arg `srcdir'. Use Git.
(archive--process-multi-file-package): Don't copy the readme.
(batch-make-site-dir, batch-make-site-package): Remove functions.
(archive--get-prop, archive--get-section, archive--quote)
(archive--insert-repolinks): New functions.
(archive--html-make-pkg): Include NEWS and obey "URL:" header. Generate the
*-readme.txt files here.
(archive--elpa-git-url): New constant.
(archive-add/remove/update-externals): New function.
Andrey Kotlarski [Tue, 13 Aug 2013 22:01:04 +0000 (01:01 +0300)]
* packages/vlf/vlf.el:: Version 0.9.1.
Add development repository URL.
(vlf-encode-size): New variable.
(vlf-adjust-chunk): Allow fluctuation when searching for proper
decoding. Save encoded size to `vlf-encode-size'.
(vlf-write): Use `vlf-encode-size' for expected encoding size.
(vlf-batch-size, vlf-start-pos, vlf-end-pos, vlf-file-size)
(vlf-encode-size): Move permanent declarations to top level.
(vlf-mode): Fix locality of `write-file-functions' hook.
(vlf): Use `set-visited-file-name'.
(abort-if-file-too-large): Make `vlf-if-file-too-large' around
advice.
(scroll-up, scroll-down): Use `derived-mode-p'.
(vlf-change-batch-size): Remove superfluous check.
(vlf-verify-size): New function.
(vlf-next-batch, vlf-move-to-batch, vlf-move-to-chunk)
(vlf-file-shift-back, vlf-shift-batch, vlf-shift-batches): Use
it.
(vlf-revert): Fix boolean condition and ignored variable naming.
(vlf-prev-batch): Style fix.
Stefan Monnier [Tue, 13 Aug 2013 14:35:49 +0000 (16:35 +0200)]
Merge with ELPA
(eldoc-display-message-no-interference-p): Turn it into an advice.elpa
(eldoc-active-minibuffers-list): Store buffers rather than buffer names.
Stefan Monnier [Tue, 13 Aug 2013 13:59:47 +0000 (09:59 -0400)]
* eldoc-eval.el (eldoc-display-message-no-interference-p): Force
old definition.
(eldoc-mode-in-minibuffer): Catch errors, run eldoc-in-minibuffer-show-fn
from the minibuffer.
Stefan Monnier [Fri, 9 Aug 2013 21:52:50 +0000 (17:52 -0400)]
* packages/auctex/tex.el (TeX--call-3/2): New auxiliary function.
(ConTeXt-Omega-engine, TeX-Omega-mode, TeX-source-specials-mode):
Use it to provide the obsolescence version when possible.
* packages/vlf/vlf.el: Version 0.9.
(vlf-end-pos): Default to 0.
(vlf): Set the major mode earlier.
(vlf-get-file-size): Make it into a function.
(vlf-re-search): Add `batch-step' argument.
(vlf-re-search-forward, vlf-re-search-backward): Use it.
(vlf-goto-line): Make it handle a negative arg.
(vlf-occur-show): New command.
(vlf-occur-mode-map): Bind it to `o'.
(vlf-occur-visit): Don't switch-to-buffer.
(vlf-occur): Protect against non-local exits.
(vlf-build-occur): Fix details.
(vlf-edit-mode-map): Bind standard map to C-v.
(vlf-discard-edit): Mark buffer as unmodified.
* packages/vlf/vlf.el: Version 0.8, Add occur-like functionality.
(vlf-occur-mode-map): New var.
(vlf-occur-mode): New major mode.
(vlf-occur-next-match, vlf-occur-prev-match, vlf-occur-visit, vlf-occur):
New commands.
(vlf-build-occur): New function.
(vlf-mode-map): Add `o' binding for vlf-occur.
* packages/vlf/vlf.el: Version 0.7
(vlf-goto-line): New command.
(vlf-mode-map): Bind it to `l'.
(vlf-mode): Don't affect the global value of revert-buffer-function.
(vlf, dired-vlf): Remove `from-end' argument.
(scroll-up, scroll-down): Add advice to auto-jump to the next batch
during scrolling.
(vlf-get-file-size): New macro.
(vlf-revert): Try and pay attention to the actual arguments.
(vlf-next-batch, vlf-prev-batch, vlf-move-to-batch, vlf-move-to-chunk)
(vlf-re-search, vlf-goto-match): Use position-bytes to try and match bytes
and chars.
(vlf-adjust-chunk): New function.
(vlf-file-shift-back): Disable undo. Don't mess with
buffer-file-coding-system, use coding-system-for-write instead.
(vlf-shift-batch): Check modtime.
(vlf-file-shift-forward): Simplify.
(vlf-shift-batches): Don't use an auxiliary buffer.
* packages/vlf/vlf.el: Version 0.6
(vlf-mode): Setup revert and file write.
(vlf-format-buffer-name): Change format to indicate the chunk numbers.
(vlf-insert-file): Remove unused arg `file'.
(vlf-beginning-of-file, vlf-end-of-file, vlf-jump-to-chunk): New commands.
(vlf-mode-map): Use them. Add a `j' binding.
(vlf-revert): New function.
(vlf-next-batch, vlf-prev-batch, vlf-move-to-batch, vlf-move-to-chunk):
Set modtime. Better preserve point.
(vlf-file-shift-back, vlf-shift-batch, vlf-file-shift-forward)
(vlf-shift-batches): New functions.
(vlf-write): Use them when size of saved chunks has changed.
Pay attention to modtimes.
* packages/vlf/vlf.el: Version 0.5
Add editing mode. Search refinements.
(vlf-mode-map): Change keys for batch size and EOF/BOF jumps.
(vlf-mode): Move buffer-disable-undo here.
(vlf-move-to-chunk): New function.
(vlf-change-batch-size): Use it to immediately update content.
(vlf-if-file-too-large): Adjust call (missed in last change).
(vlf-re-search, vlf-goto-match): New functions.
(vlf-re-search-forward, vlf-re-search-backward): Use them.
(vlf-end-search): Remove function.
(vlf-edit-mode-map): New var.
(vlf-edit-mode): New major mode.
(vlf-write, vlf-discard-edit): New commands.
* packages/vlf/vlf.el: Version 0.4.
(vlf-mode-map): Add bindings to search and jump to BOF/EOF.
(vlf-format-buffer-name): Change position into a percentage.
(vlf-next-batch, vlf-prev-batch): Keep stable cursor position when moving
through chunks.
(vlf-move-to-chunk, vlf-insert-file): New functions.
(vlf): Use them. Disable undo information. Change arg order.
(dired-vlf): Adjust call.
(vlf-re-search-forward, vlf-re-search-backward, vlf-end-search): New functions.
* packages/vlf/vlf.el: Use lexical-binding. Bump version to 0.3.
Add ability to view newly added content if the file has grown meanwhile.
Provide a V binding in dired.
(vlf-mode-map): Change C-+ to M-+. Add M-- binding.
(vlf-next-batch, vlf-prev-batch): Add ability to jump/insert given number of
batches at once.
(vlf): Add autoload cookie. Add option to start viewing from the end of file.
(dired-vlf): New function.
(vlf-if-file-too-large): New function.
(abort-if-file-too-large): Use it to provide vlf as an option when opening
large files.
Stefan Monnier [Mon, 22 Jul 2013 04:01:09 +0000 (00:01 -0400)]
* oauth2.el: Only require CL at compile time and avoid flet.
(success): Don't defvar.
(oauth--url-advice, oauth--tokens-need-renew): New dynbind variables.
(url-http-handle-authentication): Add advice.
(oauth2-url-retrieve-synchronously): Use the advice instead of flet.
* adaptive-wrap.el (menu-bar-options-menu): Add checkbox for Adaptive Wrap
to the Line Wrapping submenu.
(adaptive-wrap-unload-function): New function.
Stefan Monnier [Thu, 27 Jun 2013 16:05:44 +0000 (12:05 -0400)]
* GNUmakefile (%.elc): Don't depend on $(autoloads) since that causes
constant recompilation of everything.
(elcs): New target.
(all-in-place): Run elcs in a submake, after updating autoloads.