Stefan Monnier [Wed, 15 Oct 2014 21:38:21 +0000 (17:38 -0400)]
* packages/ada-mode: Miscellaneous cleanups.
* ada-mode/gpr-skel.el (skeleton-hippie-try): Don't quote error name.
* ada-mode/gpr-query.el (gpr-query-get-src-dirs, gpr-query-get-prj-dirs):
Avoid add-to-list on local vars.
(gpr-query-compilation): Use font-lock-ensure when available.
* ada-mode/gnat-inspect.el (gnat-inspect-compilation): Use
font-lock-ensure when available.
* ada-mode/gnat-core.el (gnat-prj-add-prj-dir)
(gnat-prj-parse-emacs-final, gnat-get-paths-1, ada-gnat-make-package-body):
Avoid add-to-list and `set' on local vars.
(gnat-get-paths-1): Don't quote error name.
* ada-mode/ada-wisi.el (ada-wisi-scan-paramlist): Avoid add-to-list on
local var.
* ada-mode/ada-skel.el (ada-skel-hippie-try): Don't quote error name.
* ada-mode/ada-mode.el (ada-format-paramlist): Fix typo.
(ada-case-read-exceptions, ada-case-add-exception, ada-prj-parse-file-1)
(ada-case-merge-exceptions): Avoid add-to-list on local var.
(ada-prj-parse-file-1): Avoid `set' on local var.
(cl-case): Don't quote alternatives.
* ada-mode/ada-gnat-compile.el (ada-gnat-fix-error): Avoid add-to-list on
local var. Simplify.
* ada-mode/ada-build.el (ada-build-prompt-select-prj-file): Remove
unused var `err'.
Stefan Monnier [Wed, 15 Oct 2014 21:07:03 +0000 (17:07 -0400)]
* packages/company/company-xcode.el (company-xcode-fetch): Avoid add-to-list
on local var.
* packages/company/company.el (company--window-height)
(company--window-width): Move before first use.
Stefan Monnier [Wed, 15 Oct 2014 20:47:38 +0000 (16:47 -0400)]
Miscellaneous cleanup.
* muse/muse-publish.el (muse-current-output-style): Declare.
* muse/muse-project.el (muse-project-set-variables): Only call
make-local-hook if it exists.
* muse/muse-html.el (muse-html-src-tag): Use font-lock-ensure
when available.
* muse/muse-project.el (muse-project-alist-get, muse-project-alist-set):
* muse/muse-blosxom.el (muse-blosxom-new-entry): Avoid add-to-list
on local var.
* muse/htmlize-hack.el: Require `cl' at run-time as well.
* muse/cgi.el (cgi-decode): Avoid `flet'.
Stefan Monnier [Wed, 15 Oct 2014 19:35:14 +0000 (15:35 -0400)]
* packages/debbugs/debbugs-org.el: Miscellanous cleanups.
(debbugs-org-search): Remove unused var `date-format'.
(debbugs-org-show-reports): Avoid add-to-list on local var.
* packages/debbugs/debbugs.el (debbugs-get-usertag, debbugs-search-est):
Avoid add-to-list on local var.
Stefan Monnier [Wed, 15 Oct 2014 19:32:23 +0000 (15:32 -0400)]
* packages/wcheck-mode/wcheck-mode.el (wcheck--program-executable-p):
Use executable-find.
(wcheck--language-data-valid-p): Use memq and give better diagnostics.
Stefan Monnier [Wed, 15 Oct 2014 19:30:03 +0000 (15:30 -0400)]
* packages/sml-mode/sml-mode.el (sml-smie-grammar): Add "withtype".
(sml-smie-rules): Use pcase.
(sml-smie-non-nested-of-p): Rewrite to avoid regexp and stay closer to point.
Stefan Monnier [Wed, 15 Oct 2014 19:15:59 +0000 (15:15 -0400)]
* scroll-restore.el (scroll-restore--set): New function. Use it as setter
instead of calling scroll-restore-restart.
(scroll-restore-restart): Remove.
(scroll-restore-mode): Add autoload cookie.
(scroll-restore-commands): Add scroll-up-command and scroll-down-command.
Stefan Monnier [Fri, 10 Oct 2014 18:25:00 +0000 (14:25 -0400)]
* packages/gnorb/gnorb.el: Mention dependency on cl-lib.
Require `bbdb' here, and not during compilation.
* packages/gnorb/gnorb-utils.el: Don't require `cl'.
Don't require `bbdb', in case it's not installed.
* packages/gnorb/gnorb-registry.el: Require cl-lib. Use cl-lib names.
* packages/gnorb/gnorb-org.el: Require cl-lib. Use cl-lib names.
* packages/gnorb: Fix up copyright and compilation.
* packages/gnorb/gnorb-bbdb.el: Require `cl-lib'. Use cl-lib names.
(bbdb-separator-alist, bbdb-xfield-label-list): Check before use.
company-create-match-predicate: Just replace the predicate
Building on the previous one is ridiculous, because the main use case is
company-search-mode, and any previous search string is a prefix of the current
one. With company-filter-candidates, it was especially wasteful.
In Emacs 24.1 and 24.2, kbd was a macro and not a function,
so that a call like (kbd (format ...)) would fail. Use
read-kbd-macro instead, which works for all Emacsen in 24.x.
* vlf-write.el (vlf-write): Profile, tune batch size and time
save when adjusting file content.
(vlf-file-shift-back, vlf-shift-batch, vlf-file-shift-forward)
(vlf-shift-batches): Profile and tune batch size.
* vlf-search.el (vlf-re-search): Auto tune batch size and
use outside progress reporter if provided.
(vlf-goto-match): Time search.
(vlf-re-search-forward, vlf-re-search-backward): Minimize search
overlap and restore batch size if search failed.
(vlf-goto-line): Profile operations, tune batch size and time
whole search.
* vlf-occur.el (vlf-occur-visit): Profile hexl operations.
(vlf-occur-other-buffer): New function.
(vlf-occur): Auto tune batch size.
(vlf-build-occur): Auto tune batch size and time whole occur.
* packages/vlf: Perform search, occur and ediff operations over
hexl content instead over raw data when hexl-mode is active.
Allow vlf-occur results be saved to file and later reused.
* vlf.el (vlf): Use minimal batch size on remote files or if
manually specified.
Remove hooks used to disable/enable hexl-mode.
* vlf-integrate.el (abort-if-file-too-large): Don't use vlf-mode
if file size is less than default batch size.
* vlf-base.el (vlf-batch-size): Increase default batch size.
(vlf-move-to-chunk-1, vlf-move-to-chunk-2): Restore hexl-mode if
has been active on start.
* vlf-write.el (vlf-write): Restore hexl-mode if active on start
and don't ask spurious questions.
* vlf-search.el (vlf-re-search): Search over hexl content in case
hexl-mode is active on start.
(vlf-goto-line): Don't optimize search in case hexl-mode is
active.
* vlf-ediff.el (vlf-ediff-files): Use minimal batch size before
applying specified.
(vlf-ediff-next): Ediff over hexl-mode content when active instead
over raw data.
* vlf-occur.el (vlf-occur-vlf-file, vlf-occur-vlf-buffer)
(vlf-occur-regexp, vlf-occur-hexl, vlf-occur-lines): New
variables.
(vlf-occur-mode-map): Add save binding.
(vlf-occur-mode): Hook custom save function.
(vlf-occur-next-match, vlf-occur-prev-match): Use
get-text-property instead of get-char-property.
(vlf-occur-visit): Activate hexl-mode if it has been used during
occur.
(vlf-occur, vlf-build-occur): Perform occur over hexl content if
hexl-mode is active on start.
(vlf-occur-save, vlf-occur-load): New commands.