[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 44f409e: org-plot: replace ignore-error with condit
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 44f409e: org-plot: replace ignore-error with condition-case |
Date: |
Wed, 28 Apr 2021 12:57:09 -0400 (EDT) |
branch: externals/org
commit 44f409e21e0326d43c79ff7897904cc78d287b72
Author: TEC <tec@tecosaur.com>
Commit: TEC <tec@tecosaur.com>
org-plot: replace ignore-error with condition-case
* lisp/org-plot.el (org-plot/gnuplot): `ignore-error' was introduced
in Emacs 27, and Org's minimum supported Emacs is 24. So, to maintain
compliance I replaced the `ignore-error' call with a `condition-case`.
---
lisp/org-plot.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lisp/org-plot.el b/lisp/org-plot.el
index 2a5af67..2659a5f 100644
--- a/lisp/org-plot.el
+++ b/lisp/org-plot.el
@@ -709,8 +709,9 @@ line directly before or after the table."
(insert (org-plot/gnuplot-script table data-file num-cols params)))
;; Graph table.
(gnuplot-mode)
- (ignore-error buffer-read-only
- (gnuplot-send-buffer-to-gnuplot)))
+ (condition-case nil
+ (gnuplot-send-buffer-to-gnuplot)
+ (buffer-read-only nil)))
;; Cleanup.
(bury-buffer (get-buffer "*gnuplot*"))
;; Refresh any displayed images
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/org 44f409e: org-plot: replace ignore-error with condition-case,
ELPA Syncer <=