~ubuntu-branches/ubuntu/trusty/gnuplot-mode/trusty

« back to all changes in this revision

Viewing changes to debian/patches/850_gnuplot.el_fix-obsolete-backquotes.diff

  • Committer: Bazaar Package Importer
  • Author(s): Vincent Fourmond
  • Date: 2011-02-13 01:24:14 UTC
  • Revision ID: james.westby@ubuntu.com-20110213012414-xuoonjyb6s888a3y
Tags: 1:0.6.0-7
* Update to newer location of the homepage
* Switching to 3.0 (quilt)
  - dropping build-dep on dpatch
  - and debian/README.source, now useless
* Switching to dh 7
* Fix links to gnuplot info, thanks to Kevin Ryde <user42@zip.com.au>
  (closes: 602557) -> 901_gnuplot.el.info-look.diff
* Try to apply the suggestion of Kevin Ryde to get rid of the need for
  gnuplot-setup-info-look (closes: 602561) 
  -> 902_automatic_info_look.diff
  (and it seems I even got it right !)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
DP: No longer use obsolete old-style backquotes
 
2
 
 
3
Fixes this warning:
 
4
 
 
5
In toplevel form:
 
6
gnuplot.el:331:1:Warning: !! The file uses old-style backquotes !!
 
7
This functionality has been obsolete for more than 10 years already
 
8
and will be removed soon.  See (elisp)Backquote in the manual.
 
9
 
 
10
From the emacs-lisp manual:
 
11
 
 
12
In old Emacs versions, before version 19.29, ``' used a different
 
13
syntax which required an extra level of parentheses around the entire
 
14
backquote construct.  Likewise, each `,' or `,@' substitution required
 
15
an extra level of parentheses surrounding both the `,' or `,@' and the
 
16
following expression.  The old syntax required whitespace between the
 
17
``', `,' or `,@' and the following expression.
 
18
 
 
19
diff -urNad gnuplot-mode-0.6.0~/gnuplot.el gnuplot-mode-0.6.0/gnuplot.el
 
20
--- gnuplot-mode-0.6.0~/gnuplot.el      2007-11-19 14:18:21.000000000 +0100
 
21
+++ gnuplot-mode-0.6.0/gnuplot.el       2007-11-19 14:19:42.000000000 +0100
 
22
@@ -342,16 +342,16 @@
 
23
     (if (fboundp 'defface)
 
24
         nil
 
25
       (defmacro defface (var values doc &rest args)
 
26
-        (` (progn
 
27
-             (defvar (, var) (quote (, var)))
 
28
-             ;; To make colors for your faces you need to set your .Xdefaults
 
29
-             ;; or set them up ahead of time in your .emacs file.
 
30
-             (make-face (, var))
 
31
-             ))))
 
32
+        `(progn
 
33
+          (defvar ,var (quote ,var))
 
34
+          ;; To make colors for your faces you need to set your .Xdefaults
 
35
+          ;; or set them up ahead of time in your .emacs file.
 
36
+          (make-face , var)
 
37
+          )))
 
38
     (if (fboundp 'defcustom)
 
39
         nil
 
40
       (defmacro defcustom (var value doc &rest args)
 
41
-        (` (defvar (, var) (, value) (, doc)))))))
 
42
+        `(defvar ,var ,value ,doc)))))
 
43
 
 
44
 ;; (eval-and-compile
 
45
 ;;   (condition-case ()