From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: pRoMMMModE@outlook.com Newsgroups: gmane.emacs.bugs Subject: bug#45370: 27.1; Obselete gnuplot option in calc-graph.el Date: Tue, 22 Dec 2020 19:13:16 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13948"; mail-complaints-to="usenet@ciao.gmane.io" To: 45370@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 22 16:30:36 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1krjcR-0003Tf-PN for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Dec 2020 16:30:35 +0100 Original-Received: from localhost ([::1]:34698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krjcQ-00035D-Oa for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Dec 2020 10:30:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krjbu-00034w-U5 for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2020 10:30:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39183) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1krjbu-0003Qb-Kl for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2020 10:30:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1krjbu-0001mx-Cd for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2020 10:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: pRoMMMModE@outlook.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Dec 2020 15:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45370 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16086509816818 (code B ref -1); Tue, 22 Dec 2020 15:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 22 Dec 2020 15:29:41 +0000 Original-Received: from localhost ([127.0.0.1]:50729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krjbY-0001lt-FR for submit@debbugs.gnu.org; Tue, 22 Dec 2020 10:29:41 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:44600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krftS-00079t-Ic for submit@debbugs.gnu.org; Tue, 22 Dec 2020 06:31:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krftR-00070D-KA for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2020 06:31:54 -0500 Original-Received: from mail-oln040092254100.outbound.protection.outlook.com ([40.92.254.100]:6102 helo=APC01-PU1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krftP-0006cG-5J for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2020 06:31:53 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mtkMbfA3dhRd13CU7ChbMXknhk4oPjYrqRX0wbkDg2Df1EOEH0/9DVD831yh9kZLJMMT//kJXLz5Vt3yZg5XFD5SFbD0l8Jl3ohbay4DlDyuW0uNtf2L5C9bBjTYVKdBx/A+oJA7S+WnAalpbVS5xsberK7rDywcq/jrTrX3Rig6FaoFcVC3mHAerdwlakJOfMmK7ADEgGZCcl0ozSe/Tuk65leeft5yFcRkHgZvXBBQ0Gz1fuWJ5rrLVxNFb5Kac2TpyBpwyk0v0UjmbMOfPxzhdBDEZ/4q0htrt0Z2jsG8WdA1U9bVfu1VEWHRuFabMlhPRx2XGdydCyaQl2Y/rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mCh5lAcFOg1ge1BEDJWndT/B+Znfx4FSYm/jae+s1qE=; b=HR/xxMWA110LthdMabmF/mXLxUzsmXdeI4Gx7kIllOsN7g/K2qALjmGY9WvKrr/c5VVjolGa2PmmFPMrw6PwicGFtjUBopi0Ucd9rdaj53A/q/TYgP6WBlIjRRsPIPaSrnK+tor96ldmQh3Ng6+mP3MQAc8dZ2WgIg5B7v+debdztpwopYY6KQGB/Km5HdFhJSLyU9izxNdEhEiXMY8rtXgKfKC4S6KJCjWaiZiW/lFyLxHpnbN0skllcul/qzlZX+M83fb4GYMF20MHIsoJsvNpu6OWVor7Yy7/fpXPb/sFwnkWV5KWWdj8Rqu7vq8DFtpAonnsPG07GgUOshFkdA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mCh5lAcFOg1ge1BEDJWndT/B+Znfx4FSYm/jae+s1qE=; b=djXFXow+b5Ib7WQJK5FidaC7qRAbBu4lQMWnimrIRkvCM8vr8j8zbCVgVjFafSnnyqwfFknezGzm43MKOmekTAmJesZKxbH7ishBvYpkZjE91RfKFNYaUFIrRXQD+w6KLcgshmerCt+YK8g+a2tIaRwdfgHIfTGc5nJzvMSzrjffm2lEVUiSzM3xaLHacBU2JLu6CjRCcnbcUCowWeYq1CE9QNoYfCV+cqOOyPySruIJT1CwKKa5R3yLixVT3rDmdU2tSHEjyMhBXn+47XrvTOk3q2ABUzK5wXCDmB00OKhppWnT139/PL9JZBqOYOo0IRaG1euumj3m+ellCPKrXA== Original-Received: from SG2APC01FT051.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebd::4e) by SG2APC01HT128.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebd::486) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.22; Tue, 22 Dec 2020 11:16:34 +0000 Original-Received: from SYBP282MB0234.AUSP282.PROD.OUTLOOK.COM (10.152.250.53) by SG2APC01FT051.mail.protection.outlook.com (10.152.251.112) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.22 via Frontend Transport; Tue, 22 Dec 2020 11:16:34 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:46E8CBE0B4D0C7D37DC6C340D7209CE63AA5BBDE114384991D9AEC46201B897D; UpperCasedChecksum:47D914228ABE683973783EE37E3A18D783CA52125D61378AD2E95DCCC16D4602; SizeAsReceived:7160; Count:42 Original-Received: from SYBP282MB0234.AUSP282.PROD.OUTLOOK.COM ([fe80::6c6b:3c19:b37e:6014]) by SYBP282MB0234.AUSP282.PROD.OUTLOOK.COM ([fe80::6c6b:3c19:b37e:6014%6]) with mapi id 15.20.3654.017; Tue, 22 Dec 2020 11:16:34 +0000 X-TMN: [YOHDGdsyC+AVSmdCOpVawp8X9zEOXExh] X-ClientProxiedBy: SJ0PR13CA0211.namprd13.prod.outlook.com (2603:10b6:a03:2c1::6) To SYBP282MB0234.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:64::17) X-Microsoft-Original-Message-ID: <86h7oenlf7.fsf@LILILILILILILIL.i-did-not-set--mail-host-address--so-tickle-me> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from lIlIlIlIlIlIlIl (202.38.66.101) by SJ0PR13CA0211.namprd13.prod.outlook.com (2603:10b6:a03:2c1::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3700.19 via Frontend Transport; Tue, 22 Dec 2020 11:16:32 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 42 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 2e284cca-da63-430c-d6a5-08d8a66b0ada X-MS-TrafficTypeDiagnostic: SG2APC01HT128: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MEtCCy/Rp8LGrN64EUkzTCPMoJ00kgaLbbYcsolldRN7kLImFvbQ0+M8Wtre77/UwyrABZByRGS/ia6l2sG1Vx8l2MCpvaNpJIUEq45MG0fJJqZzEiyt+F7M+R1l0V+EsQ/T7ENDwO5a9AfNnC7SARhAGg0ie4OV6e98Kv/0AspffHOqrhtnhguMrahrOgRl8nUrJyrEvs36/aX1zp3jLktctnT6LfY0m6dQWHyXdvahtf3cbXBzSx3j8Kd/lTfZ X-MS-Exchange-AntiSpam-MessageData: mMhwmE73Ot0RwEGjELYtrQ+N4bkQa7henCgSjRdDkTW4WZ1HEsdVTYLohXf9WAhQIvpsuDOpk2r8rLyOp83j10xZmeNsQSqWqQ0ZZKfWbWP7PBtCq7hHgz//OxxEZDnHw5zGEq6TuGFOURxVShWWbw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2020 11:16:34.6296 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-Network-Message-Id: 2e284cca-da63-430c-d6a5-08d8a66b0ada X-MS-Exchange-CrossTenant-AuthSource: SG2APC01FT051.eop-APC01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT128 Received-SPF: pass client-ip=40.92.254.100; envelope-from=pRoMMMModE@outlook.com; helo=APC01-PU1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 22 Dec 2020 10:29:39 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:196576 Archived-At: Try to plot function in calc-mode, found some obselete option in calc-graph.el that gnuplot refuse to accept. To reproduce, type in these key sequences(trying to plot sin(x) here): --- M-x calc d L m r [ P n ... P ] ' s i n ( x ) g f --- In buffer *Gnuplot Trail*, it says: --- Starting gnuplot... gnuplot> set notime ^ "c:/Users/USER/AppData/Local/Temp/calcAAGKxRw" line 23: Unrecognized option. See 'help unset'. --- In buffer *Gnuplot Temp* it shows: --- # (Note: This is a temporary copy---do not edit!) set noarrow set nolabel set autoscale xy set nologscale xy set xlabel set ylabel set title set noclip points set clip one set clip two set format "%g" set tics set xtics set ytics set style data linespoints set nogrid set nokey set nopolar set surface set nocontour set noparametric set notime set border set ztics set zeroaxis set view 60,30,1,1 set offsets 0,0,0,0 set samples 200 # Commands for running gnuplot plot "c:/Users/USER/AppData/Local/Temp/calc1ODUnKc" title "PlotData2" with lines --- So emacs trying to pass the `set notime' option to gnuplot, which for latest gnuplot is obselete. I dig into the source code a little, in calc-graph.el, there is a function calc-graph-plot contain this piece of code: line:352 --- (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 view 60,30,1,1\nset offsets 0,0,0,0\n")) --- So I delete the `set notime\n' part and restart emacs, and this time it prodeuce a graph successfully. Also, maybe the string that used by th insert funcion should be customizable? In GNU Emacs 27.1 (build 1, x86_64-w64-mingw32) of 2020-11-20 built on fv-az68-340 Repository revision: ec297125a76481c55390d0b329e541907879d6f3 Repository branch: master Windowing system distributor 'Microsoft Corp.', version 10.0.19041 System Description: Microsoft Windows 10 Pro (v10.0.2004.19041.685) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Quit ESC is undefined ESC M-x is undefined funcall-interactively: End of buffer Configured using: 'configure --prefix=/mingw64 --build=x86_64-w64-mingw32 --with-modules --without-dbus --without-compress-install 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe' CPPFLAGS=-D__USE_MINGW_ANSI_STDIO=1 'LDFLAGS=-pipe -Wl,--dynamicbase,--high-entropy-va,--nxcompat,--default-image-base-high'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER GMP Important settings: value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: cp936 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t 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 line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars 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 tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer 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 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 w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 16 46355 10034) (symbols 48 6075 1) (strings 32 16892 1739) (string-bytes 1 520832) (vectors 16 9258) (vector-slots 8 123368 12366) (floats 8 21 214) (intervals 56 219 0) (buffers 1000 11))