unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#39232: 26.3; gnuplot qt mode
@ 2020-01-22  3:04 Bart Nielsen
  2020-10-28 12:50 ` Lars Ingebrigtsen
  2020-12-07 10:49 ` bug#39232: [PATCH] lisp/calc/calc-graph.el: update gnuplot timestamp hiding syntax Illia Ostapyshyn
  0 siblings, 2 replies; 4+ messages in thread
From: Bart Nielsen @ 2020-01-22  3:04 UTC (permalink / raw)
  To: 39232



M-x calc
vx 10
<return>
gf


and in *Gnuplot Trail* I see:


Starting gnuplot...

	G N U P L O T
	Version 5.2 patchlevel 8    last modified 2019-12-01 

	Copyright (C) 1986-1993, 1998, 2004, 2007-2019
	Thomas Williams, Colin Kelley and many others

	gnuplot home:     http://www.gnuplot.info
	faq, bugs, etc:   type "help FAQ"
	immediate help:   type "help"  (plot window: hit 'h')

Terminal type is now 'qt'
gnuplot> 
Terminal type is now 'unknown'
                      ^
         unknown or ambiguous terminal type; type just 'set terminal' for a list

gnuplot> gnuplot> WARNING: Plotting with an 'unknown' terminal.
No output will be generated. Please select a terminal with 'set terminal'.
gnuplot>





When I run gnuplot from the command line, I can run:

gnuplot
plot sin(x)/x


and get the expected output with a terminal time of qt.


as in
spacey:~ monet$ gnuplot

	G N U P L O T
	Version 5.2 patchlevel 8    last modified 2019-12-01 

	Copyright (C) 1986-1993, 1998, 2004, 2007-2019
	Thomas Williams, Colin Kelley and many others

	gnuplot home:     http://www.gnuplot.info
	faq, bugs, etc:   type "help FAQ"
	immediate help:   type "help"  (plot window: hit 'h')

Terminal type is now 'qt'
gnuplot> plot sin(x)/x
qt.qpa.fonts: Populating font family aliases took 159 ms. Replace uses of missing font family "Sans" with one that exists to avoid this cost. 
gnuplot>

Thanks!!


In GNU Emacs 26.3 (build 1, x86_64-apple-darwin18.2.0, NS appkit-1671.20 Version 10.14.3 (Build 18D109))
of 2019-09-02 built on builder10-14.porkrind.org
Windowing system distributor 'Apple', version 10.3.1894
Recent messages:
Type "q" in help window to restore previous buffer.
Calc Help options: Help, Info, ...  press SPC, DEL to scroll, C-g to cancel
View mode: type C-h for help, h for commands, q to quit.
previous-line: Beginning of buffer [2 times]
Mark set
Auto-saving...done
Type C-x 1 to remove help window.  
C-x C-g is undefined
funcall-interactively: Buffer is read-only: #<buffer NEWS>
Quit [2 times]

Configured using:
'configure --with-ns '--enable-locallisppath=/Library/Application
Support/Emacs/${version}/site-lisp:/Library/Application
Support/Emacs/site-lisp' --with-modules'

Configured features:
NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Outline

Minor modes in effect:
  shell-dirtrack-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t
  view-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv format-spec rfc822 mml mml-sec
password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr
mail-utils apropos noutline outline easy-mmode view help-fns radix-tree
help-mode calc-help jka-compr shell pcomplete comint ansi-color ring
misearch multi-isearch dired-aux cl-loaddefs cl-lib info dired
dired-loaddefs calccomp calc-alg calc-vec calc-graph calc-ext calc-misc
calc-menu easymenu calc calc-loaddefs calc-macs elec-pair time-date
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core term/tty-colors frame cl-generic
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote threads kqueue cocoa ns
multi-tty make-network-process emacs)

Memory information:
((conses 16 271735 12624)
(symbols 48 24724 1)
(miscs 40 170 765)
(strings 32 41391 1637)
(string-bytes 1 1129894)
(vectors 16 39088)
(vector-slots 8 777067 21374)
(floats 8 56 276)
(intervals 56 6166 0)
(buffers 992 37))





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#39232: 26.3; gnuplot qt mode
  2020-01-22  3:04 bug#39232: 26.3; gnuplot qt mode Bart Nielsen
@ 2020-10-28 12:50 ` Lars Ingebrigtsen
  2020-12-07 10:49 ` bug#39232: [PATCH] lisp/calc/calc-graph.el: update gnuplot timestamp hiding syntax Illia Ostapyshyn
  1 sibling, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2020-10-28 12:50 UTC (permalink / raw)
  To: Bart Nielsen; +Cc: 39232

Bart Nielsen <bart.utahman@gmail.com> writes:

> M-x calc
> vx 10
> <return>
> gf

It looks like there may be some missing parts in this recipe for
reproducing the bug?  Or did you mean "gp" instead of "gf" there at the
end?

In which case I get no errors, but just an empty gnuplot chart.

Oh, perhaps gf and then gp?  That gives me an error, but not the same
one you're seeing.

To reproduce, from emacs -Q:

M-x calc
vx 10 RET
RET
gf
gp

Starting gnuplot...

	G N U P L O T
	Version 5.4 patchlevel 0    last modified 2020-07-13 

	Copyright (C) 1986-1993, 1998, 2004, 2007-2020
	Thomas Williams, Colin Kelley and many others

	gnuplot home:     http://www.gnuplot.info
	faq, bugs, etc:   type "help FAQ"
	immediate help:   type "help"  (plot window: hit 'h')

Terminal type is now 'qt'
gnuplot> 
Terminal type is now 'x11'
Options are ' nopersist enhanced'
gnuplot> gnuplot> gnuplot> 
gnuplot> set notime
               ^
         "/tmp/calcAjvEJ81" line 23: Unrecognized option.  See 'help unset'.

gnuplot> 
gnuplot> set notime
               ^
         "/tmp/calcAjvEJ81" line 23: Unrecognized option.  See 'help unset'.

gnuplot> 

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#39232: [PATCH] lisp/calc/calc-graph.el: update gnuplot timestamp hiding syntax
  2020-01-22  3:04 bug#39232: 26.3; gnuplot qt mode Bart Nielsen
  2020-10-28 12:50 ` Lars Ingebrigtsen
@ 2020-12-07 10:49 ` Illia Ostapyshyn
  2020-12-07 12:37   ` Lars Ingebrigtsen
  1 sibling, 1 reply; 4+ messages in thread
From: Illia Ostapyshyn @ 2020-12-07 10:49 UTC (permalink / raw)
  To: larsi, 39232

Graphs fail to plot (bug#39232), since "time" abbreviation for "timestamp" is no longer valid after commit b979b5371bc1c18bf8f5bd756e7c1fb54dafd8cc of gnuplot:
https://github.com/gnuplot/gnuplot/commit/b979b5371bc1c18bf8f5bd756e7c1fb54dafd8cc

---
 lisp/calc/calc-graph.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/calc/calc-graph.el b/lisp/calc/calc-graph.el
index 829fa44ca4..b694a826ce 100644
--- a/lisp/calc/calc-graph.el
+++ b/lisp/calc/calc-graph.el
@@ -351,7 +351,7 @@
 	 (if (>= ver 3)
 	     (insert "set surface\nset nocontour\n"
 		     "set " (if calc-graph-is-splot "" "no") "parametric\n"
-		     "set notime\nset border\nset ztics\nset zeroaxis\n"
+		     "set notimestamp\nset border\nset ztics\nset zeroaxis\n"
 		     "set view 60,30,1,1\nset offsets 0,0,0,0\n"))
 	 (setq samples-pos (point))
 	 (insert "\n\n" str))
-- 
2.24.3 (Apple Git-128)





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#39232: [PATCH] lisp/calc/calc-graph.el: update gnuplot timestamp hiding syntax
  2020-12-07 10:49 ` bug#39232: [PATCH] lisp/calc/calc-graph.el: update gnuplot timestamp hiding syntax Illia Ostapyshyn
@ 2020-12-07 12:37   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2020-12-07 12:37 UTC (permalink / raw)
  To: Illia Ostapyshyn; +Cc: 39232

Illia Ostapyshyn <ilya.ostapyshyn@gmail.com> writes:

> Graphs fail to plot (bug#39232), since "time" abbreviation for
> "timestamp" is no longer valid after commit
> b979b5371bc1c18bf8f5bd756e7c1fb54dafd8cc of gnuplot:
> https://github.com/gnuplot/gnuplot/commit/b979b5371bc1c18bf8f5bd756e7c1fb54dafd8cc

Thanks -- I can confirm that this fixed the bug here, too.
Applied to Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-07 12:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-22  3:04 bug#39232: 26.3; gnuplot qt mode Bart Nielsen
2020-10-28 12:50 ` Lars Ingebrigtsen
2020-12-07 10:49 ` bug#39232: [PATCH] lisp/calc/calc-graph.el: update gnuplot timestamp hiding syntax Illia Ostapyshyn
2020-12-07 12:37   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).