Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

New functionality for gnuplot 5? #2

Open
bruceravel opened this issue Sep 14, 2011 · 2 comments
Open

New functionality for gnuplot 5? #2

bruceravel opened this issue Sep 14, 2011 · 2 comments

Comments

@bruceravel
Copy link
Contributor

gnuplot-mode was written back in the day of gnuplot version 3.5. Are there any new features since then that should be explicitly supported?

@mtreca mtreca changed the title New functionality for gnuplot 4? New functionality for gnuplot 5? Dec 12, 2020
@mtreca
Copy link
Collaborator

mtreca commented Dec 12, 2020

I am bumping this issue and self-assigning.

Latest version is 5.4, I will take time to go through the changelogs and see what can be ported over to gnuplot.el

@mtreca mtreca self-assigned this Dec 12, 2020
@bvraghav
Copy link

bvraghav commented Jan 5, 2023

@ prefix at call-site for macros is one of them, for example

BG='rbgcolor "#303030"'
set term wxt @BG

DATA="mydatafile.dat"
plot @DATA using 1:2 w li

I do not know, if this is specific to new functionality of v5, but this is absent for sure.
Similarly, for call arguments ARG0...ARG9 and ARGC, ARGV

I get an error like:

Debugger entered--Lisp error: (error "Gnuplot-tokenize: bad token beginning @DARKFG")
  signal(error ("Gnuplot-tokenize: bad token beginning @DARKFG"))
  error("Gnuplot-tokenize: bad token beginning %s" "@DARKFG")
  gnuplot-tokenize(nil)
  gnuplot-parse-at-point(nil)
  gnuplot-eldoc-function()
  eldoc--invoke-strategy(nil)
  eldoc-print-current-symbol-info()
  #f(compiled-function () #<bytecode ...>)()
  apply(#f(compiled-function () #<bytecode ...>) nil)
  timer-event-handler([t 0 0 500000 nil #f(compiled-function () #<bytecode ...>) nil idle 0 nil])

Also gnuplot (v5.4) doesn't seem to provide info manuals anymore. At least there isn't one in the system package with Arch.

Update:

This, I was able to mitigate by prefixing @? to the regexp for token name (from here inside defun gnuplot-tokenize) like this:

("@?[A-Za-z_][A-Za-z0-9_]*" name)

@mtreca mtreca removed their assignment Jan 5, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants