1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 500_gnuplot.el_make-variable-buffer-local.dpatch by Agustin Martin Domingo <agmartin@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Fixing a make-variable-buffer-local into a function
7
font-lock-defaults is already buffer-local when set in any fashion.
10
diff -urNad gnuplot-mode-0.6.0~/gnuplot.el gnuplot-mode-0.6.0/gnuplot.el
11
--- gnuplot-mode-0.6.0~/gnuplot.el 2002-12-13 22:40:51.000000000 +0100
12
+++ gnuplot-mode-0.6.0/gnuplot.el 2007-11-16 16:25:41.000000000 +0100
14
;;(if (not (fboundp 'hilit-set-mode-patterns))
15
(if (featurep 'font-lock)
17
- (make-variable-buffer-local 'font-lock-defaults)
18
(setq font-lock-defaults '(gnuplot-font-lock-keywords t t))
19
(if gnuplot-xemacs-p (turn-on-font-lock))))
20
;;(if (featurep 'kw-compl)
22
(if gnuplot-xemacs-p ; deal with font-lock
23
(if (fboundp 'turn-on-font-lock) (turn-on-font-lock))
25
- (make-variable-buffer-local 'font-lock-defaults)
26
(setq font-lock-defaults '(gnuplot-font-lock-keywords t t))))
27
;; (if (and gnuplot-xemacs-p gnuplot-toolbar-display-flag)
28
;; (condition-case () ; deal with the toolbar