Andrey Kotlarski [Sat, 14 Dec 2013 21:47:42 +0000 (23:47 +0200)]
* packages/vlf/vlf.el: Version: 1.2
Add ability to customize when VLF is offered and activated.
(vlf-application, vlf-forbidden-modes-list): New customizations.
(vlf-mode-map): Change bindings.
(vlf-prefix-map): New map.
(vlf-with-undo-disabled): Move it before its first use to fix
package installation.
(vlf-mode): Initialize vlf-start-pos and vlf-end-pos.
(vlf-determine-major-mode): New function.
(abort-if-file-too-large): Add support for VLF application
customization and fix it for GNU Emacs 23.
(vlf-get-file-size): Return 0 in case file size is missing.
(vlf-verify-size): Fix file size determination for symlinks by
using buffer-file-truename.
(vlf-revert): Turn into command. Stop spurious questions.
(vlf-next-batch-from-point): Fix in case end of file is near.
(vlf-move-to-chunk-1): Fix behaviour for unsaved new files and
point jumps.
(vlf-refresh): Remove.
(vlf-write): Fix behaviour for first save of new file.
Andrey Kotlarski [Sat, 14 Dec 2013 21:31:59 +0000 (23:31 +0200)]
* packages/vlf/vlf.el: Version 1.1
Stabilize decoding and saving. Optimize moving between
overlapping chunks.
(vlf-mode): Forbid automatic final new line. Improve reloading of
all content.
(vlf-move-to-chunk): Always use vlf-move-to-chunk-1.
(vlf-move-to-chunk-1): Use vlf-with-undo-disabled. Fix length
calculation when deleting from buffer.
(vlf-partial-decode-shown-p): New function.
(vlf-adjust-chunk): Use it. Fix end adjustment for earlier GNU
Emacs releases.
(vlf-refresh): Use vlf-move-to-chunk-2.
Andrey Kotlarski [Sat, 14 Dec 2013 21:20:43 +0000 (23:20 +0200)]
* packages/vlf/vlf.el: Version 1.0
Turn VLF into minor mode and abstract chunk insertion.
(vlf-encode-size, vlf-format-buffer-name, vlf-edit-mode-map)
(vlf-edit-mode): Remove.
(vlf-mode-map): Turn into prefix map, add new bindings.
(vlf-mode): Turn into minor mode.
(vlf): Call vlf-mode.
(scroll-up): Scroll when point-max is visible.
(scroll-down): Scroll when point-min is visible.
(vlf-update-buffer-name): Hide total file size.
(vlf-insert-file): Refactor.
(vlf-revert): Use vlf-move-to-chunk-2.
(vlf-with-undo-disabled): New macro.
(vlf-file-shift-back, vlf-file-shift-forward): Use it.
(vlf-no-modifications): New function.
(vlf-re-search-forward, vlf-re-search-backward, vlf-goto-line):
Use it.
(vlf-next-batch, vlf-prev-batch, vlf-move-to-batch): Simplify with
vlf-move-to-chunk.
(vlf-next-batch-from-point, vlf-occur-visit-new-buffer): New
commands.
(vlf-move-to-chunk-1, vlf-move-to-chunk-2): New functions.
(vlf-move-to-chunk): Use them.
(vlf-adjust-chunk): Specify region and adjust end too.
(vlf-re-search): Ignore case and remove assert.
(vlf-goto-match): Guarantee highlight removal.
(vlf-occur-visit): Reuse existing VLF buffer if possible and add
ability to explicitly open in new VLF buffer.
(vlf-occur): Use temporary VLF buffer to index if current is
modified.
(vlf-build-occur): Ignore case and get buffer to be indexed as
argument.
(vlf-discard-edit): Rename to vlf-refresh.
(vlf-write): Use vlf-end-pos and vlf-start-pos to calculate size
change.
Ryan C. Thompson [Wed, 27 Nov 2013 19:55:43 +0000 (14:55 -0500)]
* adjust-parens.el (adjust-parens-mode): Convert to minor mode
(adjust-parens-p): Only adjust parens if indentation is
correct, else defer to indent-for-tab-command.
(adjust-parens-and-indent): Take numeric prefix instead of raw
and handle non positive prefix arg.
(adjust-parens-and-indent): Return t from function.
(lisp-dedent-adjust-parens): Return nil iff no change to buffer.
* adjust-parens-tests.el (apt-mode-test): Add tests for minor mode
enabling/disabling
(apt-indent-dedent-test): Add tests for behavior when indentation
is incorrect or point is not at end of indentation
* Makefile: Have check target not depend on .elc files, so as
it is possible to make check and get non byte compiled
backtraces if there's a failure.
Leo Liu [Mon, 11 Nov 2013 01:02:41 +0000 (09:02 +0800)]
Fix sorting key in ggtags-view-tag-history
Don't set tabulated-list-sort-key in tabulated-list-entries because
the latter is called for refresh and will override buffer's local
tabulated-list-sort-key.