[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/sweeprolog 43e5cdaf91 054/166: ADDED: global keymap sweep-
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/sweeprolog 43e5cdaf91 054/166: ADDED: global keymap sweep-prefix-map, not bound by default |
Date: |
Fri, 30 Sep 2022 04:59:25 -0400 (EDT) |
branch: elpa/sweeprolog
commit 43e5cdaf91fc40c4c7bc33d6b2625643c391b97b
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>
ADDED: global keymap sweep-prefix-map, not bound by default
---
sweep.el | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/sweep.el b/sweep.el
index e5af56058b..4d53003ce8 100644
--- a/sweep.el
+++ b/sweep.el
@@ -69,7 +69,7 @@
(defvar sweep-prolog-server-port nil)
;;;###autoload
-(defun sweep-module-compile ()
+(defun sweep--compile-module ()
"Compile sweep-module."
(interactive)
(let* ((sweep-directory
@@ -97,7 +97,7 @@
(unless (require 'sweep-module nil t)
(if (y-or-n-p "Sweep needs `sweep-module' to work. Compile it now? ")
(progn
- (sweep-module-compile)
+ (sweep--compile-module)
(require 'sweep-module))
(error "Sweep will not work until `sweep-module' is compiled!"))))
@@ -579,7 +579,6 @@ module name, F is a functor name and N is its arity."
))))
(defun sweep-colourise-query (buffer)
- (interactive)
(when (buffer-live-p buffer)
(with-current-buffer buffer
(let* ((beg (cdr comint-last-prompt))
@@ -644,6 +643,16 @@ module name, F is a functor name and N is its arity."
(sweep--ensure-module)
(when sweep-init-on-load (sweep-init))
+;;;###autoload
+(defvar sweep-prefix-map
+ (let ((map (make-sparse-keymap)))
+ (define-key map "m" #'sweep-find-module)
+ (define-key map "p" #'sweep-find-predicate)
+ (define-key map "t" #'sweep-top-level)
+ (define-key map "P" #'sweep-pack-install)
+ map)
+ "Keymap for `sweep' global commands.")
+
;;;; Testing:
;; (add-to-list 'load-path (file-name-directory (buffer-file-name)))
- [nongnu] elpa/sweeprolog 7c15ebc4f1 026/166: ENHANCED: annotate predicates with the summaries from the manual, (continued)
- [nongnu] elpa/sweeprolog 7c15ebc4f1 026/166: ENHANCED: annotate predicates with the summaries from the manual, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 59b9dde951 028/166: DOC: Document sweep-pack-install, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog b67e5b5e3d 029/166: DOC: Expand the manual section about Querying Prolog, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 5455c53eaf 031/166: ENHANCED: Add optional "reverse" argument flag to sweep-open-query, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog ff13d97396 034/166: DOC: Add CUSTOM_ID properties to README.org headings where needed, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 5fa0e16ee3 037/166: DOC: Document sweep_funcall/2, 3 in the manual, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 66ac977deb 045/166: Make use of the new SWI-Prolog embedded GMP handling..., ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 8f1275f113 044/166: Remove the swipl-devel git submodule, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 5dcdec144d 052/166: PORT: use swipl --dump-runtime-variables to locate SWI-Prolog.h, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog b24f66da61 051/166: Add licensing information, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 43e5cdaf91 054/166: ADDED: global keymap sweep-prefix-map, not bound by default,
ELPA Syncer <=
- [nongnu] elpa/sweeprolog 239e205add 059/166: ADDED: sweep-mode, a major mode for editing Prolog code, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog d226bbb70c 063/166: ENHANCED: set per buffer module name in sweep-mode, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog d974b0fe0a 071/166: ADDED: prepare xref backend, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 27c441ab49 068/166: PORT: don't rely on defvar-keymap available only since Emacs 29, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 0b054bac88 072/166: ENHANCED: better detection of the identifier at point, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog c59ead20f7 075/166: ENHANCED: redirect Prolog messages to Emacs message function, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 031c07ac93 076/166: DOC: document the Prolog messages buffer, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 8ac0e7afb9 065/166: ENHANCED: also complete predicate names from xref, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 85ca3a5dc2 067/166: FIXED: bind SourceId in xref based completions, ELPA Syncer, 2022/09/30
- [nongnu] elpa/sweeprolog 21a4475306 112/166: Makefile: Allow specifying the path to emacs, ELPA Syncer, 2022/09/30