[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/gnuplot 21f9046 135/184: Bind appropriate completion comma
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/gnuplot 21f9046 135/184: Bind appropriate completion command in comint mode |
Date: |
Sun, 29 Aug 2021 11:03:31 -0400 (EDT) |
branch: elpa/gnuplot
commit 21f9046e3f5caad41b750b5c9cee02fa4fd20fb9
Author: joddie <jonxfield@gmail.com>
Commit: joddie <jonxfield@gmail.com>
Bind appropriate completion command in comint mode
---
gnuplot.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/gnuplot.el b/gnuplot.el
index 97a8653..3b50c7f 100644
--- a/gnuplot.el
+++ b/gnuplot.el
@@ -2251,8 +2251,13 @@ buffer."
(define-key gnuplot-comint-mode-map "\M-\C-p" 'gnuplot-plot-from-comint)
(define-key gnuplot-comint-mode-map "\M-\C-f"
'gnuplot-save-and-plot-from-comint)
(define-key gnuplot-comint-mode-map "\C-d" 'gnuplot-delchar-or-maybe-eof)
-(define-key gnuplot-comint-mode-map "\M-\r" 'comint-dynamic-complete)
-(define-key gnuplot-comint-mode-map "\M-\t" 'comint-dynamic-complete)
+(let ((completion-function
+ (if (and (>= emacs-major-version 24)
+ (>= emacs-minor-version 1))
+ 'completion-at-point
+ 'comint-dynamic-complete)))
+ (define-key gnuplot-comint-mode-map "\M-\r" completion-function)
+ (define-key gnuplot-comint-mode-map "\M-\t" completion-function))
(define-key gnuplot-comint-mode-map "\C-c\C-d" 'gnuplot-info-lookup-symbol)
(define-key gnuplot-comint-mode-map "\C-c\C-w" 'gnuplot-show-version)
(define-key gnuplot-comint-mode-map "\C-c\C-i" 'gnuplot-insert-filename)
@@ -2941,7 +2946,6 @@ distribution. See gnuplot-context.el for details."
(load-library "gnuplot-context")
(load-library "eldoc")
(setq gnuplot-completion-at-point-function
#'gnuplot-context-completion-at-point)
- (define-key gnuplot-comint-mode-map (kbd "TAB")
'comint-dynamic-complete)
;; Setup Eldoc
(set (make-local-variable 'eldoc-documentation-function)
- [nongnu] elpa/gnuplot 7350c9d 107/184: Use the syntax-propertize mechanism instead of after-change-functions, (continued)
- [nongnu] elpa/gnuplot 7350c9d 107/184: Use the syntax-propertize mechanism instead of after-change-functions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 4c5092a 115/184: Merge branch 'syntax-propertize', ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot edd779a 114/184: Fix context tests for syntax-propertize, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 156d6a9 120/184: Add option to send plot output to a dedicated buffer, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot ba3728a 113/184: Fix syntax-propertize rules for empty strings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 08fe8e0 117/184: Try to make tests runnable on older Emacs, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 7f53432 132/184: Clarify `gnuplot-comint-complete` docstring, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 2442835 127/184: Use completion-at-point in comint buffers in recent Emacs, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot f3734b6 136/184: Add Jon as author, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 3f28986 134/184: Fix compiler warnings, comments and docstrings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 21f9046 135/184: Bind appropriate completion command in comint mode,
ELPA Syncer <=
- [nongnu] elpa/gnuplot 3f569ef 137/184: Remove gnuplot-bug-report, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot a406143 140/184: Merge pull request #41 from conao3/re-pr-28, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 55e3f75 142/184: Merge pull request #42 from conao3/add-toolbar-make-button-check, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 3fc4020 147/184: solve package-lint/byte-compile/check-doc warnings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 7830b22 156/184: Add configuration instructions in README.org. Remove dotemacs.el., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 402d487 152/184: Support indent with tab in gnuplot script, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 5fdef54 151/184: Merge pull request #47 from conao3/remove-weird-char, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 9894505 153/184: Ignore backward-sexp error when get completion, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 2c6137c 159/184: Merge pull request #53 from conao3/add-github-actions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 496c6e4 145/184: Change LICENSE; GPLv2 -> GPLv3, ELPA Syncer, 2021/08/29