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

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

[nongnu] elpa/gnuplot 54fd3eb 141/184: do toolbar-make-button-list after


From: ELPA Syncer
Subject: [nongnu] elpa/gnuplot 54fd3eb 141/184: do toolbar-make-button-list after check the function exists
Date: Sun, 29 Aug 2021 11:03:32 -0400 (EDT)

branch: elpa/gnuplot
commit 54fd3eb6b3c66ab05206ebe5dd715f5ac383c432
Author: conao3 <conao3@gmail.com>
Commit: conao3 <conao3@gmail.com>

    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]