Stefan Monnier [Thu, 30 Jan 2014 02:31:50 +0000 (21:31 -0500)]
* packages/uni-confusables/uni-confusables.el: Add ELPA metadata.
* packages/uni-confusables/uni-confusables-pkg.el: Delete.
* packages/uni-confusables/gen-confusables.el: Use cl-lib.
(gen-confusables-write): Generate a file header that better complies with
the coding conventions (and includes the ELPA metadata).
Stefan Monnier [Sat, 25 Jan 2014 05:18:33 +0000 (00:18 -0500)]
* cl-lib.el: Resolve conflicts with old internal definitions (bug#16353).
(dolist fun): Don't skip definitions silently.
(define-setf-expander): Remove, not in cl-lib.
(cl-position, cl-delete-duplicates): Add advice to distinguish the use case.
(cl-member): Override old definition.
Michael Albinus [Fri, 10 Jan 2014 10:00:40 +0000 (11:00 +0100)]
* debbugs-org.el (debbugs-org-ids): Declare it buffer-local.
(debbugs-org-show-buffer-name): New defun. Apply it everywhere the
respective variable has been used.
(debbugs-org): Protect the whole code.
(debbugs-org-show-reports): Let `debbugs-org-ids' survive mode
setting. Do not insert header line. Do not format buffer.
(debbugs-org-show-next-reports): Add file local variables.
Michael Albinus [Thu, 9 Jan 2014 11:32:47 +0000 (12:32 +0100)]
* debbugs-org.el (debbugs-org-show-buffer-name): New defvar.
(debbugs-org, debbugs-org-show-reports)
(debbugs-org-show-next-reports, debbugs-org-mode): Use it.
(debbugs-org-regenerate-status): Fix docstring.
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.