[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/gnuplot d6f8598 121/184: Cleanup inline-image mode
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/gnuplot d6f8598 121/184: Cleanup inline-image mode |
Date: |
Sun, 29 Aug 2021 11:03:28 -0400 (EDT) |
branch: elpa/gnuplot
commit d6f8598a0cf5938780aff68333c6d119e1de8724
Author: joddie <jonxfield@gmail.com>
Commit: joddie <jonxfield@gmail.com>
Cleanup inline-image mode
- Check for the ability to display images whenever
`gnuplot-inline-image-mode` is non-nil (not only when `inline`)
- Use `message` rather than `error` when images cannot be displayed;
should avoid annoying startup errors when the same configuration is
shared between graphical and TTY emacs
- Check that the Gnuplot process is running before sending commands to
set up image capturing
---
gnuplot.el | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/gnuplot.el b/gnuplot.el
index e5b3e99..9f34377 100644
--- a/gnuplot.el
+++ b/gnuplot.el
@@ -704,10 +704,12 @@ symbol `complete' in gnuplot-mode buffers."
(defun gnuplot-set-display-mode (variable value &rest args)
"Customize :set function for `gnuplot-inline-image-mode'."
(if (and (eq variable 'gnuplot-inline-image-mode)
- (eq value 'inline)
+ value
(not (gnuplot-display-images-p)))
- (error "Displaying images is not supported."))
- (set variable value)
+ (progn
+ (message "Displaying images is not supported.")
+ (set variable nil))
+ (set variable value))
(gnuplot-setup-comint-for-image-mode))
(defcustom gnuplot-inline-image-mode nil
@@ -2467,7 +2469,8 @@ gnuplot process buffer will be displayed in a window."
(message "Setting will take effect when plots are displayed in Emacs")))
(defun gnuplot-setup-comint-for-image-mode ()
- (when (and gnuplot-buffer (buffer-name gnuplot-buffer))
+ (when (and gnuplot-buffer (buffer-live-p gnuplot-buffer)
+ (get-buffer-process gnuplot-buffer))
(with-current-buffer gnuplot-buffer
(if gnuplot-inline-image-mode
(progn
- [nongnu] elpa/gnuplot 0d9c0af 025/184: Better method for scanning strings/comments., (continued)
- [nongnu] elpa/gnuplot 0d9c0af 025/184: Better method for scanning strings/comments., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 84933f0 029/184: Allow single quoted strings to include '' as an escape for ', ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot c97f028 078/184: use a defsubst instead of defmacro in debug-context, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot f710394 057/184: Add keys C-M-x (evaluate region) and C-j (evaluate line and newline), ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 54f3882 070/184: Silence another compiler warning by using with-current-buffer, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 35f3f8d 080/184: Avoid having text syntax-property changes mark buffer as modified, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot fdd3e1e 101/184: * README.org: update installation section for el-get users., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 35a8a19 108/184: Check for `syntax-propertize-function' when defining syntax-table, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 4cd89ab 109/184: Replace ad-hoc scanning with syntax-propertize-rules, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 09ff207 131/184: Remove un-needed `gnuplot-context-mode-p` function, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot d6f8598 121/184: Cleanup inline-image mode,
ELPA Syncer <=
- [nongnu] elpa/gnuplot a885233 124/184: Cleanup workaround for window-full-height-p, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 99c3855 130/184: Move gnuplot-context-sensitive-mode into gnuplot.el, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 2ec49e9 139/184: Update GitHub url, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 4b267b8 146/184: Merge pull request #44 from conao3/change-license, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 4d04c86 150/184: remove weird char, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 8f2ddd0 148/184: untabify, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot fcf5f4b 160/184: [WIP] Start removing Xemacs, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot e47e77e 155/184: Merge pull request #49 from conao3/fix-completion, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot e6dc1f6 164/184: comint-process-echoes is buffer-local, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot df47e87 181/184: Remove version-related variables., ELPA Syncer, 2021/08/29