[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/gnuplot df865fc 013/184: Slight change to font-lock regexp
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/gnuplot df865fc 013/184: Slight change to font-lock regexps, and use buffer-local variables |
Date: |
Sun, 29 Aug 2021 11:03:06 -0400 (EDT) |
branch: elpa/gnuplot
commit df865fcaa0107e136f8a997759ce39b7e33331cb
Author: Jonathan Oddie <j.j.oddie@gmail.com>
Commit: Jonathan Oddie <j.j.oddie@gmail.com>
Slight change to font-lock regexps, and use buffer-local variables
- Changed regexp for variable/function defs to include multi-argument
functions
In gnuplot-comint-start-function:
- Use make-local-variable instead of make-variable-buffer-local on
font-lock-defaults
- Make comint-mode-map buffer-local before defining gnuplot-specific
keybindings
---
gnuplot.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/gnuplot.el b/gnuplot.el
index 2981d6b..c1900ca 100644
--- a/gnuplot.el
+++ b/gnuplot.el
@@ -1547,7 +1547,7 @@ operators are punctuation characters.")
'("\\[\\([^]]+\\)\\]"
1 font-lock-reference-face)
; variable/function definitions
- '("\\(\\<[a-z]+[a-z_0-9()]*\\)[ \t]*="
+ '("\\(\\<[a-z]+[a-z_0-9(), \t]*\\)[ \t]*="
1 font-lock-variable-name-face)
; built-in function names
(cons (concat
@@ -1838,14 +1838,15 @@ buffer. Further customization is possible via
;;(if (not (fboundp 'hilit-set-mode-patterns))
(if (featurep 'font-lock)
(progn
- (make-variable-buffer-local 'font-lock-defaults)
- (setq font-lock-defaults '(gnuplot-font-lock-keywords t t))
+ (set (make-local-variable 'font-lock-defaults)
+ '(gnuplot-font-lock-keywords t t))
(if gnuplot-xemacs-p (turn-on-font-lock))))
;;(if (featurep 'kw-compl)
;; (progn
;; (setq kw-compl-list gnuplot-keywords
;; kw-compl-upper-case nil)
;; (define-key comint-mode-map "\M-\r" 'kw-compl-abbrev)))
+ (make-local-variable 'comint-mode-map)
(define-key comint-mode-map "\M-\C-p" 'gnuplot-plot-from-comint)
(define-key comint-mode-map "\M-\C-f" 'gnuplot-save-and-plot-from-comint)
(define-key comint-mode-map "\C-d" 'gnuplot-delchar-or-maybe-eof)
- [nongnu] elpa/gnuplot de13740 038/184: Added experimental context-sensitive completion and help code., (continued)
- [nongnu] elpa/gnuplot de13740 038/184: Added experimental context-sensitive completion and help code., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 23f2060 032/184: Merge branch 'master' into devel, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 78d691b 003/184: Updated readme, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot e679a59 002/184: import everything, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 00cb492 010/184: Improved continuation line handling by indentation & gnuplot-send-line-*, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot a375477 031/184: Merge pull request #7 from mcraveiro/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 566e92f 027/184: Fixed a dumb bug in gnuplot-indent-line., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot aba40f1 034/184: Document the change to `gnuplot-make-regexp', ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 72ccda3 017/184: Improved syntax parsing and highlighting, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 2387f12 016/184: Restored some XEmacs compatibility that I broke., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot df865fc 013/184: Slight change to font-lock regexps, and use buffer-local variables,
ELPA Syncer <=
- [nongnu] elpa/gnuplot 0faec4f 022/184: Check that gnuplot-process is not nil in gnuplot-close-down, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 57fd4a2 036/184: Attempt to fix issue #9, void-function gnuplot-start-comint-function, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot ca241a7 035/184: Merge remote-tracking branch 'origin/devel' into devel, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 7f29578 023/184: Minor improvements to movement-by-command functions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 8d367f5 028/184: Better assignment-matching regexp (?), ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 049f953 044/184: Use absolute locations in all jump/call/choice/commit instructions., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 40efb8e 067/184: Make loading of gnuplot work with and without gnuplot-context., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 0d2079a 056/184: Fixed a regression in 7cb3975 relating to scanning stack at end-of-command, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 2bf9779 063/184: Remove macro hacks for ancient Emacs versions, as per issue #12, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot cf513f9 049/184: Added (require 'eldoc) to gnuplot-context.el. Improved documentation., ELPA Syncer, 2021/08/29