emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/gnuplot 55e3f75 142/184: Merge pull request #42 from conao


From: ELPA Syncer
Subject: [nongnu] elpa/gnuplot 55e3f75 142/184: Merge pull request #42 from conao3/add-toolbar-make-button-check
Date: Sun, 29 Aug 2021 11:03:32 -0400 (EDT)

branch: elpa/gnuplot
commit 55e3f754ee424608e892d61a6ff2208b0daff8b5
Merge: a406143 54fd3eb
Author: Naoya Yamashita <conao3@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #42 from conao3/add-toolbar-make-button-check
    
    Do toolbar-make-button-list after check the function exists
---
 gnuplot.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gnuplot.el b/gnuplot.el
index 212a4fa..00e7e62 100644
--- a/gnuplot.el
+++ b/gnuplot.el
@@ -1342,7 +1342,7 @@ This is basically swiped from VM."
       (set-specifier top-toolbar-height    height frame tag-set))) ))
 
 (defvar gnuplot-line-xpm
-  (if (featurep 'xpm)
+  (if (and (featurep 'xpm) (fboundp 'toolbar-make-button-list))
       (toolbar-make-button-list
        "/* XPM */
 static char *line[] = {
@@ -1398,7 +1398,7 @@ static char *line[] = {
   "XPM format image used for the \"plot line\" button"))
 
 (defvar gnuplot-region-xpm
-  (if (featurep 'xpm)
+  (if (and (featurep 'xpm) (fboundp 'toolbar-make-button-list))
       (toolbar-make-button-list
        "/* XPM */
 static char *region[] = {
@@ -1454,7 +1454,7 @@ static char *region[] = {
   "XPM format image used for the \"plot region\" button"))
 
 (defvar gnuplot-buffer-xpm
-  (if (featurep 'xpm)
+  (if (and (featurep 'xpm) (fboundp 'toolbar-make-button-list))
       (toolbar-make-button-list
        "/* XPM */
 static char *buffer[] = {
@@ -1510,7 +1510,7 @@ static char *buffer[] = {
   "XPM format image used for the \"plot buffer\" button"))
 
 (defvar gnuplot-doc-xpm
-  (if (featurep 'xpm)
+  (if (and (featurep 'xpm) (fboundp 'toolbar-make-button-list))
       (toolbar-make-button-list
        "/* XPM */
 static char *book_index[] = {
@@ -1567,7 +1567,7 @@ static char *book_index[] = {
   "XPM format image used for the \"document\" button"))
 
 (defvar gnuplot-help-xpm
-  (if (featurep 'xpm)
+  (if (and (featurep 'xpm) (fboundp 'toolbar-make-button-list))
       (toolbar-make-button-list
        "/* XPM */
 static char *help_btn[] = {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]